dashboard: add temp alert debug logging

This commit is contained in:
2026-06-19 02:03:33 -06:00
parent 2aac72616c
commit 73a28beacc
2 changed files with 9 additions and 1 deletions
@@ -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));