Update Usermod Battery
📝 Changelog
- added "auto-off" feature
- added "low-power-indication" feature
- added "calibration/offset" field to configuration page
- added getter and setter, so that user usermods could interact with this one
- update readme (added new options, made it markdownlint compliant)
- added usermod/project logo
- usermod rename to just "battery" instead of "battery_status_basic"
🤞 Other
If i missed something, did a mistake or if you want me to change something please let me know.
Unfortunaly i have not manged to implement the "remaining battery time" feature calculation. Due to the frequent changes in the estimated current, it is difficult to establish a stable basis for calculation. In order to be able to implement such a function sensibly, one would have to oritate on already existing systems, e.g. smartphones. Because these already calculate reasonable values. Minemeinung dazu ists man nie zu 100% die genaue laufzeit "errechnen" kann. You can only make assumptions, because you can never look into the future. An idea for the calculation would be that one takes the estimated power consumption, which is already determined by wled, for a certain time recorded and thus an average value is calculated. With this average value you can then continue. Also notice that not all battery types have the same discharge curve. Batteries don't discharge linearly.