# How can I run a script repeatedly every hour?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-run-a-script-repeatedly-every-hour/72701>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 20, 2023, 11:50am UTC](https://forum.inductiveautomation.com/t/how-can-i-run-a-script-repeatedly-every-hour/72701 "2023-04-20T11:50:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KIM\_JINGEUN](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@KIM\_JINGEUN](https://forum.inductiveautomation.com/u/KIM_JINGEUN)\
**Post date:** [April 20, 2023, 11:50am UTC](https://forum.inductiveautomation.com/t/how-can-i-run-a-script-repeatedly-every-hour/72701/1 "2023-04-20T11:50:12Z")

</div>

Hello,  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/9892c54e6068620172d3783b81f80222ba524fe8.png)

If you click the refresh button in the figure, the values ​​of temperature and humidity are updated.  
I would like to automatically update every hour.  
please teach me how to do it.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 20, 2023, 11:53am UTC](https://forum.inductiveautomation.com/t/how-can-i-run-a-script-repeatedly-every-hour/72701/2 "2023-04-20T11:53:51Z")

</div>

Usually such would be run in a gateway timer event script or a gateway scheduled event script, and the results placed in memory tags. The various UI consumers would **bind** to those tags to always have the most recent values.

---

<div class="post-metadata">

**Author:** ![KIM\_JINGEUN](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@KIM\_JINGEUN](https://forum.inductiveautomation.com/u/KIM_JINGEUN)\
**Post date:** [April 20, 2023, 12:27pm UTC](https://forum.inductiveautomation.com/t/how-can-i-run-a-script-repeatedly-every-hour/72701/3 "2023-04-20T12:27:33Z")

</div>

i solved it  
thank you for your reply

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [April 20, 2023, 12:28pm UTC](https://forum.inductiveautomation.com/t/how-can-i-run-a-script-repeatedly-every-hour/72701/4 "2023-04-20T12:28:21Z")

</div>

Couple options:

1. Tie those values in your view to a tag and have the gateway update the tags periodically using Designer\>Scripting\>Gateway Events\>Scheduled.
2. Create a parameter in your view with the following expressions: now(60000) - this value will update once a minute. Set up a change script on this same parameter to execute your script.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 20, 2023, 1:58pm UTC](https://forum.inductiveautomation.com/t/how-can-i-run-a-script-repeatedly-every-hour/72701/5 "2023-04-20T13:58:55Z")

</div>

> [@KIM\_JINGEUN](#):
>
> I would like to automatically update every hour.

Is there a reason you don't want live values? Then they would update continuously.
