To get sensors values, use the command unit/calc_sensors:
svc=unit/calc_sensors¶ms={"lname":<text>, "rname":<text>, "indexFrom": <uint>, "indexTo": <uint>, "unitId": <long>, "sensorId": <long>}
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 |
[ /* array of messages data */ { /* value(s) of sensor(s) from one message */ <text>:<double|text>, /* sensor ID: sensor value */ ... } ]