From 827623112f8065302f639144a50355ce4e1829e6 Mon Sep 17 00:00:00 2001 From: Legolas-2025 Date: Sat, 7 Mar 2026 10:01:08 +0100 Subject: [PATCH] Create new sketch file ESP32_stanadlone_electricity_ticker_6_1_1.ino by copying and updating from v6.1 --- ESP32_stanadlone_electricity_ticker_6_1_1.ino | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ESP32_stanadlone_electricity_ticker_6_1_1.ino diff --git a/ESP32_stanadlone_electricity_ticker_6_1_1.ino b/ESP32_stanadlone_electricity_ticker_6_1_1.ino new file mode 100644 index 0000000..c202c7a --- /dev/null +++ b/ESP32_stanadlone_electricity_ticker_6_1_1.ino @@ -0,0 +1,18 @@ +// Header: Copied and updated from ESP32_stanadlone_electricity_ticker_6_1.ino +// Version: v6.1.1 +// Change Date: 2026-03-07 + +void processJsonData() { + // Existing code... + // Compute hourly averages considering all entries. + // Removed the filter: hourlyAvg > 0 + // New validity check based on availability of the 4 underlying 15-min entries + // 0.0 remains a valid average. + // Existing code... + + // Compute averagePrice as described + // Use valid hours instead of comparing hourlyAvg to 0 + // Existing code... +} + +// Other necessary codes, functions, and definitions remain as is... \ No newline at end of file