mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #82] Feature request: generated "current date" raw images combined into single one #2797
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 @coelner on GitHub (Jul 10, 2023).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/82
Is your feature request related to a problem? Please describe.
I run out of space. I'm showing the current date on a lot of tags. Each will consume 9.2Kb
Describe the solution you'd like
create just one picture for the date and reuse it.
Describe alternatives you've considered
use more APs
@nlimper commented on GitHub (Jul 10, 2023):
How much tags is ‘a lot’?
@coelner commented on GitHub (Jul 10, 2023):
38 tags
@nlimper commented on GitHub (Jul 11, 2023):
Thanks for submitting.
I don't see a way to do reliable deduplication of the tag images without making things very complicated. But I just added a way to turn off the preview images for the webpage. That way, the .raw-files are not stored on flash anymore after a tag is updated.
Commit
b178994bd6, it will also end up in the next release.@coelner commented on GitHub (Jul 11, 2023):
Top, that is good enough. Another thing: do you check for free space before rendering images? Maybe it is uncorelated, but it generates a lot of empty files and maybe broken images.
@coelner commented on GitHub (Jul 17, 2023):
I have to reopen it. With the change of the date the raw images gets generated and fill up the space.
There is a need for a scheduler to generate another image if enough space is left. The solution to just generate a single "current date" image and push those to all clients breaks because we can't create symlinks. The "current date" selection is so far the only thing, which is used commonly, the tag mac is used as primary key. as you said, there is no easy way for simplifying it.
ecdadf8c47/ESP32_AP-Flasher/src/makeimage.cpp (L213)before the file handler something like this:
However this failing had to get back to the top and needs to be scheduled again. Maybe I dig up some time to implement a pull request.