Updated homebrew web status code to get it compatible to github.com:metbosch/homebridge-http-temperature and github.com/UnPoilTefal/homebridge-advanced-http-temperature-humidity

This commit is contained in:
Kai Lauterbach 2022-05-16 11:01:06 +02:00
parent 8852f13d04
commit 747724c2ed

View file

@ -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);