# Auto refresh in browser block

**URL:** <https://forums.balena.io/t/auto-refresh-in-browser-block/368795>\
**Category:** Product support\
**Tags:** browser, balenadash\
**Created:** [August 24, 2023, 6:47am UTC](https://forums.balena.io/t/auto-refresh-in-browser-block/368795 "2023-08-24T06:47:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmcneil](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@bmcneil](https://forums.balena.io/u/bmcneil)\
**Post date:** [August 24, 2023, 6:47am UTC](https://forums.balena.io/t/auto-refresh-in-browser-block/368795/1 "2023-08-24T06:47:38Z")

</div>

Hi  
Im using the browser block [GitHub - balena-labs-projects/browser: A drop-in web browser block](https://github.com/balena-labs-projects/browser) 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](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?

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [August 24, 2023, 9:39am UTC](https://forums.balena.io/t/auto-refresh-in-browser-block/368795/2 "2023-08-24T09:39:00Z")

</div>

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](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?

---

<div class="post-metadata">

**Author:** ![bmcneil](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@bmcneil](https://forums.balena.io/u/bmcneil)\
**Post date:** [August 25, 2023, 3:27am UTC](https://forums.balena.io/t/auto-refresh-in-browser-block/368795/4 "2023-08-25T03:27:59Z")

</div>

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](https://github.com/balena-labs-projects/browser/issues/156) ¯\_(ツ)\_/¯
