# Best way to show current day's uptime in a Perspective view

**URL:** <https://forum.inductiveautomation.com/t/best-way-to-show-current-days-uptime-in-a-perspective-view/112980>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 24, 2025, 1:23am UTC](https://forum.inductiveautomation.com/t/best-way-to-show-current-days-uptime-in-a-perspective-view/112980 "2025-12-24T01:23:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![D\_Mitri\_Tompkins](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@D\_Mitri\_Tompkins](https://forum.inductiveautomation.com/u/D_Mitri_Tompkins)\
**Post date:** [December 24, 2025, 1:23am UTC](https://forum.inductiveautomation.com/t/best-way-to-show-current-days-uptime-in-a-perspective-view/112980/1 "2025-12-24T01:23:11Z")

</div>

I have a tag that correlates to an external companies’ mostly proprietary machine that we aren’t allowed to mess with the PLC of at all.

The tag displays a product count (ranging from 0 to about 90) in the last minute, sort of a case per minute count.

Whenever that tag goes above 5 for the first time each day, I want to start tracking it until it drops to ) for longer than an hour, and while tracking it I want to show how long it has been above 5 expressed as a percentage at the current point in the day.

Ie. if the tag goes above 5 at 5:35 am and it is currently 9:55 am I am trying to show what percent of those elapsed 260 minutes the value was at least 5.

I am currently mainly trying to do this all within the perspective view but wondering if I am better serviced running a gateway event that writes a runtime percent value each minute for me to reference in the view.

Any help or insight appreciated, sorry for probably dumb question or poor explanation.

---

<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:** [December 24, 2025, 2:02am UTC](https://forum.inductiveautomation.com/t/best-way-to-show-current-days-uptime-in-a-perspective-view/112980/2 "2025-12-24T02:02:29Z")

</div>

Record the raw value into your DB once per minute with a scheduled gateway event. After that, it is just SQL with some subqueries for any given time period.

---

<div class="post-metadata">

**Author:** ![Chris\_Bingham](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Chris\_Bingham](https://forum.inductiveautomation.com/u/Chris_Bingham)\
**Post date:** [December 29, 2025, 5:07am UTC](https://forum.inductiveautomation.com/t/best-way-to-show-current-days-uptime-in-a-perspective-view/112980/3 "2025-12-29T05:07:29Z")

</div>

+1 for storing the historical values & querying later.  
A runtime accum might be sraightforward to implement, but storing & querying is more forward thinking - gives you data to work with if/when your criteria for uptime changes.
