diff --git a/platypush/backend/http/static/js/widgets/date-time-weather.js b/platypush/backend/http/static/js/widgets/date-time-weather.js index 92b8dd51..6541206c 100644 --- a/platypush/backend/http/static/js/widgets/date-time-weather.js +++ b/platypush/backend/http/static/js/widgets/date-time-weather.js @@ -11,12 +11,12 @@ $(document).ready(function() { if (event.args.type == 'platypush.message.event.weather.NewWeatherConditionEvent') { updateTemperature(event.args.temperature); } else if (event.args.type == 'platypush.message.event.sensor.SensorDataChangeEvent') { - if ('temperature' in event.args) { - updateSensorTemperature(event.args.temperature); + if ('temperature' in event.args.data) { + updateSensorTemperature(event.args.data.temperature); } if ('humidity' in event.args) { - updateSensorHumidity(event.args.humidity); + updateSensorHumidity(event.args.data.humidity); } } };