diff --git a/CHANGELOG.md b/CHANGELOG.md index e7f5e57..fea59a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 - Added ability to disable online weather service by defining WEATHER_SERVICE="none" in the configuration file diff --git a/drv/openweathermap/rainonline.include.sh b/drv/openweathermap/rainonline.include.sh index fc7e967..b0399c3 100644 --- a/drv/openweathermap/rainonline.include.sh +++ b/drv/openweathermap/rainonline.include.sh @@ -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_tz_long": "$OPENWEATHERMAP_TZ", "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")%", "wind_dir": "$(deg2dir $wind_deg)", - "wind_degrees": $wind_deg, - "wind_kph": $wind_speed, + "wind_degrees": "$wind_deg", + "wind_kph": "$wind_speed", "wind_gust_kph": "--", "pressure_mb": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.pressure")", "dewpoint_c": "--",