mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 01:04:30 +01:00
[PR #516] [MERGED] Dayahead fixes and improvements for 15-minute intervals #1097
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?
📋 Pull Request Information
Original PR: https://github.com/OpenEPaperLink/OpenEPaperLink/pull/516
Author: @benv666
Created: 10/20/2025
Status: ✅ Merged
Merged: 10/20/2025
Merged by: @nlimper
Base:
master← Head:master📝 Commits (1)
91953b8Feat: dayahead fixes and improvements📊 Changes
2 files changed (+594 additions, -44 deletions)
View changed files
📝
ESP32_AP-Flasher/src/contentmanager.cpp(+571 -44)📝
ESP32_AP-Flasher/wwwroot/content_cards.json(+23 -0)📄 Description
Summary
This PR contains several fixes and improvements to support the new 15-minute data interval for the dayahead electricty feed.
Details
The observed problem was simple:
The fix is less trivial, since it requires making a choice:
To keep our options open, this PR introduces a few new settings:
Display Interval
native- will not do any averaging of data, but this can lead to bars becoming too small to display. When this happens the new code first tries to display all future data. (truncating at the end if necessary). In case it fits and there is spare room (but not enough room to make the bars larger), it will start showing more historic data when available.30 minutes- will average incoming data to 30 minute intervals. Due to this resulting in less data this will lead to bigger bars, with the caveat that the user is looking at averaged prices. This can be confusing at times. The "current price" indictator always shows the actual price, not averaged. However, this only makes sense if your update interval is set to 30 minutes or less.1 hour- will average incoming data to 60 minute intervals. This can display 2 days of data like the pre-15 minute intervals, at the cost of being even less accurate.Cheap Block hours
This is a new feature, which when enabled will display two grey blocks in the x-axis labels indicating thew lowest future consecutive block of X hours. This feature is useful to determine when it's a good time to run an appliance such as a dishwasher, or charge your car.
Set to
0to disable, the default setting is3hours per block.Update Interval
Previously the update interval was fixed to 3600 seconds. However, with the new intervals it makes sense for people to update every 15 minutes. But since this means a 4-fold increase, this won't be for everyone.
The setting defaults to
15minutes, but users that want less frequent updates (possibly combined with other display intervals) they can enter a different amount here.Other changes:
Testing
This shows two 2.9" displays with on the top left the "30-min" setting active, the bottom left using the "1 hour" interval, and the 4.2" using the native interval.

While it works for me (tm), I can only test with the hardware I have available.
Feedback welcome.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.