mhendriks / P1-Dongel-ESP32

P1-Dongel-ESP32
MIT License
29 stars 15 forks source link

Hourly data mixed up after power outage #56

Open blolp opened 3 months ago

blolp commented 3 months ago

After a total power outage on june 28 the data in hourly database RNGhours is mixed up and gives faulty resultsin table and gr. Seems that the ring buffer pointer jumped to a different location than before the power out. Ring buffer RNGdays also seems off with the figures - they are much lower on june 28 than the days before that. Loss of power started somewhere around 14 hours, ended before 16:00 hours on june 28. JSON-files and settings are attached to this issue. Before this power outage data in RNGfiles was correct and logical. Eth-dongle-after-poweroutage.zip

mhendriks commented 3 months ago

Thanks for sharing the data. The Month and Day RNG files are fine but the Hour file is messy.

It is strange why the data was written on the wrong position. The good news is this will be solved in a couple of days when the old data is overwritten by new data.