Acceleration waveforms
const url = 'http://localhost:80/PhantomService.svc/getAccelData';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"phantomType":11,"phantomCode":"189267015","date":"2021-05-20"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Sensor type code. See the Sensor types page for the full table.
Sensor serial number.
The day to read, as yyyy-MM-dd.
Example
{ "phantomType": 11, "phantomCode": "189267015", "date": "2021-05-20"}Responses
Section titled “Responses”Waveform records.
object
The Key half of every response envelope.
object
0 means OK. See the Status codes page.
object
object
Multiply each channel sample by this to get G.
Signed 16-bit samples.
Signed 16-bit samples.
Signed 16-bit samples.
1 = requested, 2 = scheduled, 3 = alarm.
Internal radio transmitter temperature in °C.
When the measurement was taken.
A .NET-serialised timestamp: milliseconds since the Unix epoch plus a UTC offset.
Example
[ { "Key": { "Description": "OK" }, "Value": [ { "device": "EINALR", "sample_rate": 25600, "recording_reason": 1, "realnodetime": "/Date(1621608806000-0500)/", "time_data": "/Date(1621608806000-0500)/" } ] }]