alexander@newton ~ > mosquitto_pub -h localhost -t "owntracks/bucks/nexus" -m '{"_type":"cmd", "action":"dump"}'
alexander@newton ~ > mosquitto_sub -h localhost -t "#" | json -ga
{
"_type": "cmd",
"action": "dump"
}
{
"_type": "dump",
"configuration": {
"_type": "configuration",
"port": "8883",
"sub": "1",
"tickerOnWaypointTransition": "1",
"locatorInterval": "900000",
"pubQos": "1",
"locatorDisplacement": "500",
"pubInterval": "20",
"pubIncludeBattery": "1",
"notificationLocation": "1",
"notification": "1",
"notificationGeocoder": "1",
"keepalive": "60",
"notificationTickerOnPublish": "1",
"deviceId": "nexus",
"topic": "owntracks/bucks/nexus",
"host": "xxxxx",
"updateAdressBook": "0",
"tls": "1",
"pub": "1",
"pubRetain": "1",
"autostartOnBoot": "1",
"clientId": "nexus",
"connectionAdvancedMode": "1",
"tlsCrtPath": "",
"subTopic": "owntracks/+/+",
"locatorAccuracyForeground": "0",
"locatorAccuracyBackground": "2",
"auth": "1"
"waypoints": [
{
"_type": "waypoint",
"shared": "1",
"lon": 9.xxxxx,
"desc": "xxxxx",
"tst": "1398353271887",
"transition": 3,
"rad": 100,
"lat": 52.xxxxx
}
],
},
"internal": {
"broker": {
"state": "CONNECTED",
"deferredPublishablesCount": 0,
"keepAliveSeconds": 900
},
"locator": {
"hasLocationClient": "1",
"waypointCount": 1,
"lastKnownLocation": "52.xxxxx : 9.xxxxx",
"lastPublishDate": 1398354076465,
"state": "INITIAL",
"ready": "1",
"foreground": "0",
"hasLocationRequest": "1"
},
"application": {
"playServicesAvailable": "1"
}
},
"location": {
"_type": "location",
"lon": "9.xxxxx",
"acc": "34.72",
"tst": "1398363807",
"lat": "52.xxxxx"
}
}
alexander@newton ~ > mosquitto_pub -h localhost -t "owntracks/bucks/nexus" -m '{"_type":"cmd", "action":"reportLocation"}'
alexander@newton ~ > mosquitto_sub -h localhost -t "#" | json -ga
{
"_type": "location",
"lon": "9.xxxx",
"batt": "95",
"acc": "17.25",
"tst": "1398364899",
"lat": "52.xxxxx"
}