Gravio can be used with LaMetric in order to output visual or text data. Here is how you integrate it:

Step 1: Finding out your LaMetric’s IP address

- Open your LaMetric App and find out the IP by clicking on “settings” and then “wifi”

Step 2: Obtaining your device’s API key

- Open https://developer.lametric.com/login and log in with your credentials
- In the drop down of your name, click on “my devices”
- copy the API Key of the device you want to control

Step 3: Creating your POST Request

- Create a new Action including a POST Step
- URL: http://[IP or your LaMetric]:8080/api/v2/device/notifications
- HTTP Method: POST
- Content-Type: application/json
- Query String: leave empty
- Body: "{\"model\":{\"frames\":[{\"text\":\"Gravio!\",\"icon\":\"i23532\"}]}}"
- Authorization Type: Basic
- Authorization Value: dev:[your API key from Step 2]
- Timeout: 30

LaMetric HTTP Post Request

More information about LaMetric can be found here.

Tip

You can also make a message stick on the screen using this command. But that means you need to delete it again before you can send the next message:

Set message: "{\"lifeTime\":10000,\"model\":{\"cycles\":0,\"frames\":[{\"text\":\"How are you?\",\"icon\":\"i23532\"}]}}"
Get ID of current message: GET http://<device ip address>:8080/api/v2/device/notifications/current
Delete message: DELETE https://<device ip address>:8080/api/v2/device/notifications/<id>

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment