You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-4Lines changed: 21 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,8 @@ To disable starting a service you can add an environement variable :
52
52
|`SERVICE_ENABLE_PIAWARE`|`false`| Disable piaware service |
53
53
|`SERVICE_ENABLE_FR24FEED`|`false`| Disable fr24feed service |
54
54
|`SERVICE_ENABLE_HTTP`|`false`| Disable http service |
55
+
|`SERVICE_ENABLE_IMPORT_OVER_NETCAT`|`false`| Disable import over netcat|
56
+
55
57
56
58
Ex : `-e "SERVICE_ENABLE_HTTP=false"`
57
59
@@ -135,13 +137,28 @@ Example :
135
137
|`HTML_SITE_LON`|`9.0`||
136
138
|`HTML_SITE_NAME`|`My Radar Site`||
137
139
|`DUMP1090_ADDITIONAL_ARGS`| empty | Additial arguments for dump1090 e.g.: `--json-location-accuracy 2`|
138
-
|`DUMP1090_OVER_NETCAT`|`false`| Use dump1090 in combination with netcat to feed data from rtl_tcp server. (Requires appox. 35-40Mbit/s). Example RTL_TCP command: `./rtl_tcp -a 0.0.0.0 -f 1090000000 -s 2400000 -p 30005 -P 28 -g -10`|
139
-
|`DUMP1090_REMOTE_HOST`| empty | IP of rtl_tcp server |
140
-
|`DUMP1090_REMOTE_PORT`| empty | Port of rtl_tcp server |
141
-
142
140
143
141
Ex : `-e "HTML_SITE_NAME=My site"`
144
142
143
+
## DUMP1090 forwarding
144
+
| Environment Variable | Default value | Description |
|`SERVICE_ENABLE_IMPORT_OVER_NETCAT`|`false`| Enable netcat forwarding the beast-output of a remote dump1090 server to the local dump1090 beast-input |
147
+
|`DUMP1090_LOCAL_PORT`| empty | Must be the same port as specified as `--net-bi-port` in `DUMP1090_ADDITIONAL_ARGS`|
148
+
|`DUMP1090_REMOTE_HOST`| empty | IP of remote dump1090 server |
149
+
|`DUMP1090_REMOTE_PORT`| empty | Port of remote dump190 server specified as argument `--net-bo-port` on remote system|
150
+
151
+
## RTL_TCP forwarding
152
+
153
+
**WARNING:** This kind of forwarding is using a lot of bandwidth and could be unstable in WiFi environments.
154
+
155
+
| Environment Variable | Default value | Description |
|`RTL_TCP_OVER_NETCAT`|`false`| Use dump1090 in combination with netcat to feed data from rtl_tcp server. (Requires appox. 35-40Mbit/s). Example RTL_TCP command: `./rtl_tcp -a 0.0.0.0 -f 1090000000 -s 2400000 -p 30005 -P 28 -g -10`|
158
+
|`RTL_TCP_REMOTE_HOST`| empty | IP of rtl_tcp server |
159
+
|`RTL_TCP_REMOTE_PORT`| empty | Port of rtl_tcp server |
if [ "$SERVICE_ENABLE_IMPORT_OVER_NETCAT" != "false" ]
3
+
then
4
+
echo "Waiting until dump1090 is listening on configured port..."
5
+
while ! nc -z localhost ${DUMP1090_LOCAL_PORT}; do sleep 5; echo "wait until local dump1090 is listening on port ${DUMP1090_LOCAL_PORT}"; done
6
+
while ! nc -z ${DUMP1090_REMOTE_HOST} ${DUMP1090_REMOTE_PORT}; do sleep 5; echo "wait until remote dump1090 (${DUMP1090_REMOTE_HOST}) is listening on port ${DUMP1090_REMOTE_PORT}"; done
7
+
echo "local and remote dump1090 is available now. Start forwarding..."
8
+
9
+
while /bin/true; do /bin/nc ${DUMP1090_REMOTE_HOST} ${DUMP1090_REMOTE_PORT} | /bin/nc -q1 localhost ${DUMP1090_LOCAL_PORT}; sleep 15; done
0 commit comments