Skip to content

Current readings (v2, min/max/average)

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

The v2 current module reports the minimum, maximum and average reading since the last message. The same clamp multipliers apply.

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"
}

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
phantom_code

Sensor serial number.

string
battery

Battery voltage in V. See the Battery ranges page.

number format: float
battery_type

Determines how to read battery. See Battery ranges.

integer
module_temperature

Internal radio transmitter temperature in °C.

number format: float
version

Firmware version.

integer
time_data

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

string
min_current1
number format: float
min_current2
number format: float
min_current3
number format: float
min_current4
number format: float
max_current1
number format: float
max_current2
number format: float
max_current3
number format: float
max_current4
number format: float
avg_current1
number format: float
avg_current2
number format: float
avg_current3
number format: float
avg_current4
number format: float
Example
[
{
"Key": {
"Description": "OK"
},
"Value": [
{
"time_data": "/Date(1621608806000-0500)/"
}
]
}
]