Everything works fine, but when i start lametric later - and the "a number" doesn't change, only "blabla" is shown. Im ust reinstall the app, then it works again how i want
Second qiestion:
What must i do, when i habe 2 frames at start, but i only want one frame after the pull request. The one frame will be override (that's what i want), but the other frame is still shown.
Thanks for your help
Best Answer
L
LaMetric B2B Support Team
said
almost 9 years ago
Hi Joern,
So the issue with data not updating is that you should always use key "text" in order for the value to be overwritten in the app. In your case you should use this json to update data (the problem is in "a number" key):
As for your second question. Currently dynamic data structures are not supported, but that is nice feature and we are considering implementing it in future.
Thank you, hope it helps.
1 Comment
L
LaMetric B2B Support Team
said
almost 9 years ago
Answer
Hi Joern,
So the issue with data not updating is that you should always use key "text" in order for the value to be overwritten in the app. In your case you should use this json to update data (the problem is in "a number" key):
As for your second question. Currently dynamic data structures are not supported, but that is nice feature and we are considering implementing it in future.
Joern
I have a litte app:
initial:
{ "frames": [ { "index": 0, "text": "blabla", "icon": "iconid" } ] }
the pull-link sends following json back:
{ "frames": [ { "index": 0, "a number": "641", "icon": "iconid" } ] }
Everything works fine, but when i start lametric later - and the "a number" doesn't change, only "blabla" is shown. Im ust reinstall the app, then it works again how i want
Second qiestion:
What must i do, when i habe 2 frames at start, but i only want one frame after the pull request. The one frame will be override (that's what i want), but the other frame is still shown.
Thanks for your help
Hi Joern,
So the issue with data not updating is that you should always use key "text" in order for the value to be overwritten in the app. In your case you should use this json to update data (the problem is in "a number" key):
{ "frames": [ { "index": 0, "text": "641", "icon": "iconid" } ] }
As for your second question. Currently dynamic data structures are not supported, but that is nice feature and we are considering implementing it in future.
Thank you, hope it helps.
LaMetric B2B Support Team
Hi Joern,
So the issue with data not updating is that you should always use key "text" in order for the value to be overwritten in the app. In your case you should use this json to update data (the problem is in "a number" key):
{ "frames": [ { "index": 0, "text": "641", "icon": "iconid" } ] }
As for your second question. Currently dynamic data structures are not supported, but that is nice feature and we are considering implementing it in future.
Thank you, hope it helps.
-
How to pull data from external site to display?
-
nodejs request "gets acces denied"
-
curl to python for eventghost
-
Push text from Eventghost to LaMetric via python
-
Basic API pull and json parse example....
-
A guide for starting an app?
-
A small wrapper to push your just created JIRA issues to your LaMetric.
-
Simple project to push home consumption data to be shown on a Lametric device
-
Interface to have Slack send messages to a LaMetric Time
-
Very simple module to push frames to LaMetric
See all 149 topics