Current sensor settings
POST
/getSettingsData
const url = 'http://localhost:80/PhantomService.svc/getSettingsData';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/getSettingsData \ --header 'Content-Type: application/json' \ --data '{ "phantomType": 11, "phantomCode": "189267015", "date": "2021-05-20" }'Request Bodyrequired
Section titled “Request Bodyrequired”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"}Responses
Section titled “Responses”Settings 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
send_interval
Minutes between full acceleration sends.
integer
sample_rate
integer
samples_to_get
integer
range
Sensor range in G.
integer
alarm1
Alarm threshold in mm/s. Minimum 0.5 (status 505).
number format: float
alarm2
Alarm threshold in mm/s. Minimum 0.5 (status 505).
number format: float
alarm3
Alarm threshold in mm/s. Minimum 0.5 (status 505).
number format: float
alarmcheck_interval
Seconds between alarm checks.
integer
Example
[ { "Key": { "Description": "OK" } }]