powersync-experience-energy/plugin
Michael Zanetti f4a1c62960 Fix thingIds not being removed properly
This caused things which have been removed from the system to stick
around in the DB with only a few values and a restart would
resaple up to maxCount logs for those things o every restart.

Despite adding tons of more debug info about resampling, this fixes 2 things:
* If a base series is empty for whatever reason, resampling won't wrongly sample
  the whole series from the beginning any more but just skip it.
* Clearing a thing from the logger now also clears it from livelogs so it won't
  end up in the logs again and trigger the above on every restart
2022-05-09 20:23:23 +02:00
..
energyjsonhandler.cpp Add option to include the current "live" value in thing power logs 2021-12-12 16:44:10 +01:00
energyjsonhandler.h Add logging support 2021-11-20 01:37:23 +01:00
energylogger.cpp Fix thingIds not being removed properly 2022-05-09 20:23:23 +02:00
energylogger.h Fix calculation of sample start for months and years 2022-03-09 23:26:04 +01:00
energymanagerimpl.cpp Fix total caluclation (subtract return from consumption) 2021-12-14 13:51:25 +01:00
energymanagerimpl.h Make internal counters independent from thing counters 2021-12-11 00:28:43 +01:00
experiencepluginenergy.cpp
experiencepluginenergy.h
plugin.pro Add logging support 2021-11-20 01:37:23 +01:00