Initial article for Tasker integration

Marius Lindvall 2019-10-17 16:24:43 +02:00
parent 30c7ee6c37
commit e28eefbe35
1 changed files with 28 additions and 0 deletions

28
Tasker-integration.md Normal file

@ -0,0 +1,28 @@
It is possible to start shares in Hauk via Tasker, starting from v1.3.
To create a Hauk task, create a task and add a new action. Choose "System" > "Send Intent".
## Starting a single-user share
This action will start a single user share and then immediately open a share UI prompting the user to share the resulting tracking link.
Action: `info.varden.hauk.START_ALONE_THEN_SHARE_VIA`
Package: `info.varden.hauk`
Class: `info.varden.hauk.global.Receiver`
Target: `Broadcast Receiver`
### Extras
Extra | Type | Default | Value
--------- | ------- | ---------------------- | --------------------
source | String | *Required* | A human readable ID that identifies the source of the broadcast. The first time you use this broadcast, the attempt will be blocked and the user is prompted to authorize shares to be started from broadcast intents identified by the source you specify here. Subsequent broadcasts with the same ID will either start a sharing session or be silently ignored depending on the user's response to the authorization prompt.
server | String | Last used<sup>1)</sup> | The Hauk backend to connect to
password | String | Last used<sup>1)</sup> | The password for the Hauk backend
duration | Integer | Last used<sup>2)</sup> | Duration of the sharing session, in seconds
interval | Integer | Last used<sup>3)</sup> | Interval between each submitted location update, in seconds
adoptable | Boolean | Last used<sup>4)</sup> | `true` if the share should be adoptable by others, `false` otherwise
<sup>1)</sup> Uses the setting that was last used when starting a share from within the Hauk UI.
<sup>2)</sup> See 1). Default if never used is 30 seconds.
<sup>3)</sup> See 1). Default if never used is 1 second.
<sup>4)</sup> See 1). Default if never used is `true` to allow adoption.