Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
rbfeeder adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasreiser committed Apr 20, 2020
1 parent 7c1fcbb commit 420bc9f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ ENV S6_OVERLAY_VERSION v1.22.1.0
LABEL maintainer="[email protected]"

RUN apt-get update -y && \
# rtl-sdr
apt-get install -y \
nano \
wget \
# rtl-sdr
devscripts \
libusb-1.0-0-dev \
pkg-config \
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ docker run -d -p 8080:8080 -p 8754:8754 \
--device=/dev/bus/usb:/dev/bus/usb \
-e "FR24FEED_FR24KEY=MY_SHARING_KEY" \
-e "PIAWARE_FEEDER_DASH_ID=MY_FEEDER_ID" \
-e "RBFEEDER_SHARINGKEY=MY_SHARING_KEY" \
-e "RBFEEDER_KEY=MY_SHARING_KEY" \
-e "HTML_SITE_LAT=MY_SITE_LAT" \
-e "HTML_SITE_LON=MY_SITE_LON" \
-e "HTML_SITE_NAME=MY_SITE_NAME" \
Expand Down Expand Up @@ -115,14 +115,14 @@ docker run -it --rm \

Then : `/rbfeeder/rbfeeder --showkey --nostart` and to get your new key. Use this key then to claim this station in your RadarBox account at https://www.radarbox.com/raspberry-pi/claim.

Add the environment variable `RBFEEDER_SHARINGKEY` with your sharing key.
Add the environment variable `RBFEEDER_KEY` with your sharing key.


| Environment Variable | Configuration property | Default value |
|---------------------------------------|--------------------------|-------------------|
| `RBFEEDER_SHARINGKEY` | `client` -> `key` | `YOUR_KEY_HERE` |
| `RBFEEDER_KEY` | `[client]` -> `key` | `` |

Ex : `-e "RBFEEDER_SHARINGKEY=0123456789"`
Ex : `-e "RBFEEDER_KEY=0123456789"`


### Terrain-limit rings (optional):
Expand Down
13 changes: 12 additions & 1 deletion root/etc/confd/rbfeeder/templates/rbfeeder.ini.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
[client]
network_mode=true
key={{getv "/sharingkey"}}
log_file=/tmp/rbfeeder.log
{{- range gets "/*" }}
{{base .Key }}={{ .Value }}
{{- end }}
{{- range gets "/*/dash/*" }}
{{base (dir (dir .Key))}}-{{base .Key }}={{ .Value }}
{{- end }}
{{- range gets "/*/dash/*/dash/*" }}
{{base (dir (dir (dir (dir .Key))))}}-{{base (dir (dir .Key))}}-{{base .Key }}={{ .Value }}
{{- end }}
{{- range gets "/*/dash/*/dash/*/dash/*" }}
{{base (dir (dir (dir (dir (dir (dir .Key))))))}}-{{base (dir (dir (dir (dir .Key))))}}-{{base (dir (dir .Key))}}-{{base .Key }}={{ .Value }}
{{- end }}

[network]
mode=beast
Expand Down
2 changes: 1 addition & 1 deletion root/etc/cont-init.d/05-confd-rbfeeder
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default_value()
export $key
}

default_value "sharingkey" ""
#default_value "key" ""

if [ ! -f /etc/rbfeeder.ini ]; then
/opt/confd/bin/confd -onetime -confdir "/etc/confd/rbfeeder" -prefix "rbfeeder" -backend env
Expand Down

0 comments on commit 420bc9f

Please sign in to comment.