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

Hello, Balmi. Great app.
Thanks.
Only one question. The notification is only 4 seconds. Is it possible to extend the time? Like minutes?
Thanks is advance.

Yes, that works. Thank you.

That leaves the question where can I find the binary codes for the icons. Is there a list somewhere?

Regards,
Paul

You can either use the predefined list of icons:

or the icon code, see here:
https://developer.lametric.com/icons

I’m not sure. You can have a look at the Lametric API from this link:
https://lametric-documentation.readthedocs.io/en/latest/reference-docs/device-notifications.html#

Pheuw, That is difficult. I don’t know much of app development. Can it be lifetime what i saw in the api? Or do i understand this wrong.

Or is it possible with the app on Lametric messageboard that somebody suggested?

On this moment i let it repeat the notification in seconds. If the notification is 8 seconds long i let it repeat every 8 seconds so it looks like a loop.

Thanks for your app. Great work.

Thanks for your response. But that works for the notification-card, but not for the “set custom clockface” card.

Regards,
Paul

Options for the clockface is to use the “Weather” or “Page-a-day” predefined ones, or create a custom one.

For custom you need to provide a data:image/png:base64,<something> or data:image/gif;base64,<something> string, as mentioned above.

I am having some time to figure out how to set the custom clock face.

In your example you use

“iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAOklEQVQYlWNUVFBgwAeYcEncv//gP04FMEmsCmCSiooKjHAFMEF0SRQTsEnCFcAE0SUZGBgYGAl5EwA+6RhuHb9bggAAAABJRU5ErkJggg==”

This example works good, but i can’t figure out how to use the lametric gallery and convert an icon to this hex string/binary(?) code so i can use it in the flow.

Hi @balmli,
Thanks for building this app! Awsome :slight_smile:.
Do you see any option to add custom sounds (as in mp3’s)?
https://lametric-documentation.readthedocs.io/en/latest/reference-docs/device-notifications.html

POST https://<device IP address>:4343/api/v2/device/notifications

Authorization: Basic <Base64("dev:<device API key>")>
Content-Type: application/json
Accept: application/json

{
    "priority": "warning",
    "icon_type": "info",
    "model": {
        "cycles": 1,
        "frames": [
           {
              "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAUklEQVQYlWNUVFBgYGBgYBC98uE/AxJ4rSPAyMDAwMCETRJZjAnGgOlAZote+fCfCV0nOmA0+yKAYTwygJuAzQoGBgYGRkUFBQZ0dyDzGQl5EwCTESNpFb6zEwAAAABJRU5ErkJggg==",
              "text": "SOUND IS PLAYING!"
           }
        ],
        "sound": {
            "url":"https://dl.espressif.com/dl/audio/gs-16b-2c-44100hz.mp3",
            "fallback": {
                "category": "notifications",
                "id": "cat"
            }
        }
    }
}

Thank you for your great work, @balmli – quick question, is there any way to activate the Screensaver like I can set it in the app?

1 Like

Is there not a way to simply enter the iconcode from the lametric database instead of using base64?

Hello there, thank you for this app. I was wondering if something is changed in the Lamtric app. The last couple of weeks i see that some flows work and some flows stop with an error.

Lametric Volume (or eg. next Widget) is working fine, but the Notification is displaying an error. Any idea what this could be?