-
-
Notifications
You must be signed in to change notification settings - Fork 101
Description
Currently there’s an ability to configure the app’s basic features via URL:
overland://setup?url=https%3A%2F%2Fexample.com%2Fapi&token=1234&device_id=1&unique_id=yesWhat would be cool is to be able to do what you’re currently doing via JSON responses via app URLs or be able to send that JSON as a query argument to the overland:// URL.
EDIT: Ability to start or stop tracking via app URL overland://start or overland://end as examples, so that, for example, I can create a shortcut that automatically switches the mode to 'car' and starts recording, and stops recording when the device disconnects from the vehicle.
Using the configuration below, for example, the ability to send URLs like overland://set?trip_mode=boat or overland://set?main.tracking_mode=off or on in response to an Apple iOS Shortcut or to Tasker on Android would be really nice.
{
"result": "ok",
"set": {
"send_interval": "1s|5s|10s|15s|30s|1m|2m|5m|10m|30m|off",
"trip_mode": "walk|run|bicycle|car|taxi|bus|tram|train|metro|gondola|monorail|sleigh|plane|boat|scooter",
"main": {
"tracking_mode": "off|standard|significant|both",
"visit_tracking": true|false,
"desired_accuracy": "nav|best|10m|100m|1km|3km",
"activity_type": "other|car|fitness|nav|air",
"background_indicator": true|false,
"pause_automatically": true|false,
"logging_mode": "all|latest|owntracks",
"batch_size": 50|100|200|500|1000,
"resume_with_geofence": "off|100m|200m|500m|1km|2km",
"min_distance": "off|1m|10m|50m|100m|500m",
"min_time": "1s|5s|10s|30s|1m|5m",
},
"trip": {
"desired_accuracy": "nav|best|10m|100m|1km|3km",
"activity_type": "other|car|fitness|nav|air",
"background_indicator": true|false,
"prevent_screen_lock": true|false,
"logging_mode": "all|latest|owntracks",
"batch_size": 50|100|200|500|1000,
"min_distance": "off|1m|10m|50m|100m|500m",
"min_time": "1s|5s|10s|30s|1m|5m",
}
}
}