Legrand / Raritan / Server Technology Xerus™ JSON-RPC API

Loading...
Searching...
No Matches
Example of JSON-encoded Datapush message
{
"sensors": [
{
"device": {
"type": 0, // Inlet sensor (see DeviceType enumeration)
"label": "I1", // Inlet label: I1
"line": 0 // Power line; not applicable for inlet sensors
},
"id": "activePower", // Sensor identification
"readingtype": 0, // Reading type: numeric
"metadata": {
"type": {
"readingtype": 0, // Reading type: numeric
"type": 5, // Sensor type: Active power
"unit": 3 // Reading unit: Watt
},
"decdigits": 0, // No decimal digits
"accuracy": 1.0, // Accuracy: 1 percent
"resolution": 1.0, // Reading resolution: 1 W
"tolerance": 1.5, // Reading tolerance: +/- 1.5 W
"range": {
"lower": 0.0, // Minimum reading: 0 W
"upper": 30000.0 // Maximum reading: 30 kW
}
}
},
{
// [...] static information for next sensor
}
],
"rows": [
{
"timestamp": 1334052852, // Time stamp (seconds since 1/1/1970)
"records": [
{
"available": true, // This record is available
"takenValidSamples": 60, // Number of valid samples in this log period
"state": 5, // Sensor was in normal range
"minValue": 5800.0, // Minimum sensor value: 5.8 kW
"avgValue": 5900.0, // Average sensor value: 5.9 kW
"maxValue": 6100.0 // Maximum sensor value: 6.1 kW
},
{
// [...] record for next sensor
}
]
},
{
// [...] next row
}
]
}