mirror of
https://github.com/owntracks/recorder.git
synced 2024-11-15 18:08:28 -07:00
add template shell script for Hosted
This commit is contained in:
parent
303393d77b
commit
3feb77d7ec
@ -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
12
etc/hosted.sh
Executable 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/#"
|
Loading…
Reference in New Issue
Block a user