hmx-17の日記

技術ネタとかプライベート

ADS-Bを見る(2)

続き

FlightAwareにも出す。
FlightAwareのコンパイル済みバイナリはRasPi向けなのでとりあえずビルドする。
GitHubのプロジェクトをcloneする

$ git clone https://github.com/flightaware/piaware_builder.git
$ cd piaware_builder
$ sudo apt-get install build-essential debhelper tcl8.6-dev autoconf python3-dev python3-venv dh-systemd libz-dev devscripts  tcl8.5-dev python-virtualenv pkg-config iproute tclx8.4 tcllib tcl-tls itcl3
$ ./sensible-build.sh jessie

これでdebファイルができるので、ファイル名を確認して

$ sudo dpkg -i piaware_3.0.5~bpo8+1_amd64.deb

でインストール

$ sudo nano /etc/piaware.conf
# This file configures piaware and related software.
# You can edit it directly or use piaware-config from the command line
# to view and change settings.
#
# If /boot/piaware-config.txt also exists, then settings present in
# that file will override settings in this file.
receiver-type other # updated by fa_piaware_config
receiver-host 127.0.0.1 # updated by fa_piaware_config

として

$ sudo systemctl enable piaware
$ sudo systemctl status piaware <= 止ってるか確認
$ sudo systemctl restart piaware <= 動いてたら
$ sudo systemctl start piaware <= 止ってたら

とする。

 $ systemctl status piaware
● piaware.service - FlightAware ADS-B uploader
Loaded: loaded (/lib/systemd/system/piaware.service; enabled; vendor preset:
Active: active (running) since Sun 2016-09-18 19:27:15 JST; 9h ago
Docs: https://flightaware.com/adsb/piaware/
Main PID: 12346 (piaware)
CGroup: /system.slice/piaware.service

 よきかな。

しばらくするとFlightAwareから見れるようになる。