New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Radarbox feeder #131
Comments
I'm currently testing it, see #135, image tag |
got this when I first ran the radarbox on HA. |
@yousaf465 try it with the correct image tag? |
you mean like this? |
Yes. This way your Lokal docker would not reuse an old image as it looks like. |
let me try ==========
============= correct command
resulted in
|
even waiting for a half an hour didn't resolve it
|
Those key generation is somehow highly unstable to me. I was able to generate keys using some other image on my M1 MacBook ╰─ timeout 300s docker run \
--rm \
-it \
-e BEASTHOST=ADSBerry \
-e LAT=YOURLATITUDE \
-e LONG=YOURLONGITUDE \
-e ALT=YOURALTITUDE \
ghcr.io/sdr-enthusiasts/docker-radarbox:latest
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-libsecomp2: executing...
[cont-init.d] 00-libsecomp2: exited 0.
[cont-init.d] 01-show-rbfeeder-changelog.sh: executing...
rbfeeder (1:1.0.8+deb11) bullseye; urgency=medium
* Fix altitude wrong value.
* Update dump1090 to the latest version.
* Filter calculated weather values.
* New field: TAS.
* New field: Track.
* New field: True Heading.
* New field: ADS-B Version.
* New field: ADS-R Version.
* New field: TIS-B Version.
* New field: MRAR Wind Speed.
* New field: MRAR Wind Dir.
* New field: MRAR Pressure.
* New field: MRAR Temperature.
* New field: MRAR Turbulence.
* New field: MRAR Humidity.
* New field: Roll.
* New command line option: --debug-level (override configuration file).
* New command line option: --debug-filter <text> to filter debug messages.
-- Jonis Maurin Ceara <jceara@airnavsystems.com> Fri, 08 Jul 2022 16:52:56 +0300
[cont-init.d] 01-show-rbfeeder-changelog.sh: exited 0.
[cont-init.d] 02-rbfeeder.sh: executing...
WARNING: TZ environment variable not set
WARNING: SHARING_KEY environment variable was not set!
Please make sure you note down the key generated.
Pass the key as environment var SHARING_KEY on next launch!
[cont-init.d] 02-rbfeeder.sh: exited 0.
[cont-init.d] 03-show-architecture.sh: executing...
Hardware information:
Machine: aarch64
Processor: unknown
Platform: unknown
[cont-init.d] 03-show-architecture.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[rbfeeder] [2023-06-26 14:41:04] Starting RBFeeder Version 1.0.8 (build 20220708190411)
[rbfeeder] [2023-06-26 14:41:04] Using configuration file: /etc/rbfeeder.ini
[rbfeeder] [2023-06-26 14:41:04] Network-mode enabled.
[rbfeeder] [2023-06-26 14:41:04] Remote host to fetch data: 192.168.1.125
[rbfeeder] [2023-06-26 14:41:04] Remote port: 30005
[rbfeeder] [2023-06-26 14:41:04] Remote protocol: BEAST
[rbfeeder] [2023-06-26 14:41:04] Using GNSS (when available)
[rbfeeder] [2023-06-26 14:41:04] Start date/time: 2023-06-26 14:41:04
[rbfeeder] [2023-06-26 14:41:04] Socket for ANRB created. Waiting for connections on port 32088
[rbfeeder] [2023-06-26 14:41:05] Connection established.
[rbfeeder] [2023-06-26 14:41:05] Empty sharing key. We will try to create a new one for you!
[rbfeeder] [2023-06-26 14:41:05] CPU Serial empty. Use MAC address instead.
[rbfeeder] [2023-06-26 14:41:05] Your new key is ddec4b179c2abf1b9XXXXXX927228b54a. Please save this key for future use. You will have to know this key to link this receiver to your account in RadarBox24.com. This key is also saved in configuration file (/etc/rbfeeder.ini)
^C[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
^C[s6-finish] sending all processes the TERM signal.
^C[s6-finish] sending all processes the KILL signal and exiting. But not on my orangepi. Sadly no Raspberry PI here at the moment. |
First: amazing fast work. I am also getting errors with my current sharing key, it seems not being valid and after a few tries, the server accepted it and the station was successfully authenticated to my account. I will monitor this if it will fail or have problems with the integration/authentication. Thanks. [radarbox-feeder] [2023-06-26 16:36:49] Connection established.
[radarbox-feeder] [2023-06-26 16:36:49] CPU Serial empty. Use MAC address instead.
[radarbox-feeder] [2023-06-26 16:36:49] Error authenticating Sharing-Key: Invalid sharing-key
[radarbox-feeder] [2023-06-26 16:36:59] Could not start connection. Timeout.
[fr24feed] 2023-06-26 16:37:04 | [feed][n]ping 5
[fr24feed] 2023-06-26 16:37:05 | [feed][n]syncing stream result: 1
[radarbox-feeder] [2023-06-26 16:37:09] ******** Statistics updated every 60 seconds ********
[radarbox-feeder] [2023-06-26 16:37:09] Packets sent in the last 60 seconds: 1, Total packets sent since startup: 5
[radarbox-feeder] [2023-06-26 16:37:09] Data sent: 315 B
[radarbox-feeder] [2023-06-26 16:37:09] Data received: 135 B
[fr24feed] 2023-06-26 16:37:34 | [feed][n]ping 6
[fr24feed] 2023-06-26 16:37:35 | [feed][n]syncing stream result: 1
[piaware] 3 msgs recv'd from dump1090 (3 in last 5m); 3 msgs sent to FlightAware
[radarbox-feeder] [2023-06-26 16:38:00] Connection established.
[radarbox-feeder] [2023-06-26 16:38:00] CPU Serial empty. Use MAC address instead.
[radarbox-feeder] [2023-06-26 16:38:01] Client type: Raspberry Pi
[radarbox-feeder] [2023-06-26 16:38:01] Connection with RadarBox24 server OK! Key accepted by server.
[radarbox-feeder] [2023-06-26 16:38:01] This is your station serial number: EXTRPIXXXXXX
[fr24feed] 2023-06-26 16:38:04 | [feed][n]ping 7
[fr24feed] 2023-06-26 16:38:05 | [feed][n]syncing stream result: 1
[radarbox-feeder] [2023-06-26 16:38:10] ******** Statistics updated every 60 seconds ********
[radarbox-feeder] [2023-06-26 16:38:10] Packets sent in the last 60 seconds: 2, Total packets sent since startup: 7
[radarbox-feeder] [2023-06-26 16:38:10] Data sent: 494 B
[radarbox-feeder] [2023-06-26 16:38:10] Data received: 166 B
[fr24feed] 2023-06-26 16:38:34 | [feed][n]ping 8
[fr24feed] 2023-06-26 16:38:35 | [feed][n]syncing stream result: 1
[fr24feed] 2023-06-26 16:39:04 | [feed][n]ping 9
[fr24feed] 2023-06-26 16:39:05 | [feed][n]syncing stream result: 1
[radarbox-feeder] [2023-06-26 16:39:11] ******** Statistics updated every 60 seconds ********
[radarbox-feeder] [2023-06-26 16:39:11] Packets sent in the last 60 seconds: 3, Total packets sent since startup: 10
[radarbox-feeder] [2023-06-26 16:39:11] Data sent: 519 B
[radarbox-feeder] [2023-06-26 16:39:11] Data received: 166 B
[fr24feed] 2023-06-26 16:39:34 | [feed][n]ping 10
[fr24feed] 2023-06-26 16:39:35 | [feed][n]syncing stream result: 1
[fr24feed] 2023-06-26 16:40:04 | [feed][n]ping 11
[fr24feed] 2023-06-26 16:40:05 | [feed][n]syncing stream result: 1
[radarbox-feeder] [2023-06-26 16:40:12] ******** Statistics updated every 60 seconds ********
[radarbox-feeder] [2023-06-26 16:40:12] Packets sent in the last 60 seconds: 1, Total packets sent since startup: 11
[radarbox-feeder] [2023-06-26 16:40:12] Data sent: 526 B
[radarbox-feeder] [2023-06-26 16:40:12] Data received: 166 B
[fr24feed] 2023-06-26 16:40:34 | [feed][n]ping 12
[fr24feed] 2023-06-26 16:40:35 | [feed][n]syncing stream result: 1 I am using the addon on a usual Lenovo M900 computer with intel processor, so not a raspberry. |
@MaxWinterstein @Shariner I read here, that is could be unstable on Radarbox side :
Maybe try what is said. |
I let it run for more than 3 hours last time from 3am to almost 6AM. same result. |
Ok, doesn't seems to be this exact issue. I really don't know what to do. |
finally radarbox is working for me
|
anyone else facing this issue? |
Can't really test right now, but would like to point to this: https://community.home-assistant.io/t/home-assistant-add-on-ads-b-multi-portal-feeder-flightradar24-and-flightaware/345563/59 edit: wow, this is consufing. There are multpile issues/conversations around this thing here. Can confirm the mlat issue on my side, using my home assistant addon: [radarbox-feeder] [2023-07-09 10:14:57] Starting RBFeeder Version 1.0.8 (build 20220708190411)
[radarbox-feeder] [2023-07-09 10:14:57] Using configuration file: /etc/rbfeeder.ini
[radarbox-feeder] [2023-07-09 10:14:57] Network-mode enabled.
[radarbox-feeder] [2023-07-09 10:14:57] Remote host to fetch data: 127.0.0.1
[radarbox-feeder] [2023-07-09 10:14:57] Remote port: 30005
[radarbox-feeder] [2023-07-09 10:14:57] Remote protocol: BEAST
[radarbox-feeder] [2023-07-09 10:14:57] Using GNSS (when available)
[radarbox-feeder] [2023-07-09 10:14:57] Start date/time: 2023-07-09 10:14:57
[radarbox-feeder] [2023-07-09 10:14:57] Socket for ANRB created. Waiting for connections on port 32088
[radarbox-feeder] [2023-07-09 10:14:58] Connection established.
[radarbox-feeder] [2023-07-09 10:14:58] Client type: Raspberry Pi
[radarbox-feeder] [2023-07-09 10:14:58] Connection with RadarBox24 server OK! Key accepted by server.
[radarbox-feeder] [2023-07-09 10:14:58] This is your station serial number: <redacted>
[radarbox-feeder] Traceback (most recent call last):
[radarbox-feeder] File "/usr/local/share/radarbox-mlat-client/venv/bin/mlat-client", line 22, in <module>
[radarbox-feeder] import mlat.client.version
[radarbox-feeder] ModuleNotFoundError: No module named 'mlat' But can also confirm, the mlat issue exists on the thom-x image for me on orangepi orangepi@orangepi5:~$ docker run -it --rm -e "SERVICE_ENABLE_RADARBOX=true" -e "SERVICE_ENABLE_DUMP1090=false" -e "SERVICE_ENABLE_HTTP=false" -e "SERVICE_ENABLE_PIAWARE=false" -e "SERVICE_ENABLE_FR24FEED=false" -e "HTML_SITE_LAT=45" -e "HTML_SITE_LON=9" -e "HTML_SITE_ALT=0" -e "RADARBOX_SHARING_KEY=<redacted>" -e "RADARBOX_MLAT=true" thomx/fr24feed-piaware /bin/bash
...
root@b2fc3c2b65b8:/# [radarbox-feeder] [2023-07-09 08:20:33] Starting RBFeeder Version 1.0.8 (build 20220708190411)
[radarbox-feeder] [2023-07-09 08:20:33] Using configuration file: /etc/rbfeeder.ini
[radarbox-feeder] [2023-07-09 08:20:33] Network-mode enabled.
[radarbox-feeder] [2023-07-09 08:20:33] Remote host to fetch data: 127.0.0.1
[radarbox-feeder] [2023-07-09 08:20:33] Remote port: 30005
[radarbox-feeder] [2023-07-09 08:20:33] Remote protocol: BEAST
[radarbox-feeder] [2023-07-09 08:20:33] Using GNSS (when available)
[radarbox-feeder] [2023-07-09 08:20:33] Start date/time: 2023-07-09 08:20:33
[radarbox-feeder] [2023-07-09 08:20:33] Socket for ANRB created. Waiting for connections on port 32088
[radarbox-feeder] [2023-07-09 08:20:34] Connection established.
[radarbox-feeder] [2023-07-09 08:20:34] Client type: Raspberry Pi
[radarbox-feeder] [2023-07-09 08:20:34] Connection with RadarBox24 server OK! Key accepted by server.
[radarbox-feeder] [2023-07-09 08:20:34] This is your station serial number: <redacted>
[radarbox-feeder] Traceback (most recent call last):
[radarbox-feeder] File "/usr/local/share/radarbox-mlat-client/venv/bin/mlat-client", line 22, in <module>
[radarbox-feeder] import mlat.client.version
[radarbox-feeder] ModuleNotFoundError: No module named 'mlat'
^C
root@b2fc3c2b65b8:/# exit
... |
@Thom-x I am not sure, but might this lead towards the wrong Python? docker-fr24feed-piaware-dump1090/root/etc/s6-overlay/s6-rc.d/conf-radarbox/script Line 53 in 912c641
root@4804ada279cf:/# /usr/bin/python3 /usr/local/share/radarbox-mlat-client/venv/bin/mlat-client
Traceback (most recent call last):
File "/usr/local/share/radarbox-mlat-client/venv/bin/mlat-client", line 22, in <module>
import mlat.client.version
ModuleNotFoundError: No module named 'mlat' But running it like this: root@4804ada279cf:/# /usr/local/share/radarbox-mlat-client/venv/bin/python3 /usr/local/share/radarbox-mlat-client/venv/bin/mlat-client
usage: mlat-client [-h] [--input-type {auto,dump1090,beast,radarcape_12mhz,radarcape_gps,radarcape,sbs,avrmlat}] --input-connect INPUT_CONNECT [--results RESULTS]
[--no-anon-results] [--no-modeac-results] --lat LAT --lon LON --alt ALT [--privacy] --user USER [--server SERVER] [--no-udp]
mlat-client: error: the following arguments are required: --input-connect, --lat, --lon, --alt, --user seems to do the job? |
Yes you are right, I did it for testing docker-fr24feed-piaware-dump1090/Dockerfile Line 404 in 912c641
But completely forgot to change here... Let's fix that. |
Awesome, thanks for the quick response. Now we just need to wait for your CI to get the jobs done... 😉 @ALL Addon user: Waiting for the image to be built, the update is ready at my repo. See MaxWinterstein/homeassistant-addons#174 |
carrying on from
MaxWinterstein/homeassistant-addons#169
this container could be used
https://hub.docker.com/r/mikenye/radarbox
https://github.com/sdr-enthusiasts/docker-radarbox
@Shariner if you could open a PR.
The text was updated successfully, but these errors were encountered: