# \[APP\]\[Pro\] LaMetric Time (Community App)

**URL:** <https://community.homey.app/t/app-pro-lametric-time-community-app/36868>\
**Category:** Apps\
**Tags:** app, homey-pro\
**Created:** [November 2, 2020, 11:04am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868 "2020-11-02T11:04:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [November 2, 2020, 11:04am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/1 "2020-11-02T11:04:55Z")

</div>

# Control your LaMetric Time

**This app works only on firmware 5.0.0 and newer!**

Link to [app store (test-version)](https://homey.app/a/com.lametric.time/test/).

Link to [community app store](https://store.homey.community/app/com.lametric.time).

With this app you can:

- Send notifications, with icon and sound
- Activate a specific widget
- Control the Alarm clock, Radio, Timer, Stopwatch and Weather apps
- Set the volume
- Set the brightness of the display

## Details about actions (then):

#### ‘Notification (icon code)’ and ‘Notification (icon code and sound)’

Icon codes can be defined as ‘Icon ID’ or in ‘binary format’.

Icon ID looks like XXX, where is “i” (for static icon) or “a” (for animation).  
XXX - is the number of the icon and can be found at [LaMetric: Web](https://developer.lametric.com/icons).

Binary icon string must be in this format (png):

“data:image/png;base64,”

or gif:

“data:image/gif;base64,”

## Release Notes:

#### 1.2.1

- Trim spaces from icon code

#### 1.2.0

- Supporting 5000 of the most popular icons
- Added two actions to specify your own icons

#### 1.1.0

- Added flows to set clockface

#### 1.0.0

- Fixed Homey Community ID

#### 0.9.2

- Removed SSDP discovery

#### 0.9.1

- First release

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [November 2, 2020, 12:41pm UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/2 "2020-11-02T12:41:27Z")

</div>

Works great. Thank you !

---

<div class="post-metadata">

**Author:** ![Szergely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/szergely/32/24419_2.png) [@Szergely](https://community.homey.app/u/Szergely)\
**Post date:** [November 4, 2020, 10:37am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/3 "2020-11-04T10:37:18Z")

</div>

Awesome, thank you!!!

---

<div class="post-metadata">

**Author:** ![Siepje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/siepje/32/9441_2.png) [@Siepje](https://community.homey.app/u/Siepje)\
**Post date:** [November 21, 2020, 11:07am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/4 "2020-11-21T11:07:17Z")

</div>

could it be possible to add the clockface settings?  
It is in the API, and you only need to know the clockface id code: i received a description from La Metric how to do this.

You can change the icon on the clock yourself, using the Local API ([Apps — LaMetric v1.8.0 documentation](https://lametric-documentation.readthedocs.io/en/latest/reference-docs/device-apps.html#api-v2-device-apps-package-widgets-id-actions))

First of all, get the clock widget id. You can make request to the LaMetric Time (assuming LaMetric Time is in your local network)

> curl “http://{{lametric\_ip}}:8080/api/v2/device/apps/com.lametric.clock/widgets/” -u “dev:{{api\_key}}”

Where lametric\_ip is the device IP address. You can obtain api\_key on [https://developer.lametric.com](https://developer.lametric.com) under My Devices tab.

The response will look like this:

{  
“actions”: {  
“clock.clockface”: {  
“icon”: {  
“data\_type”: “string”,  
“name”: “icon”,  
“required”: false  
},  
“type”: {  
“data\_type”: “string”,  
“format”: “weather|page\_a\_day|custom|none”,  
“name”: “type”,  
“required”: false  
}  
}  
},  
“package”: “com.lametric.clock”,  
“widgets”: {  
“08b8eac21074f8f7e5a29f2855ba8060”: {  
“index”: 0,  
“package”: “com.lametric.clock”,  
“settings”: {  
“\_title”: “Clock”  
}  
}  
}  
}

As you can see, there is one widget with id `08b8eac21074f8f7e5a29f2855ba8060`

Now we can send clock.clockface action to the widget with desired icons:

> curl -X POST “http://{{lametric\_ip}}:8080/api/v2/device/apps/com.lametric.clock/widgets/{{widget\_id}}/actions” -u “dev:{{api\_key}}” -H ‘Content-Type: application/json’ -H ‘Accept: application/json’ --data-raw ‘{  
> “id”:“clock.clockface”,  
> “params”: {  
> “type” : “custom”,  
> “icon” : “{{icon\_data}}”  
> }  
> }’

The type parameter indicates that we want to set custom-defined icon (other possible variant are weather, page\_a\_day or none). The icon parameter is the icon data in format “data:image/png;base64,”

To sum up, you need to obtain the api key at [https://developer.lametric.com/](https://developer.lametric.com/), get your Clock widget id and send icons directly to the widget.

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [November 21, 2020, 12:28pm UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/5 "2020-11-21T12:28:01Z")

</div>

Hi,

Yes, that’s a good suggestion. I will add two flows: one for switching between: “Weather”, “Page-a-day” and "None, and another flow to set a custom icon.

---

<div class="post-metadata">

**Author:** ![Siepje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/siepje/32/9441_2.png) [@Siepje](https://community.homey.app/u/Siepje)\
**Post date:** [November 21, 2020, 1:47pm UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/6 "2020-11-21T13:47:07Z")

</div>

That is very nice: thank you.

How can i buy you a beer?

---

<div class="post-metadata">

**Author:** ![Werner85](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/werner85/32/16860_2.png) [@Werner85](https://community.homey.app/u/Werner85)\
**Post date:** [November 21, 2020, 8:06pm UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/7 "2020-11-21T20:06:19Z")

</div>

> **[Homey Community Store](https://store.homey.community/app/com.lametric.time)**

Select PayPal 😉

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [November 22, 2020, 1:53pm UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/8 "2020-11-22T13:53:02Z")

</div>

Check out v. 1.1.0, which has two new flows for adjusting the clockface.

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 10, 2021, 5:41pm UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/9 "2021-02-10T17:41:44Z")

</div>

hmm… a question. Maybe I missed something but it looks like that the animated icons can no longer be chosen with this version. I can see the static icons only. Is this a known issue?

---

<div class="post-metadata">

**Author:** ![Juriaan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/juriaan/32/16493_2.png) [@Juriaan](https://community.homey.app/u/Juriaan)\
**Post date:** [February 11, 2021, 8:52am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/10 "2021-02-11T08:52:14Z")

</div>

I have a similar issue. I can only select icons up to number 2304.

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [February 11, 2021, 10:02am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/11 "2021-02-11T10:02:36Z")

</div>

@Shakesbeard @Juriaan I will have a look at it.

---

<div class="post-metadata">

**Author:** ![Juriaan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/juriaan/32/16493_2.png) [@Juriaan](https://community.homey.app/u/Juriaan)\
**Post date:** [February 11, 2021, 10:41am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/12 "2021-02-11T10:41:05Z")

</div>

Thanks in advance for your help. Great app by the way! I realized just now that you have also created the Tesla Smart Charging app! Thanks for making the Homey even more useful for us!

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [February 12, 2021, 7:00am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/13 "2021-02-12T07:00:28Z")

</div>

@Shakesbeard @Juriaan

V.1.2.0 is now ready for testing:

- Supporting 5000 of the most popular icons
- Added two actions to specify your own icons

> **[LaMetric](https://homey.app/en-us/app/com.lametric.time/LaMetric/)**
>
> Connected clock for a Smart Home

You can use one of the 5000 cached icons in the app, or search for an icon here: [LaMetric: Web](https://developer.lametric.com/icons)

Add “i” for static icons or “a” for animation. “a87” is an animated smiley.

Please install, test and report if it’s working / not working as expected 🙂

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 12, 2021, 7:16am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/14 "2021-02-12T07:16:35Z")

</div>

> [@balmli](#):
>
> Please install, test and report if it’s working / not working as expected

I have not checked out the new actions but I can assign the animated icons I used in the old app again. Thanks a bunch!

---

<div class="post-metadata">

**Author:** ![Eelke](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eelke/32/9188_2.png) [@Eelke](https://community.homey.app/u/Eelke)\
**Post date:** [February 12, 2021, 8:49am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/15 "2021-02-12T08:49:08Z")

</div>

Thanks for the update! Works like a charm, also the new action cards.

---

<div class="post-metadata">

**Author:** ![Eelke](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eelke/32/9188_2.png) [@Eelke](https://community.homey.app/u/Eelke)\
**Post date:** [February 12, 2021, 8:55am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/16 "2021-02-12T08:55:00Z")

</div>

Send you a small donation for all your work on already a lot of nice apps. Thanks!

---

<div class="post-metadata">

**Author:** ![Juriaan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/juriaan/32/16493_2.png) [@Juriaan](https://community.homey.app/u/Juriaan)\
**Post date:** [February 12, 2021, 12:29pm UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/17 "2021-02-12T12:29:08Z")

</div>

Thanks Bjørnar for the update, really nice work! The existing and two new actions work as expected, with one small caveat. If I use a text variable containing an icon number (either with i or a in front), the icon does not show. Using variables in the text of the notification itself do work as expected.

Two minor suggestions:

- Perhaps in a future version you could merge the different actions to avoid confusion. So one could search for a cached icon or put in a icon reference if not found in the cache.
- At least on my iPhone, the first letter of a text input is capitalized. But A87 does not seem to work. Perhaps it could be included in the processing of the input that either Axxxx, axxxx, Ixxxx or ixxxx will work.

Again, many thanks for this app!

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 12, 2021, 4:33pm UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/18 "2021-02-12T16:33:14Z")

</div>

> [@Juriaan](#):
>
> If I use a text variable containing an icon number

This could actually be an issue which I faced in one of my apps when trying to pass on an RGB HEX code. If you just assign a token/variable it put a whitespace in front of the value, which is passed to the app code. Maybe we got the same issue here. I just ended up trimming all values I get from flowcards to avoid this problem.

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [February 12, 2021, 4:54pm UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/19 "2021-02-12T16:54:27Z")

</div>

@Juriaan @Shakesbeard

I will trim and remove spaces, plus make sure it’s lowercase for "I"s and "A"s in a future version.

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [February 13, 2021, 7:46am UTC](https://community.homey.app/t/app-pro-lametric-time-community-app/36868/20 "2021-02-13T07:46:49Z")

</div>

Check v. 1.2.1, with trimmed spaces and lowercase for "I"s and "A"s:

> **[LaMetric](https://homey.app/en-us/app/com.lametric.time/LaMetric/)**
>
> Connected clock for a Smart Home

[Next page](https://community.homey.app/t/app-pro-lametric-time-community-app/36868.md?page=2)
