# Alarming based on run hours

**URL:** <https://forum.inductiveautomation.com/t/alarming-based-on-run-hours/71233>\
**Category:** Ignition\
**Created:** [March 17, 2023, 2:42pm UTC](https://forum.inductiveautomation.com/t/alarming-based-on-run-hours/71233 "2023-03-17T14:42:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Welch](https://avatars.discourse-cdn.com/v4/letter/n/8797f3/32.png) [@Nicholas\_Welch](https://forum.inductiveautomation.com/u/Nicholas_Welch)\
**Post date:** [March 17, 2023, 2:42pm UTC](https://forum.inductiveautomation.com/t/alarming-based-on-run-hours/71233/1 "2023-03-17T14:42:16Z")

</div>

I'm trying to set an alarm based on runtime hours for maintence reason. For example I want to send an alarm after a compressor has ran for 200 hours to change an oil filter. What is the best way to accomplish this?

---

<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:** [March 17, 2023, 4:16pm UTC](https://forum.inductiveautomation.com/t/alarming-based-on-run-hours/71233/2 "2023-03-17T16:16:24Z")

</div>

1. Are you reading a run hours counter from the compressor or do you only have the "Run" status bit?
2. Where are you storing the history and how will you reset the hour meter?

I think you need to think this out a bit more and provide the relevant detail.
