Skip to content

Acceleration waveforms

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

Long measurement data from a Phantom acceleration sensor.

channel1, channel2 and channel3 are arrays of signed 16-bit integers. Multiply each member by calibration to get the value in G (9.8 m/s²). channel3 is null on biaxial nodes.

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

Waveform 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>
object
phantom_code
string
device
string
calibration

Multiply each channel sample by this to get G.

number format: float
channel1

Signed 16-bit samples.

Array<integer>
channel2

Signed 16-bit samples.

Array<integer>
channel3
One of:

Signed 16-bit samples.

Array<integer>
sample_rate
integer
sensor_type
integer
recording_reason

1 = requested, 2 = scheduled, 3 = alarm.

integer
Allowed values: 1 2 3
temperature

Internal radio transmitter temperature in °C.

number format: float
battery_type
integer
hasrealtime
boolean
realnodetime

When the measurement was taken.

string
time_data

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

string
sequence
integer
trigger
integer
trigger_type
integer
Example
[
{
"Key": {
"Description": "OK"
},
"Value": [
{
"device": "EINALR",
"sample_rate": 25600,
"recording_reason": 1,
"realnodetime": "/Date(1621608806000-0500)/",
"time_data": "/Date(1621608806000-0500)/"
}
]
}
]