[GH-ISSUE #82] Feature request: generated "current date" raw images combined into single one #2244

Closed
opened 2026-03-20 21:04:52 +01:00 by sascha_hemi · 5 comments
Owner

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

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
sascha_hemi added the enhancement label 2026-03-20 21:04:52 +01:00
Author
Owner

@nlimper commented on GitHub (Jul 10, 2023):

How much tags is ‘a lot’?

<!-- gh-comment-id:1629177043 --> @nlimper commented on GitHub (Jul 10, 2023): How much tags is ‘a lot’?
Author
Owner

@coelner commented on GitHub (Jul 10, 2023):

38 tags

<!-- gh-comment-id:1629460226 --> @coelner commented on GitHub (Jul 10, 2023): 38 tags
Author
Owner

@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.

<!-- gh-comment-id:1630699360 --> @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 https://github.com/jjwbruijn/OpenEPaperLink/commit/b178994bd6015352ab50866ed17f7207b27f2e89 , it will also end up in the next release.
Author
Owner

@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.

<!-- gh-comment-id:1631410185 --> @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.
Author
Owner

@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:

if (Storage.freeSpace() < bufferSize) {
    wsErr("low on flash. No image generated!");
    return;
}

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.

<!-- gh-comment-id:1638791923 --> @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. https://github.com/jjwbruijn/OpenEPaperLink/blob/ecdadf8c473f84dcb930755cf0f2284089768a55/ESP32_AP-Flasher/src/makeimage.cpp#L213 before the file handler something like this: ``` if (Storage.freeSpace() < bufferSize) { wsErr("low on flash. No image generated!"); return; } ``` 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/OpenEPaperLink#2244