mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #382] Feature request: Round temperature values (less updates for Current Weather) #225
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @heringa on GitHub (Oct 24, 2024).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/382
Is your feature request related to a problem? Please describe.
Yes. The temperature with 1 decimal leads to frequent updates which leads to a significant decrease of battery lifetime.
Describe the solution you'd like
Round the temperature to whole integer values should lead to less updates.
Alternative: configure a minimal update timeout. eg. 15 min.
Describe alternatives you've considered
I bought and replaced batteries over and over. ;-)
Additional context
The rounding feature could be optional.
@nlimper commented on GitHub (Oct 24, 2024):
The update frequency of the current weather is once every half hour.
But agree, it would be better to make the refresh frequency configurable, just like the weather forcast (it's faily easy: use the exiting 'interval' variable by copying lines https://github.com/OpenEPaperLink/OpenEPaperLink/blob/master/ESP32_AP-Flasher/src/contentmanager.cpp#L346-L347 to https://github.com/OpenEPaperLink/OpenEPaperLink/blob/master/ESP32_AP-Flasher/src/contentmanager.cpp#L339-L340 and add it as a parameter in content_cards.json just like https://github.com/OpenEPaperLink/OpenEPaperLink/blob/master/ESP32_AP-Flasher/src/contentmanager.cpp#L346-L347)
(sorry, I currently cannot do it myself, but if somebody feels like it: go ahead!)
@nlimper commented on GitHub (Oct 25, 2024):
fixed, in
dd5d96d1ee@heringa commented on GitHub (Oct 25, 2024):
Excellent! Many thanks. :-)