Skip to main content

Info

GET /api/info.firmware

Retrieves information on the device's firmware.

This API can also be called before login, but it will only return information on the firmware version currently in use.

Available in 7.1.1 or later

Response

FieldTypeDescription
orderarrayOrder of firmware IDs
<fw_id>objectFirmware information

Firmware Object:

FieldTypeDescription
versionstringFirmware version (e.g. 7.1.0 build 2860)
bootablebooleanFirmware is bootable
inUsebooleanFirmware is currently running

cURL Example

curl -b cookies.txt http://192.168.1.1/api/info.firmware
{
"stat": "ok",
"response": {
"1": {
"version": "7.0.3 build 2765",
"bootable": true,
"inUse": false
},
"2": {
"version": "7.1.0 build 2860",
"bootable": true,
"inUse": true
},
"order": [1, 2]
}
}

GET /api/info.location

Obtain GPS data and other information related to location.

Available in 8.0.1 or later

Response

FieldTypeDescription
gpsbooleanGPS signal is valid
locationobjectGPS location information

GPS_Location Object:

FieldTypeDescription
latitudedoubleLatitude
longitudedoubleLongitude
altitudedoubleAltitude
speeddoubleSpeed
headingdoubleHeading
pdopdoublePosition Dilution of Precision
hdopdoubleHorizontal Dilution of Precision
vdopdoubleVertical Dilution of Precision
timestampintegerTimestamp

cURL Example

curl -b cookies.txt http://192.168.1.1/api/info.location
{
"stat": "ok",
"response": {
"gps": true,
"location": {
"latitude": 22.340134,
"longitude": 114.152588,
"altitude": 55.1,
"speed": 0.026751,
"heading": 356.887,
"pdop": 1.3,
"hdop": 1,
"vdop": 0.8,
"timestamp": 1311972720
}
}
}