# \[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:** 1\
**Showing post:** 3

<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]}), {}))
```

---

_[View the full topic](https://community.homey.app/t/request-script-to-get-overview-of-used-timers-in-chronograph/47715)._
