Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit f79d67e

Browse files
committed
separated radiotracking from config module
1 parent 05aed0a commit f79d67e

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

etc/caddy/Caddyfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
reverse_proxy http://localhost:8050
1010
}
1111

12+
route /radiotracking-config/* {
13+
reverse_proxy http://localhost:8051
14+
}
15+
1216
file_server * browse {
1317
root /data/
1418
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=RadioTracking Configuration
3+
After=network.target mosquitto.service time-sync.target hostname-config.service
4+
5+
StartLimitIntervalSec=600
6+
StartLimitAction=reboot
7+
8+
[Service]
9+
ExecStart=bash -c "/usr/bin/python3 -m radiotracking.config --config /boot/radiotracking.ini --station `hostname` --dashboard --dashboard-host localhost --dashboard-port 8050 --mqtt --mqtt-host localhost --mqtt-port 1883 --csv --export-config --path /data"
10+
Restart=always
11+
RestartSec=10s
12+
13+
[Install]
14+
WantedBy=multi-user.target
15+

tRackIT.Pifile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ RUN mkdir /data
109109
RUN chown pi:pi /data
110110
RUN ln -s . /data/sysdweb
111111
RUN ln -s . /data/radiotracking
112+
RUN ln -s . /data/radiotracking-config
112113
RUN ln -s /boot/ /data/boot
113114

114115
# enable caddy
@@ -159,8 +160,13 @@ RUN tee -a /etc/modprobe.d/raspi-blacklist.conf <<<'blacklist dvb_usb_rtl28xxu'
159160
# Install radiotracking
160161
RUN python3 -m pip install -e /home/pi/pyradiotracking
161162
RUN systemctl enable radiotracking.service
163+
RUN systemctl enable radiotracking-config.service
162164
RUN tee -a /etc/sysdweb.conf <<EOF
163165
[radiotracking]
164166
title = RadioTracking
165167
unit = radiotracking
168+
169+
[radiotracking-config]
170+
title = RadioTracking Configuration
171+
unit = radiotracking-config
166172
EOF

0 commit comments

Comments
 (0)