corretto bug su driver openweathermap che in alcuni casi causa una malformazione dello status json e impediva la comunicazione con piGardenWeb

This commit is contained in:
lejubila
2018-11-13 12:43:26 +01:00
parent 71e91cc861
commit 4d4b35c3cc
2 changed files with 6 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
# 0.5.12 - xx/xx/2018
- Fixed a bug that prevented the publication of the mqtt topic for each event
# 0.5.11 - 11/11/2018 # 0.5.11 - 11/11/2018
- Added ability to disable online weather service by defining WEATHER_SERVICE="none" in the configuration file - Added ability to disable online weather service by defining WEATHER_SERVICE="none" in the configuration file

View File

@@ -34,11 +34,11 @@ function drv_openweathermap_rain_online_get {
"local_epoch": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".dt")", "local_epoch": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".dt")",
"local_tz_long": "$OPENWEATHERMAP_TZ", "local_tz_long": "$OPENWEATHERMAP_TZ",
"weather": "$weather", "weather": "$weather",
"temp_c": $(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.temp"), "temp_c": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.temp")",
"relative_humidity": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.humidity")%", "relative_humidity": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.humidity")%",
"wind_dir": "$(deg2dir $wind_deg)", "wind_dir": "$(deg2dir $wind_deg)",
"wind_degrees": $wind_deg, "wind_degrees": "$wind_deg",
"wind_kph": $wind_speed, "wind_kph": "$wind_speed",
"wind_gust_kph": "--", "wind_gust_kph": "--",
"pressure_mb": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.pressure")", "pressure_mb": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.pressure")",
"dewpoint_c": "--", "dewpoint_c": "--",