diff --git a/firmware/webUpdater.ino b/firmware/webUpdater.ino index 1abaf1f..f416c19 100644 --- a/firmware/webUpdater.ino +++ b/firmware/webUpdater.ino @@ -26,7 +26,7 @@ float _webUpdater_sensValues[VALUES]; String hb_ws_msg_start = "{"; String hb_ws_msg_temp = "\"temperature\": "; String hb_ws_msg_humi = "\"humidity\": "; -String hb_ws_msg_light = "\"light\": "; +String hb_ws_msg_light = "\"lightlevel\": "; String hb_ws_msg_windspeed = "\"windspeed\": "; String hb_ws_msg_end = "}"; @@ -87,9 +87,9 @@ void hb_webstat_send(void) hb_ws_msg_temp + String(_webUpdater_sensValues[SENSOR_TEMPERATURE], 2) + ", " + hb_ws_msg_humi + - String(_webUpdater_sensValues[SENSOR_HUMIDITY], 2) + ", " + + String(int(_webUpdater_sensValues[SENSOR_HUMIDITY]), 2) + ", " + hb_ws_msg_light + - String(_webUpdater_sensValues[SENSOR_LIGHT], 2) + ", " + + String(int(_webUpdater_sensValues[SENSOR_LIGHT]), 2) + ", " + hb_ws_msg_windspeed + String(_webUpdater_sensValues[SENSOR_WINDSPEED], 2) + hb_ws_msg_end);