Debian + Flightradar24 その3

受信環境までは構築できた(はず)なので、Flightradar24への転送設定を実施

Flightradar24のサイトで最新のパッケージを確認する
www.flightradar24.com

パッケージのダウンロードとインストールを実行

$ wget https://repo-feed.flightradar24.com/linux_x86_64_binaries/fr24feed_1.0.25-3_amd64.deb
$ sudo dpkg -i fr24feed_1.0.25-3_amd64.deb|

インストールが終了したら、設定を実施
尚、事前にFlightradar24のサイトでアカウントは作成しておくこと

$ sudo fr24feed --sign

MailAddressを入力

Step 1.1 - Enter your email address (username@domain.tld)
$: <MailAddress>

初めてデータ共有するので、Sahreing key もってないのでそのまま空ウチ

Step 1.2 - If you used to feed FR24 with ADS-B data before, enter your sharing key.
If you don't remember your sharing key, you can find it in your account on the website under "My data sharing".
https://www.flightradar24.com/account/data-sharing

Otherwise leave this field empty and continue.
$:

Flightradar24では、MLATはno

Step 1.3 - Would you like to participate in MLAT calculations? (yes/no)$: no

LAT & LONを入れるので、空ウチ (緯度 / 経度から後で最寄り設定してくれるので)

Step 2 - Enter nearest airport code (IATA or ICAO)

We need to know your antenna's approximate position to filter bogus traffic as well as to enable ground position decoding. You can either enter nearest airport code or leave the field empty to provide exact antenna location. If your antenna is farther than 20 miles from the nearest airport we strongly recommend providing its true position instead as it may affect decoder's performance.

If you will ever need to change the location, please run the sign-up wizard again.

Enter airport code or leave empty$:

緯度を入力

Step 3.A - Enter antenna's latitude (DD.DDDD)
$:

経度を入力

Step 3.B - Enter antenna's longitude (DDD.DDDD)
$:

海抜を Feet で入力 (xx Mじゃないんだよなあ・・・)

Step 3.C - Enter antenna's altitude above the sea level (in feet)
$:

入力したデータから最寄りの空港を検索さて設定される、問題なければ yes

The closest airport found is ICAO:RJTT IATA:HND near Tokyo.

Latitude: 35.552250
Longitude: 139.779602
Country: Japan

Flightradar24 may, if needed, use your email address to contact you regarding your data feed.

Would you like to continue using these settings?

Enter your choice (yes/no)$:

入力した設定が問題なければ、yes

We have detected that you already have a dump1090 instance running. We can therefore automatically configure the FR24 feeder to use existing receiver configuration, or you can manually configure all the parameters.

Would you like to use autoconfig (*yes*/no)$:

ログファイルのローテーション設定
1か2お好きなほうで(自分は1)

Step 6 - Please select desired logfile mode:
 0 -  Disabled
 1 -  48 hour, 24h rotation
 2 -  72 hour, 24h rotation
Select logfile mode (0-2)$:

そうすると速攻 sharing keyが発行されて、iniファイルに埋め込まれる

Congratulations! You are now registered and ready to share ADS-B data with Flightradar24.
+ Your sharing key (共有鍵) has been configured and emailed to you for backup purposes.
+ Your radar id is (レーダーID), please include it in all email communication with us.
+ Please make sure to start sharing data within one month from now as otherwise your ID/KEY will be deleted.

Thank you for supporting Flightradar24! We hope that you will enjoy our Premium services that will be available to you when you become an active feeder.

To start sending data now please execute:
sudo systemctl start fr24feed

Saving settings to /etc/fr24feed.ini...OK

/etc/fr24feed.ini は以下のようになってるはず

receiver="avr-tcp"
fr24key="共有鍵"
host="127.0.0.1:30002"
bs="no"
raw="no"
logmode="1"
logpath="/var/log/fr24feed"
mlat="no"
mlat-without-gps="no"

これで一応設定は完了なのだが
どうやら Linux自前鯖の時は、beast-tcpにするのがお約束らしいので config の受信方式とPortを書き換える
なお、改行コードが CR+LFのWindows仕様になってたので注意

receiver="beast-tcp"
host="127.0.0.1:30005"

fr24feed を再起動する

# systemctl restart fr24feed

再起動後に http://:8754/ にアクセスすると fr24feedのステータスが確認できる


Flightradar24のサイトにアクセスし、Data Sharingページで Onlineになっていれば成功
www.flightradar24.com