# \[APP\]\[Pro\] Chronograph - Adds precise timer, stopwatch and transition functionality to Homey

**URL:** <https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214>\
**Category:** Apps\
**Tags:** app, official, tools, homey-pro\
**Created:** [September 17, 2019, 5:55am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214 "2019-09-17T05:55:42Z")\
**Posts on this page:** 20\
**Page:** 24

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 15, 2023, 10:27pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/476 "2023-03-15T22:27:15Z")

</div>

### Coming soon: Chronographs can be directly reflected on Advanced Virtual Devices from the [Device Capabilities app](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/):

So, no more flows needed to set the field of an AVD based on a Chronograph timer/transition/stopwatch.

> [@\[APP\]\[Pro\] Advanced Virtual Device (Device Capabilities App) with Unique Text Status Indicator](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/253):
>
> Coming soon to the [Device Capabilities App](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/): Reflection of Variables or Chronographs in AVDs! You can now (well, when it’s published) select entities from other apps to be reflected as value of the AVD field! For example, let it reflect a [Better Logic Library](https://homey.app/nl-nl/app/net.i-dev.betterlogic/Better-Logic-Library/) variable: Or let it reflect a [Chronograph](https://homey.app/nl-nl/app/nl.fellownet.chronograph/Chronograph/): Here the Elapsed time is formatted with the BLL expression to fit the textfield with a nicely timestamp. You can also let a button reflect the Running (or removed) sta…

The reflection also supports the new `time` method in BLL coding and expressions from the [Better Logic Library app](https://homey.app/nl-nl/app/net.i-dev.betterlogic/Better-Logic-Library/):

> [@\[APP\]\[Pro\] Better Logic Library - Just some better logic, variable and library management](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/316):
>
> Okay, @Peter_Kawa, and others, coming soon (ready in develop): BLL has a new build-in function: time time(format, timeMs?, timeSec?) This function will return the given time (from ms or seconds) in the requested format. Handy to convert (milli)seconds into timestamps! [image] (It took 11 days.) [image] Very usefull for the new feature coming to the [Advanced Virtual Devices](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198) from the [Device Capabilties app](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/). Reflection of values in AVDs [https://community.homey.app/t/app-pro-advanced-virtual…](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/253)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 16, 2023, 8:31am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/477 "2023-03-16T08:31:11Z")

</div>

### All in test now:

- [Chronograph (test)](https://homey.app/a/nl.fellownet.chronograph/test)  
Also HP2023 testing and bugfixing.
- [Device Capabilities (test)](https://homey.app/a/nl.qluster-it.DeviceCapabilities/test/)  
With it’s new time, reflection and many bugfixes and improvements for the HP2023
- [Better Logic Library (test)](https://homey.app/a/net.i-dev.betterlogic/test/)  
Support for the other updates and extensive HP2023 testing.

---

<div class="post-metadata">

**Author:** ![M\_a\_r\_c\_o](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/m_a_r_c_o/32/146_2.png) [@M\_a\_r\_c\_o](https://community.homey.app/u/M_a_r_c_o)\
**Post date:** [March 17, 2023, 11:52am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/478 "2023-03-17T11:52:05Z")

</div>

Home 2023, if I add a timer device, the device is created, but does not show any activity, while looking in Chronograph app settings the timer is running

df5bbc32-08e7-4dc9-b317-6351110c191b

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 17, 2023, 11:52am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/479 "2023-03-17T11:52:37Z")

</div>

> [@M\_a\_r\_c\_o](#):
>
> Home 2023, if I add a timer device, the device is created, but does not show any activity, while looking in Chronograph app settings the timer is running

This should be resolved in the latest test version from last night.

---

<div class="post-metadata">

**Author:** ![GibStorm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gibstorm/32/48274_2.png) [@GibStorm](https://community.homey.app/u/GibStorm)\
**Post date:** [March 20, 2023, 3:35pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/480 "2023-03-20T15:35:11Z")

</div>

I’m suddenly having massive issues with this app. Constantly crashing, and I cannot load the settings at all. Have tried restarting the app and restarting the Homey Pro, but nothing helps.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 20, 2023, 3:45pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/481 "2023-03-20T15:45:57Z")

</div>

Are there any messages being displayed anywhere?

---

<div class="post-metadata">

**Author:** ![GibStorm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gibstorm/32/48274_2.png) [@GibStorm](https://community.homey.app/u/GibStorm)\
**Post date:** [March 20, 2023, 3:47pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/482 "2023-03-20T15:47:46Z")

</div>

Timeout error on the settings page. Other than that, no. I’ve made a diagnostics report. ID: 77c715c7-b283-40b3-8db6-54d13e1dfdf8

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 20, 2023, 3:51pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/483 "2023-03-20T15:51:15Z")

</div>

Please use the new version:  
[Chronograph App voor Homey | Homey](https://homey.app/nl-nl/app/nl.fellownet.chronograph/Chronograph/)

If it doesn’t work, send me another diag (i have placed loggings in the changed places).

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [March 21, 2023, 1:05pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/484 "2023-03-21T13:05:43Z")

</div>

> [@Peter\_Kawa](#):
>
> ```auto
> // Create homeyscript string tag for clock_hhmm
> timerName = timerName + '_clock_hhmm'
> await tag(timerName, clock_hhmm);
> 
> ```

I like cleaning up. 😅 How do I remove a homey script tag?

I am also interested to know how (where) I can verify the current value of a homey script tag.

---

<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:** [March 21, 2023, 5:12pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/485 "2023-03-21T17:12:36Z")

</div>

> [@Rrrr](#):
>
> How do I remove a homey script tag?

Go to the Homeyscript tab in the web app, and look for the example scripts 😉  
 ![Screenshot from 2023-03-21 18-10-04](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/2/f286fc1e27b6e0f1c5db0f0ad22965b532405d4f.png)

> [@Rrrr](#):
>
> I am also interested to know how (where) I can verify the current value of a homey script tag.

You can do that f.i. in the tag ‘picker’, enter “Homeyscript” in the searchfield

 ![Screenshot from 2023-03-21 18-10-58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/9/5917a35279aa8d92f7963417636338a1299af03c.png)

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [March 22, 2023, 2:40pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/486 "2023-03-22T14:40:28Z")

</div>

Amazing work. Small request: would be very nice to see when a chronograph was last used, similar to the countdown view.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/7/37ae327aa415d4f0e7ccf5fdd6243f254cdc87d3.png)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 23, 2023, 10:55am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/487 "2023-03-23T10:55:36Z")

</div>

### Update: Issues on older HPs with an extrem amount of running Chronograps, seems to be resolved in the latest version.

Multiple reporters have stated this morning that it is working again as before.

Meaning: The few extra properties made it just to much every second.  
Currently, the properties are still there, but instead of before, where each updated chronograph was send through realtime each second, i now collect the updated chronographs and send them in one realtime message.

This seems to stop it from overloading when having such amounts of running chronographs.

If someone still has crash-issues (on older HPs) let me know!

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 23, 2023, 11:49am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/488 "2023-03-23T11:49:14Z")

</div>

Hey @gibstorm, please let me know if it’s also resolved for you.

---

<div class="post-metadata">

**Author:** ![Anders\_Gregow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_gregow/32/61721_2.png) [@Anders\_Gregow](https://community.homey.app/u/Anders_Gregow)\
**Post date:** [March 23, 2023, 11:51am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/489 "2023-03-23T11:51:06Z")

</div>

What info is updated every second on running timers/stopwatches and what is it used for?  
Some time ago you explained to me that Chronograph only did some (too much) work when the timer/stopwatch was ended/started/reached transition?

Updating every second sound waist of resources? Or am I missing something?  
I am a sw developer but has no knowledge about implementing in Homey.  
Please enlighten me. 🙂

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 23, 2023, 12:14pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/490 "2023-03-23T12:14:12Z")

</div>

> [@Anders\_Gregow](#):
>
> Some time ago you explained to me that Chronograph only did some (too much) work when the timer/stopwatch was ended/started/reached transition?

Indeed, that’s what i thought.  
And it still does very little internally, but i later found that it did send realtime messages over the API, ofcourse, for the App Settings.

This remained, and is still in use.  
I just added 2 properties, elapsed and remaining, so it can be used by AVDs.  
Altho this caused an issue (with users on hp2019 running a couple of dozens to a hunderd chronographs at once. Those now work fine again btw!) and i now changed how this realtime message is send.

Nothing is updated every second, only a message is send over connected APIs (like appsettings or the AVDs) with an array containing running Chronograph with a few properties.  
Only difference is now, i made the specific realtime message send one array, instead of a realtime message per running chronograph.

When the App Settings are not opened and you don’t have DC installed or the realtime-updates disabled in the DC Settings, then this update only reduces resources (as “can be seen” by the fact that the issues that appeared a few days back, seem to have disappeared with the last update).

But i’m sure i can implement a toggle in the Chronograph to completly disable this realtime message, saving (i think in many cases not much) resources, but that would mean that the running Chronographs in the App Settings are not really showing the real Chronographs, but calculated versions of them, like before.

---

<div class="post-metadata">

**Author:** ![Anders\_Gregow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_gregow/32/61721_2.png) [@Anders\_Gregow](https://community.homey.app/u/Anders_Gregow)\
**Post date:** [March 23, 2023, 12:28pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/491 "2023-03-23T12:28:05Z")

</div>

Thanks for the explanation. Always nice to understand how things work under the hood.  
So sending realtime messages when not used will not decrease performance of the Homey, only resources?

Is it possible to only send them if someone is subscribing, e.g when the setting is opened?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 23, 2023, 12:41pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/492 "2023-03-23T12:41:23Z")

</div>

> [@Anders\_Gregow](#):
>
> Is it possible to only send them if someone is subscribing, e.g when the setting is opened?

Technicly, that is already the case, the message is send, but stops because no-one is listening.

However, the array is still build about every second when timers are running.  
This is very little work, but it’s still only used for updating Chronograph devices and keeping the settingspage up2date.  
Because i cannot know if there are API listeners, and it would be very hard to know if the settings are opened, creating the array (and message) could be placed behind a toggle, for users with a older HP model and many running active. But right now, i am not getting any more reported issues, only that it’s fixed.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [May 6, 2023, 8:19am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/493 "2023-05-06T08:19:17Z")

</div>

Okay, Chronographs were not correctly updated in other apps, since my last performance change.  
This issue is now resolved.  
Update ([Chronograph App for Homey | Homey](https://homey.app/a/nl.fellownet.chronograph/)) to resolve the values not updating correctly in other apps like the [Device Capabilities App](https://homey.app/a/nl.qluster-it.DeviceCapabilities/) and it’s [Advanced Virtual Devices](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198).

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [May 18, 2023, 8:15am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/494 "2023-05-18T08:15:28Z")

</div>

> [@DirkG](#):
>
> But presumably you mean an overview within the app, as it’s the case with the CountDown app, for example, right?  
> If something like that could be integrated into the Chronograph app, that would be great.

Hey @DirkG, @Peter_Kawa (and other people),

**In test now:**

> **[Chronograph](https://homey.app/en-us/app/nl.fellownet.chronograph/Chronograph/test/)**
>
> Adds precise timer, stopwatch and transition functionality to Homey.

Just like i build for Countdown, Advanced Triggers and Better Logic Library (for variables):  
You can now select any chronograph (timers/stopwatches/transitions) in each flowcard from a dropdownlist.  
In that dropdownlist, you can also create a new chronograph and select it: It will be created when you press save or run.

I also keept the old name field in flowcards, firstly to keep all flows working, and also because you can than still use tags in the name.  
So a name can be picked, created in the pick list or can be created in the “free” textfield.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/4/e439352e9584b44cb3b2737eeed926ee9f622cf6.png)

**Just start typing a name, and select it as new or select from the existing ones.**

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/7/571c6ff841b2d2333dd2550f2664c29629848a06.png)

---

<div class="post-metadata">

**Author:** ![Anders\_Gregow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_gregow/32/61721_2.png) [@Anders\_Gregow](https://community.homey.app/u/Anders_Gregow)\
**Post date:** [May 18, 2023, 8:24am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/495 "2023-05-18T08:24:35Z")

</div>

Nice!  
Good that you kept the old field too, as I use wildcards and tags. 🙂

[Previous page](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214.md?page=23)

[Next page](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214.md?page=25)
