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
| Field | Type | Description |
|---|---|---|
order | array | Order of firmware IDs |
<fw_id> | object | Firmware information |
Firmware Object:
| Field | Type | Description |
|---|---|---|
version | string | Firmware version (e.g. 7.1.0 build 2860) |
bootable | boolean | Firmware is bootable |
inUse | boolean | Firmware 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
| Field | Type | Description |
|---|---|---|
gps | boolean | GPS signal is valid |
location | object | GPS location information |
GPS_Location Object:
| Field | Type | Description |
|---|---|---|
latitude | double | Latitude |
longitude | double | Longitude |
altitude | double | Altitude |
speed | double | Speed |
heading | double | Heading |
pdop | double | Position Dilution of Precision |
hdop | double | Horizontal Dilution of Precision |
vdop | double | Vertical Dilution of Precision |
timestamp | integer | Timestamp |
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
}
}
}