From 2aac72616c2593bee6e5bec52cf30de2e98624f7 Mon Sep 17 00:00:00 2001 From: nick Date: Fri, 19 Jun 2026 01:58:34 -0600 Subject: [PATCH] Revert "dashboard: support temp alert field variants" This reverts commit 9c1f5338c784fd91a258a153299d93745e82cf6d. --- firmware/esp32-s3-dashboard/dashboard_config.h | 2 +- .../esp32-s3-dashboard/esp32-s3-dashboard.ino | 16 +--------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/firmware/esp32-s3-dashboard/dashboard_config.h b/firmware/esp32-s3-dashboard/dashboard_config.h index e86184a..3e72b1d 100644 --- a/firmware/esp32-s3-dashboard/dashboard_config.h +++ b/firmware/esp32-s3-dashboard/dashboard_config.h @@ -1,6 +1,6 @@ #pragma once -static const char *DASHBOARD_VERSION = "0.1.116-temp-alert-field-parsing"; +static const char *DASHBOARD_VERSION = "0.1.114-websocket-roadmap"; // Update these if your Cargo ESP AP credentials are different. //static const char *CARGO_WIFI_SSID = "OverlandController"; diff --git a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino index bd04219..a7c3890 100644 --- a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino +++ b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino @@ -1464,21 +1464,7 @@ static void parse_status_json(const String &body) } float temp_f = (float)(temp["temperature_f"] | 0.0); - - bool high_alert = - (temp["high_alert"] | false) || - (temp["alert"] | false) || - (temp["alarm"] | false) || - (temp["high_alarm"] | false) || - (temp["temp_high"] | false); - - if (!temp["high_threshold_f"].isNull()) { - high_alert = high_alert || temp_f >= (float)(temp["high_threshold_f"] | 9999.0); - } - - if (!temp["alarm_threshold_f"].isNull()) { - high_alert = high_alert || temp_f >= (float)(temp["alarm_threshold_f"] | 9999.0); - } + bool high_alert = temp["high_alert"] | false; if (weather) { outside_status = "OUT ";