pmahler
pmahler

Reputation: 11

Access lastMeasurement in HTML widget

I want to reference the last measurment of a device in a HTML widget. The page https://www.cumulocity.com/guides/users-guide/cockpit/ give samples to access these.

My attempt to show the TemperatureMeasurement doesn't return a result:

{{devices[391].lastMeasurement.c8y_TemperatureMeasurement.T}}

Upvotes: 0

Views: 198

Answers (1)

TyrManuZ
TyrManuZ

Reputation: 2049

This is currently not possible from the HTML widget. You can only access the data inside the managedObject from there.

Maybe try using the SCADA widget for that and create your custom content as SVG instead of HTML.

Upvotes: 0

Related Questions