Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Automatically load pictures from URL #40

Open
Hades32 opened this issue Apr 25, 2021 · 6 comments
Open

Feature Request: Automatically load pictures from URL #40

Hades32 opened this issue Apr 25, 2021 · 6 comments

Comments

@Hades32
Copy link
Contributor

Hades32 commented Apr 25, 2021

It would be great if it was possible to configure per activation ID (and per color) a URL pointing to a BMP and a refresh interval.

The ESP could then grab these images in the defined interval, check if they changed (either via ETag, If-Modified-Since or checksum) and send them to the device if they changed.

This way it would be easy to host image creation on more powerful devices or in the cloud. We could even build parametrizable services that everybody can use - something like https://epaper.dev/date-news-weather?device=c74&color=b&city=munic,de which could compose images from some fragments and return them in a device-specific format

@Hades32
Copy link
Contributor Author

Hades32 commented Apr 25, 2021

I was wondering if this is even possible or if downloading via HTTPS would be too time-consuming and thus break the tags' protocol timing...

@probonopd
Copy link
Contributor

probonopd commented Apr 25, 2021

One could use the spiffs on the ESP as a cache for the image data if needed.

@atc1441
Copy link
Owner

atc1441 commented Apr 25, 2021

This feature is planed.

A general task handler with also some dynamic content as option or picture frame mode is a good solution for many different requests

@Hades32
Copy link
Contributor Author

Hades32 commented Apr 25, 2021

@atc1441 I think you mentioned wanting to add a database of known activations. Is there a feature branch for this already?
If I find time to work on this PR it would make sense to build it on top of such a database feature

@atc1441
Copy link
Owner

atc1441 commented Apr 25, 2021

No its not started at all.
I tested a few different solutions for databases.

The winner is still a simple txt file which is loaded "manual" and parsed that way.

One other option was sqlite but that is hard to edit without an editor or only via the sql requests

@Hades32
Copy link
Contributor Author

Hades32 commented Jan 16, 2022

FYI, it's not yet fully automatic (in the sense of polling on an interval), but it's working on my fork now:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants