Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
moved translations directory to wupws_translations.
updated nl.json per PR#152.
  • Loading branch information
dave_albright committed Jan 26, 2023
1 parent 7884ff4 commit 1637c27
Show file tree
Hide file tree
Showing 66 changed files with 62 additions and 57 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ TO UPGRADE:
type: string
pws_id:
description: You must enter a Personal Weather Station ID.
The station id will be used to display current weather conditions.
The station id will be used to display current weather conditions.
Note - Case Sensitive. Must match the ID of your Wunderground device in member settings.
required: true
type: string
numeric_precision:
Expand Down Expand Up @@ -414,7 +415,7 @@ sensor:
# Localization

Sensor "friendly names" are set via translation files.
Wundergroundpws translation files are located in the 'wundergroundpws/translations' directory.
Wundergroundpws translation files are located in the 'wundergroundpws/wupws_translations' directory.
Files were translated, using 'en.json' as the base, via https://translate.i18next.com.
Translations only use the base language code and not the variant (i.e. zh-CN/zh-HK/zh-TW uses zh).
The default is en-US (translations/en.json) if the lang: option is not set in the wundergroundpws config.
Expand Down
5 changes: 4 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ If set true, retrieves main Forecast temperature max/min (NOT daypart) relative
as opposed to API period (~7:00am -> ~6:59am).
Only affects the weather entity forecast values, not the sensors.
This field is undocumented in The Weather Company PWS API, so it is subject to change and if removed from
the API response in the future, will crash the integration if set true.
the API response in the future, will crash the integration if set true.

moved translations directory to wupws_translations.
updated nl.json per PR#152.

v1.1.0
Replace condition mapping from wxPhraseShort to iconCode
Expand Down
5 changes: 3 additions & 2 deletions custom_components/wundergroundpws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ TO UPGRADE:
type: string
pws_id:
description: You must enter a Personal Weather Station ID.
The station id will be used to display current weather conditions.
The station id will be used to display current weather conditions.
Note - Case Sensitive. Must match the ID of your Wunderground device in member settings.
required: true
type: string
numeric_precision:
Expand Down Expand Up @@ -414,7 +415,7 @@ sensor:
# Localization

Sensor "friendly names" are set via translation files.
Wundergroundpws translation files are located in the 'wundergroundpws/translations' directory.
Wundergroundpws translation files are located in the 'wundergroundpws/wupws_translations' directory.
Files were translated, using 'en.json' as the base, via https://translate.i18next.com.
Translations only use the base language code and not the variant (i.e. zh-CN/zh-HK/zh-TW uses zh).
The default is en-US (translations/en.json) if the lang: option is not set in the wundergroundpws config.
Expand Down
2 changes: 1 addition & 1 deletion custom_components/wundergroundpws/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

"""get translation file for wupws sensor friendly_name"""
def get_tran_file(hass: HomeAssistantType):
tfiledir = f'{hass.config.config_dir}/custom_components/{DOMAIN}/translations/'
tfiledir = f'{hass.config.config_dir}/custom_components/{DOMAIN}/wupws_translations/'
tfilename = hass.data[DOMAIN][ENTRY_LANG].split('-', 1)[0]
try:
tfile = open(f'{tfiledir}{tfilename}.json')
Expand Down
51 changes: 0 additions & 51 deletions custom_components/wundergroundpws/translations/nl.json

This file was deleted.

51 changes: 51 additions & 0 deletions custom_components/wundergroundpws/wupws_translations/nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"dewpt": "Dauwpunt",
"elev": "Hoogte",
"heatIndex": "Hitte-index",
"humidity": "Relatieve vochtigheid",
"neighborhood": "Buurt",
"obsTimeLocal": "Lokale observatietijd",
"precipRate": "Neerslagsnelheid",
"precipTotal": "Neerslag vandaag",
"precip_1d": "Hoeveelheid neerslag vandaag",
"precip_2d": "Hoeveelheid neerslag morgen",
"precip_3d": "Hoeveelheid neerslag binnen 3 dagen",
"precip_4d": "Hoeveelheid neerslag binnen 4 dagen",
"precip_5d": "Hoeveelheid neerslag binnen 5 dagen",
"precip_chance_1d": "Kans op neerslag vandaag",
"precip_chance_1n": "Kans op neerslag vanavond",
"precip_chance_2d": "Kans op neerslag morgen (dag)",
"precip_chance_2n": "Kans op neerslag morgenavond",
"precip_chance_3d": "Kans op neerslag binnen 3 dagen (dag)",
"precip_chance_3n": "Kans op neerslag binnen 3 dagen (nacht)",
"precip_chance_4d": "Kans op neerslag binnen 4 dagen (dag)",
"precip_chance_4n": "Kans op neerslag binnen 4 dagen (nacht)",
"precip_chance_5d": "Kans op neerslag binnen 5 dagen (dag)",
"precip_chance_5n": "Kans op neerslag binnen 5 dagen (nacht)",
"pressure": "Luchtdruk",
"solarRadiation": "Zonnestraling",
"stationID": "Station-ID",
"temp": "Temperatuur",
"temp_high_1d": "Hoge temperatuur vandaag",
"temp_high_2d": "Hoge temperatuur morgen",
"temp_high_3d": "Hoge temperatuur binnen 3 dagen",
"temp_high_4d": "Hoge temperatuur binnen 4 dagen",
"temp_high_5d": "Hoge temperatuur binnen 5 dagen",
"temp_low_1d": "Lage temperatuur vandaag",
"temp_low_2d": "Lage temperatuur morgen",
"temp_low_3d": "Lage temperatuur binnen 3 dagen",
"temp_low_4d": "Lage temperatuur binnen 4 dagen",
"temp_low_5d": "Lage temperatuur binnen 5 dagen",
"today_summary": "Samenvatting vandaag",
"uv": "UV-index",
"windChill": "Gevoelstemperatuur",
"windDirectionName": "Windrichting - Kardinaal",
"windGust": "Windvlaag",
"windSpeed": "Windsnelheid",
"wind_1d": "Gemiddelde wind vandaag",
"wind_2d": "Gemiddelde wind morgen",
"wind_3d": "Gemiddelde wind binnen 3 dagen",
"wind_4d": "Gemiddelde wind binnen 4 dagen",
"wind_5d": "Gemiddelde wind binnen 5 dagen",
"winddir": "Windrichting - Graden"
}

0 comments on commit 1637c27

Please sign in to comment.