EliasStar / DashD

Lightweight daemon for Raspberry Pi driven kiosks
GNU General Public License v3.0
2 stars 0 forks source link

Set temporary display #7

Closed mishoboss closed 2 years ago

mishoboss commented 2 years ago

Description Expose another http endpoint for temporary displaying a URL for given amount of seconds and then it goes back to the previously displayed URL.

Possible Solutions Expose endpoint /display_temporary with get params url and 'duration'. The duration param gets integer value specifying the duration of seconds. After these number of seconds are passed, it loads the previously loaded URL, the one before the /display_temporary request occurred.

Additional Context This feature would be very useful in cases like:

After some time passes, displays return to their previously displayed page.

EliasStar commented 2 years ago

Such higher level logic should be implemented with a smart home "hub" (e.g. OpenHub or Home Assistant) or a seperate control server. DashD should be regarded as a lightweight wrapper between the hardware and a http enabled smart home server. Because of that all http endpoint are idempotent as DashD it self has no internal state.