# \[Request\] Script to get overview of used timers in Chronograph

**URL:** <https://community.homey.app/t/request-script-to-get-overview-of-used-timers-in-chronograph/47715>\
**Category:** Questions & Help\
**Created:** [May 23, 2021, 10:43pm UTC](https://community.homey.app/t/request-script-to-get-overview-of-used-timers-in-chronograph/47715 "2021-05-23T22:43:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BartOverdevest](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bartoverdevest/32/38783_2.png) [@BartOverdevest](https://community.homey.app/u/BartOverdevest)\
**Post date:** [May 23, 2021, 10:43pm UTC](https://community.homey.app/t/request-script-to-get-overview-of-used-timers-in-chronograph/47715/1 "2021-05-23T22:43:46Z")

</div>

Could someone help with a piece of HomeyScript or code for the Web API playground to produce a list of Chronograph Timers as defined and referred to in any flow card (if…, then…, then…).  
This to check they are used consequently between different card, that no spelling errors or extra spaces were added.

I switched from using Timers in App Countdown Timers to App Chronograph for more flexibility, easier configuration.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 23, 2021, 11:52pm UTC](https://community.homey.app/t/request-script-to-get-overview-of-used-timers-in-chronograph/47715/2 "2021-05-23T23:52:09Z")

</div>

Good Q. I tend to use parts of the flow name.

---

<div class="post-metadata">

**Author:** ![tb1962](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tb1962/32/7888_2.png) [@tb1962](https://community.homey.app/u/tb1962)\
**Post date:** [May 24, 2021, 8:06am UTC](https://community.homey.app/t/request-script-to-get-overview-of-used-timers-in-chronograph/47715/3 "2021-05-24T08:06:43Z")

</div>

Chronograph timers are created when needed and destroyed when stopped. The only way to get a list of timers is looping through flows

The following example produces a dictionary of timer-names used in flows along with it’s type (timer, stopwatch etc)

```
const flowsDic = await Homey.flow.getFlows();
const flows = Object.values(flowsDic)
const actions = flows.map(f => f.actions.filter(a => a.uri === 'homey:app:nl.fellownet.chronograph')).flat()
log(actions.reduce((a,x) => ({...a, [x.args.name]:x.id.split('_')[0]}), {}))
```

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 14, 2022, 9:19pm UTC](https://community.homey.app/t/request-script-to-get-overview-of-used-timers-in-chronograph/47715/4 "2022-07-14T21:19:37Z")

</div>

Very nice. Is there a possibility to return the flow names as well?
