dashboard: add temp alert debug logging
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
static const char *DASHBOARD_VERSION = "0.1.114-websocket-roadmap";
|
static const char *DASHBOARD_VERSION = "0.1.119-temp-alert-debug";
|
||||||
|
|
||||||
// Update these if your Cargo ESP AP credentials are different.
|
// Update these if your Cargo ESP AP credentials are different.
|
||||||
//static const char *CARGO_WIFI_SSID = "OverlandController";
|
//static const char *CARGO_WIFI_SSID = "OverlandController";
|
||||||
|
|||||||
@@ -1466,6 +1466,14 @@ static void parse_status_json(const String &body)
|
|||||||
float temp_f = (float)(temp["temperature_f"] | 0.0);
|
float temp_f = (float)(temp["temperature_f"] | 0.0);
|
||||||
bool high_alert = temp["high_alert"] | false;
|
bool high_alert = temp["high_alert"] | false;
|
||||||
|
|
||||||
|
Serial.printf(
|
||||||
|
"TEMP DEBUG: name=%s group=%s temp=%.1f high_alert=%d\n",
|
||||||
|
temp["name"] | "unknown",
|
||||||
|
temp["group"] | "",
|
||||||
|
temp_f,
|
||||||
|
high_alert ? 1 : 0
|
||||||
|
);
|
||||||
|
|
||||||
if (weather) {
|
if (weather) {
|
||||||
outside_status = "OUT ";
|
outside_status = "OUT ";
|
||||||
outside_status += String((int)round(temp_f));
|
outside_status += String((int)round(temp_f));
|
||||||
|
|||||||
Reference in New Issue
Block a user