add template shell script for Hosted

This commit is contained in:
Jan-Piet Mens 2015-09-11 18:17:33 +02:00
parent 303393d77b
commit 3feb77d7ec
2 changed files with 13 additions and 1 deletions

View File

@ -222,7 +222,7 @@ The location message received by the _recorder_ will be written to storage.
You have an account with our Hosted platform and you want to store the data published by your device and the devices you track. Proceed as follows:
1. Download the [StartCom ca-bundle.pem](https://www.startssl.com/certs/ca-bundle.pem) file to a directory of choice, and make a note of the path to that file.
2. Create a small shell script modelled after the one hereafter with which to launch the _recorder_.
2. Create a small shell script modelled after the one hereafter (you can copy it from [etc/hosted.sh](etc/hosted.sh)) with which to launch the _recorder_.
3. Launch that shell script to have the _recorder_ connect to _Hosted_ and subscribe to messages your OwnTracks apps publish via _Hosted_.
```bash

12
etc/hosted.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# hosted.sh
# Template shell script to use for launching Recorder with a
# Hosted OwnTracks account. Fill in the blanks:
export OTR_USER="________" # your OwnTracks Hosted username
export OTR_DEVICE="______" # one of your OwnTracks Hosted device names
export OTR_TOKEN="_____________" # the Token corresponding to above pair
export OTR_CAFILE="/path/to/startcom-ca-bundle.pem"
ot-recorder --hosted "owntracks/#"