Browse developer docs
Read a legacy R150 track
GETcar-sorties-log
Request
Send GET to /open/service with serviceName=car-sorties-log and the common signing parameters.
Send extra fields in the URL query
Use the device ID and the run’s time bounds in milliseconds.
Request example
# Requires curl 7.87+, Python 3 and OpenSSL.
: "${XAG_APP_UID:?Set XAG_APP_UID}"
: "${XAG_APP_SECRET:?Set XAG_APP_SECRET}"
timestamp=$(python3 -c 'import time; print(time.time_ns() // 1000000)')
token=$(printf "%s" "$XAG_APP_UID$timestamp$XAG_APP_SECRET" | openssl dgst -sha1 -r | cut -d " " -f 1)
curl --silent --show-error --fail-with-body --max-time 30 --request GET \
'https://open.xa.com/open/service' \
--url-query 'serviceName=car-sorties-log' \
--url-query 'sn=YOUR_R150_SN' \
--url-query 'deviceId=YOUR_DEVICE_ID' \
--url-query 'recordStart=1788200000000' \
--url-query 'recordEnd=1788203600000' \
--url-query "appUid=$XAG_APP_UID" \
--url-query "timestamp=$timestamp" \
--url-query "token=$token"| Parameter | Requirement | Meaning |
|---|---|---|
sn | Required | Authorized equipment serial number. |
deviceId | Required | Device ID for the selected equipment. |
recordStart | Required | Start of the track in Unix milliseconds. |
recordEnd | Required | End of the track in Unix milliseconds. |
Response
data.log contains time-stamped positions and actuator readings. Speed is in metres per second. Actuator units depend on the attachment.
Show example response fields and types
{
"status": "number",
"message": "null",
"data": {
"log": [
{
"timestamp": "number",
"latitude": "number",
"longitude": "number",
"altitude": "number",
"heading": "number",
"speed": "number",
"battery_soc": "number",
"task_state": "number",
"actuator": {
"type": "number",
"container": "number",
"flow_rate": "number",
"power": "number",
"height": "number"
}
}
]
}
}