Hi
Im using the browser block GitHub - balena-labs-projects/browser: A drop-in web browser block and its working really well.
however i’d love to have the page refresh every hour.
I can achieve this by hitting the API on the device like this:
curl -X POST http://192.168.1.111:5011/autorefresh/3600
However that does not survive a device reboot.
Is their a variable that could be used instead of the API?
Hello @bmcneil thank you for your message and welcome to the balena community!
Maybe you could send a PR adding a new feature of autorefresh adding some code here https://github.com/balena-labs-projects/browser/blob/master/src/start.sh managed through a device variable from balenaCloud with the seconds to refresh?
What do you think? Would you like to add this feature?
Hi @mpous i cant do a PR, i dont have the faintest idea on how to code.
But, i did create Feature request - autorefresh variable · Issue #156 · balena-labs-projects/browser · GitHub ¯_(ツ)_/¯
1 Like