Added pressure to hbWebstat
This commit is contained in:
parent
795e00be29
commit
345639395d
1 changed files with 6 additions and 1 deletions
|
@ -28,6 +28,8 @@ String hb_ws_msg_temp = "\"temperature\": ";
|
||||||
String hb_ws_msg_humi = "\"humidity\": ";
|
String hb_ws_msg_humi = "\"humidity\": ";
|
||||||
String hb_ws_msg_light = "\"lightlevel\": ";
|
String hb_ws_msg_light = "\"lightlevel\": ";
|
||||||
String hb_ws_msg_windspeed = "\"windspeed\": ";
|
String hb_ws_msg_windspeed = "\"windspeed\": ";
|
||||||
|
String hb_ws_msg_pressure = "\"pressure\": ";
|
||||||
|
String hb_ws_msg_timestamp = "\"timestamp\": ";
|
||||||
String hb_ws_msg_end = "}";
|
String hb_ws_msg_end = "}";
|
||||||
|
|
||||||
void setupWebUpdater(String device, String ip)
|
void setupWebUpdater(String device, String ip)
|
||||||
|
@ -101,7 +103,10 @@ void hb_webstat_send(void)
|
||||||
hb_ws_msg_windspeed +
|
hb_ws_msg_windspeed +
|
||||||
String(_webUpdater_sensValues[SENSOR_WINDSPEED], 2) +
|
String(_webUpdater_sensValues[SENSOR_WINDSPEED], 2) +
|
||||||
", " +
|
", " +
|
||||||
"\"timestamp\": " +
|
hb_ws_msg_pressure +
|
||||||
|
String(_webUpdater_sensValues[SENSOR_PRESSURE], 2) +
|
||||||
|
", " +
|
||||||
|
hb_ws_msg_timestamp +
|
||||||
String(timestamp) +
|
String(timestamp) +
|
||||||
hb_ws_msg_end;
|
hb_ws_msg_end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue