Skip to content

Accumulated current

POST
/getAccCurrentData
curl --request POST \
--url http://localhost:80/PhantomService.svc/getAccCurrentData \
--header 'Content-Type: application/json' \
--data '{ "phantomType": 11, "phantomCode": "189267015", "date": "2021-05-20" }'

Current accumulated since the sensor started, in ampere-hours (Ah), with the start and end of the reported period.

Media typeapplication/json
object
phantomType
required

Sensor type code. See the Sensor types page for the full table.

integer
phantomCode
required

Sensor serial number.

string
date
required

The day to read, as yyyy-MM-dd.

string format: date
Example
{
"phantomType": 11,
"phantomCode": "189267015",
"date": "2021-05-20"
}

Accumulated current records.

Media typeapplication/json
Array<object>
object
Key

The Key half of every response envelope.

object
StatusNumber
required

0 means OK. See the Status codes page.

integer
Description
required
string
Configs
Array<object>
object
Value
Array<object>

Ampere-hours accumulated since the sensor started, over the period the two timestamps delimit. Field names transcribed from MessageEIMONanoAccumulatedCurrentData in the PhantomLib SDK.

object
accumulated_current1
number format: float
accumulated_current2
number format: float
accumulated_current3
number format: float
accumulated_current4
number format: float
startPeriod

A .NET-serialised timestamp: milliseconds since the Unix epoch plus a UTC offset.

string
endPeriod

A .NET-serialised timestamp: milliseconds since the Unix epoch plus a UTC offset.

string
Example
[
{
"Key": {
"Description": "OK"
},
"Value": [
{
"startPeriod": "/Date(1621608806000-0500)/",
"endPeriod": "/Date(1621608806000-0500)/"
}
]
}
]