Repository navigation
Releases
Releases · kw123/minMax
bug fixes
- fixed NameError in doSQL error handler (evId -> devId) and in getTrendSymbol error handler
- fixed bad format string in calculate() bad-data log that aborted the whole calculation
- fixed checkbox id typo lastDay18-6StdStdDevSimple -> lastDay18-6StdDevSimple in MenuItems.xml
- calculate(): virtual-point shift no longer leaks into the other time windows (wrong averages/dates)
- refreshRate preference is now used by the main loop and can be set in the plugin config (was hardcoded 30 secs)
- main loop no longer swallows errors silently; plugin does not restart itself on normal shutdown
- variable create/update errors no longer abort the whole fill cycle; bad variable names are logged
- variableUpdated/deviceUpdated protected against malformed tracking entries
- saveDevList: forced save on shutdown/config change (20 sec throttle could drop last changes)
- doSQL: error output after 3 retries is discarded instead of parsed as data; sqlite query now ORDERed by ts
- readPopen returns empty strings instead of None on error
- remove-from-tracking dialog: variables are now correctly identified as variables
- postgres password no longer printed in clear text in config printout
- empty time windows now report 0 for Min/Max/Start/End instead of +-987654321000 sentinels
- removed unused imports and dead code
improved Trend etc
changes in V 2022.18.28 @ 2025-09-15
- trend values: added option to change variable values fro vvvvvvv ... ^^^^^^^^ to vvv4vvv vv4vvv ... v ..= .. ^ .. ^^^4^^^
trend settings can now be done for each dev/state individually - several menu fixes
changes in V 2022.17.28 @ 2025-09-15
- fixed version number determination, did not work for beta version (0b1 is not an integer)
added measurement TREND
- added measurement:
"Trend": "change% = (end value - start value) / (end value + start value) *200; trend = ^^^^^^^, ... ,^,=,v,...,vvvvvvv: if change% > +64x,32x,16x,8x,4x,2x,x, = , < x,2x,4x,8x,16x,32x,64x, x = 1%)"
eg temperature changes in 1 hour
from 20.0 to 20.4% = +2% --> Trend_thisHour = "^^";
20.0 to 18.0 = -10% --> Trend_thisHour = "vvvv",
stays within +-0.2 --> Trend_thisHour = "="
fix error when data is a mix of number and strings, convert all strings to numbers
fix error when data is a mix of number and strings, convert all strings to numbers
optimized code
changes in V 2022.16.26 @ 2023-02-08
-
optimized code, reduced cpu by ~ 90%
most of the cpu was used by the sql query (80%)
now only once an hour, in between subscription to dev / variable changes -
some grammar fixes
removed debug logging
- removed debug logging
- some grammar fixes
- added std deviation simple besides std deviation time weighted
removed debug logging
- removed debug logging
- some grammar fixes
- added std deviation simple besides std deviation time weighted
stddev fix
improvements
-
added
measurement "consumption" = end value of period - start value of period
UpTime = % of time the value in the time window was not 0
Simple Average -
added other time bins
day time, night time , last 12 hours, previuos 12 hours -
fixed calculation of std deviation, the simplified formula does not work for LARGE numbers, back to general formula : sqrt(sum((xi-av)**2))/N
-
added simple average to measures
- before it was ONLY time weighted average as some of the data is not in regular time intervals and some values are longer valid that others. ie when a state is not upated on a fixed time slot basis
eg a lamp is off for 11, on for 1, off for 12 hours
simple average would give (0+1+0)/3 = 1/3
time weighted average would be (011 + 11 * 0*12 )/24 = 1/24 instead of 1/3
now you have both.
- some print out improvements, shows definitions of time windows and measures
performance enhancement
- moved preSelectDevices() out of interactive menu part to avoid timeouts on slower MACs with larger number of devices
of older indigo on new mac Mx - added short name to printout of tracked devices