26 Commits

Author SHA1 Message Date
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
Jenkins nymea
b68bc3893a Merge PR #5: Optimize energy logs DB rectification after system downtime 2022-03-27 19:51:49 +02:00
Jenkins nymea
7debf18535 Merge PR #4: Fix calculation of sample start for months and years 2022-03-27 19:51:48 +02:00
Michael Zanetti
73dd05b01f Optimize energy logs DB rectification after system downtime 2022-03-26 01:32:17 +01:00
Michael Zanetti
d1ba7c1de8 Fix calculation of sample start for months and years 2022-03-09 23:26:04 +01:00
Simon Stürz
6ccbb31acd Fix debug print escape typo 2022-01-11 09:06:48 +01:00
Michael Zanetti
c0146c0abf Fix total caluclation (subtract return from consumption) 2021-12-14 13:51:25 +01:00
Michael Zanetti
70ad30ccd3 Add option to include the current "live" value in thing power logs 2021-12-12 16:44:10 +01:00
Michael Zanetti
68bc1d648f Make internal counters independent from thing counters 2021-12-11 00:28:43 +01:00
Michael Zanetti
2da2d9458b Cleanups 2021-12-07 23:48:23 +01:00
Michael Zanetti
2df41462ad Update size estimation comments based on new log entry format 2021-12-06 12:24:34 +01:00
Michael Zanetti
97286a5827 More fixes 2021-11-29 14:33:16 +01:00
Michael Zanetti
abe01d3869 Fix re-initializing things logger 2021-11-28 12:14:35 +01:00
Michael Zanetti
d494e5a181 More fixes 2021-11-28 01:40:09 +01:00
Michael Zanetti
bddaae3d91 Some more fixes 2021-11-28 00:04:23 +01:00
Michael Zanetti
5f4534b6dc Fix sampling of things totalEnergy states 2021-11-27 01:15:24 +01:00
Michael Zanetti
fd1fd490df Fix loading of previous values at startup 2021-11-26 16:43:04 +01:00
Michael Zanetti
f63e9bcaf0 More logs 2021-11-26 16:08:19 +01:00
Michael Zanetti
6e312fe02c Fix trimming of logs 2021-11-25 00:43:33 +01:00
Michael Zanetti
10d323a3aa Fix sampleing of things totalConsumption/totalProduction 2021-11-23 16:43:43 +01:00
Michael Zanetti
602347dba1 Housekeeping on energy logs (removal of removed things) 2021-11-23 14:46:22 +01:00
Michael Zanetti
a34dd7642b Fixes 2021-11-23 00:47:11 +01:00
Michael Zanetti
034f90d7a9 Add totals to balance 2021-11-22 00:43:36 +01:00
Michael Zanetti
d684016498 Add storage to power balance 2021-11-20 01:37:28 +01:00
Michael Zanetti
59d4e1d50d Add logging support 2021-11-20 01:37:23 +01:00
Michael Zanetti
885fe9be3a Add nymea energy experience plugin 2021-11-11 12:28:49 +01:00