owntracks / android

OwnTracks Android App
http://owntracks.org
Eclipse Public License 1.0
1.34k stars 474 forks source link

cmd on Android #905

Open clevertonh opened 3 years ago

clevertonh commented 3 years ago
{
  "_type": "configuration",
  "waypoints": [],
  "_build": 22202,
  "autostartOnBoot": true,
  "cleanSession": false,
  "cmd": true,
  "debugLog": false,
  "deviceId": "000001",
  "dontReuseHttpClient": true,
  "experimentalFeatures": [],
  "fusedRegionDetection": true,
  "geocodeEnabled": true,
  "ignoreInaccurateLocations": 0,
  "ignoreStaleLocations": 0,
  "locatorDisplacement": 50,
  "locatorInterval": 10,
  "locatorPriority": 3,
  "mode": 3,
  "monitoring": 2,
  "moveModeLocatorInterval": 10,
  "notificationEvents": true,
  "notificationHigherPriority": false,
  "notificationLocation": true,
  "opencageApiKey": "",
  "password": "1234",
  "ping": 15,
  "pubExtendedData": true,
  "remoteConfiguration": true,
  "tid": "01",
  "url": "https://localhost/owntracks/pub",
  "username": "000001"
}

Return when sent location:

[
  {
    "acc": 21,
    "alt": 93,
    "batt": 59,
    "conn": "w",
    "device": "000001",
    "lat": -29.508720,
    "lon": -49.096803,
    "tid": "01",
    "topic": "owntracks/000001/00000A",
    "tst": 1609781709,
    "username": "000001",
    "vac": 2,
    "vel": 1,
    "_http": true,
    "_label": "OwnTracks",
    "_type": "location"
  },
  { "_type": "cmd", "action": "action", "content": "test" }
]

Any forecast for the implementation of the commands?

{"_type":"cmd","action":"action","content":"Backend maintenance scheduled for tonight\n\nhttp://support.owntracks.org"}
{"_type":"cmd","action":"action","content":"<a href='http://support.owntracks.org'>Backend Maintenance tonight</a>"}
{"_type":"cmd","action":"action","url":"http://support.owntracks.org"}
{"_type":"cmd","action":"action","notification":"Warning! Battery low"}
jpmens commented 3 years ago

cmd with action is currently iOS only, and we’ve no roadmap for implementation on Android.

clevertonh commented 3 years ago

Hello @jpmens , at least the notification command, no interest in implementing?

{"_type":"cmd","action":"action","notification":"Warning! Battery low"}
jpmens commented 3 years ago

It’s not a question of interest but of time, effort, and priorities. :-)

growse commented 3 years ago

Happy to use this issue as a tracking issue.

clevertonh commented 3 years ago

It’s not a question of interest but of time, effort, and priorities. :-)

I understand @jpmens, if possible, I ask you to add this implementation to the RoadMap. I believe it is important to keep the features equal between the APP on Android and iOS.

jpmens commented 3 years ago

It has been marked as enhancement, and this issue will track that progress.

Koxx3 commented 2 years ago

hi, any update on this feature ?

growse commented 2 years ago

It's on the backlog.