diff --git a/AirQuality.ino b/AirQuality.ino index c040ec1..8a94d3b 100644 --- a/AirQuality.ino +++ b/AirQuality.ino @@ -93,6 +93,7 @@ void setup() { // Sync time using NTP syncTime(); + delay(1000); // Initialize AHTX0 sensor if (!aht.begin()) { @@ -150,11 +151,11 @@ void setup() { color: #000000; } .card.poor { - background-color: #ff5722; + background-color:rgb(255, 60, 34); color: #ffffff; } .card.unhealthy { - background-color: #f44336; + background-color:rgb(244, 54, 244); color: #ffffff; } .apexcharts-tooltip { @@ -225,94 +226,121 @@ void setup() { - - setInterval(fetchData, 1000); - )rawliteral"; diff --git a/AirQuality/AirQuality.ino b/AirQuality/AirQuality.ino index c040ec1..8a94d3b 100644 --- a/AirQuality/AirQuality.ino +++ b/AirQuality/AirQuality.ino @@ -93,6 +93,7 @@ void setup() { // Sync time using NTP syncTime(); + delay(1000); // Initialize AHTX0 sensor if (!aht.begin()) { @@ -150,11 +151,11 @@ void setup() { color: #000000; } .card.poor { - background-color: #ff5722; + background-color:rgb(255, 60, 34); color: #ffffff; } .card.unhealthy { - background-color: #f44336; + background-color:rgb(244, 54, 244); color: #ffffff; } .apexcharts-tooltip { @@ -225,94 +226,121 @@ void setup() { - - setInterval(fetchData, 1000); - )rawliteral";