Start a new topic
Answered

Local push goal frame, update in "real time"

I would like to create an app which display a value on a Goal frame (from 0 to 100%) for example.

And I would like to update it "as fast as possible" (smooth). Like a VU meter for example.


- How to push only the current value ? (local push ?)

- How fast is it possible (every seconds ? quicker ?)


Many thanks for your suggestions, best regards


Best Answer

You can push the data directly to your app in the local network. Simply change the host address from developer.lametric.com to your LaMetric Time IP address. For example, https://developer.lametric.com/api/v1/dev/widget/update/com.lametric.package/1

will become

https://192.168.2.1:4343/api/v1/dev/widget/update/com.lametric.package/1

In the case of the local push, the update will be as fast as possible (with minimal impact of network delays). But note that each goal frame has an animation (which cannot be disabled) and a minimal display time of couple seconds. If you want to create an application to stream data in real-time (VU meter, noise meter, etc.), this will be almost impossible using the goal frame.


Best regards,

LaMetric Support Team




1 Comment

Answer

You can push the data directly to your app in the local network. Simply change the host address from developer.lametric.com to your LaMetric Time IP address. For example, https://developer.lametric.com/api/v1/dev/widget/update/com.lametric.package/1

will become

https://192.168.2.1:4343/api/v1/dev/widget/update/com.lametric.package/1

In the case of the local push, the update will be as fast as possible (with minimal impact of network delays). But note that each goal frame has an animation (which cannot be disabled) and a minimal display time of couple seconds. If you want to create an application to stream data in real-time (VU meter, noise meter, etc.), this will be almost impossible using the goal frame.


Best regards,

LaMetric Support Team




Login or Signup to post a comment