mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-03 15:04:17 +01:00
- remove 'local' index and replace sensor code depending on it with the existing 'slot' aka 'magnitude index' used in value() and type() - common method to store and retrieve ratios for voltage, current, active power and energy. default implementation is no-op, sensor should implement ratio adjustment & calculations to use 'slot' indexes - re-implement 'expected' values ui. display the actual ratio values, and have a separate page for updating them in a more apparent way - remove legacy settings that were adjusting expected values - remove legacy settings that were resetting ratios and analog calibration - generic webui action caller, add ratios and analog calibration resets all of 'emon' sensors were updated to utilize the new approach to the ratio handling. pulsemeter is somewhat an outlier, but it is unclear whether removing the energy ratio is justified terminal part was also updated - implement `expected` command that hooks into the new ratioFromValue (and what webui uses to calculate ratios) - implement `energy` command to list only MAGNITUDE_ENERGY - remove old pzem004t commands doing ratio reset and total energy count another global update is related to espurna::duration - rework module-local heartbeat and led durations into a global espurna::duration - update sensor internals to use specific units instead of multiplying things on line-by-line basis. export count() to the api