diff --git a/README.md b/README.md index edc2679..d57dc45 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/etc/hosted.sh b/etc/hosted.sh new file mode 100755 index 0000000..5fc82d2 --- /dev/null +++ b/etc/hosted.sh @@ -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/#"