Table of Contents

Sensors values

To get sensors values, use the command unit/calc_sensors:

svc=unit/calc_sensors&params={"lname":<text>,
			      "rname":<text>,
			      "indexFrom": <uint>,
			      "indexTo": <uint>,
			      "unitId": <long>,
			      "sensorId": <long>}

Parameters

Name Description
rname renderer name (see Create image renderer)
lname layer name
indexFrom index of first message
indexTo index of last message
unitId unit ID
sensorId ID sensor: if 0 - return values of all sensors

Response

[	/* array of messages data */
	{		/* value(s) of sensor(s) from one message */
		<text>:<double|text>,	/* sensor ID: sensor value */
		...
	}
]
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2019 Gurtam