Compare commits
3
Commits
3c438bd4ac
...
2aac72616c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2aac72616c | ||
|
|
f4c6623334 | ||
|
|
5fbc33001a |
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
static const char *DASHBOARD_VERSION = "0.1.118-temp-alert-local-threshold";
|
static const char *DASHBOARD_VERSION = "0.1.114-websocket-roadmap";
|
||||||
|
|
||||||
// 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,13 +1466,6 @@ 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;
|
||||||
|
|
||||||
bool high_alert_enabled = temp["high_alert_enabled"] | false;
|
|
||||||
float high_alert_f = (float)(temp["high_alert_f"] | 9999.0);
|
|
||||||
|
|
||||||
if (high_alert_enabled && temp_f >= high_alert_f) {
|
|
||||||
high_alert = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
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