FlightAware Discussions

An open invitation to join the AIS community

I do not have a fixed IP address, but my DHCP issued IP address has not changed for over 10 years.

1 Like

Everyone is welcome to join the AIS channel on Discord:

Hm, can’t join Discord channel unfortunatelly.

Raspberry AIS/ADSB combo device

Hi guys with a little help from some.of the members/developers pointing me in the right direction I managed to setup a pi 3 to run an AIS hat and ADSB dongle/feeders both at the same time on the same device . I thought it may be of.interest to some folk as there’s not much really out.there.
Im new here so go easy on me if I’ve not formatted the post correctly :upside_down_face:
I will use the Fa stick as an example throughout.

Here is exactly what I’ve done.

PART 1 AIS

Whats needed :

  1. Raspberry pi 3b or 4b

  2. Ais Hat on the gpio header such as easyais, daisYhat
    (Apparently the ais can be done on sdr dongles too if you give each dongle a different serial)

3…Sdcard with raspbian lite or other debian based, headless image etcetera.

4.Wifi connectivity or Ethernet
This.can be setup in the usual way as per the OS instructions.

So we start off with our Raspbian.image and once we have logged in, in the normal way we use SSH to …

Download this :

wget https://www.aishub.net/downloads/dispatcher/install_dispatcher

Next Type :

chmod 755 install_dispatcher

And then type :

sudo ./install_dispatcher

##Opening AIS Dispatcher configuration

Start your browser and open URL:

http://IPADDRESS:8080 (change IPADDRESS with your IP address

Default web login credentials are:

  • Username: admin
  • Password: admin

WARNING Don’t forget to change the default password after the first login!

Configuring AIS Dispatcher

After login the web page displays the current status of your AIS station:


To configure your AIS Dispatcher select “Configuration” from the left panel.

There are 3 sections in the configuration panel:

  • Input – configuration of connection to your AIS receiver/data source.
  • Output – configuration of the destinations where AIS data will be forwarded to
  • Settings – additional settings and enable/disable of AIS Dispatcher

##INPUT

AIS Dispatcher supports 3 input options:

  • Serial input (AIS receivers connected via serial/USB interface)38400,8,N,1 settings are applied to the serial interface by default.
    If using a Hat the interface should be set as serial “tty”
    which is what we want to do here.

input_serial
“View devices” button displays all available serial devices in your Raspberry Pi. You can easily select the device where your AIS receiver is connected by clicking on corresponding “Select” button (preferably use selection “By ID” if you don’t have two devices with same ID)
input_serial_devices

WARNING Mаny Raspberry Pi users, who are using serial connection (or AIS shield), have troubles because by default Linux console is enabled on this serial port. If you are using Raspberry OS you should disable the Linux console, follow the instructions on this link
TCP Client (AIS Dispatcher creates TCP connection to your AIS receiver/data source)
input_tcp_client
TCP Server (your AIS data source creates TCP connection to your RPi)
UDP Server (AIS Dispatcher listens for incoming UDP packets)
input_udp_server
##OUTPUT

Output section contains all destinations where your data will be forwarded to.
Current version supports UDP data streaming to 1 or more destination IP addresses / UDP ports.
output
By default, AIS Dispatcher streams data to AISHub anonymous port and your data is displayed at VesselFinder
(Upon creating an account at vesselfinder and sharing to them youll be credited a premium account which is handy for looking at other stations data in comparison and displaying photos and ship details )

Settings

  • Inactivity timeout – Restarts TCP connection if no AIS messages have been received for more than specified time interval (in seconds)
  • Reconnect timeout – Time interval (in seconds) between two sequential connection attempts
  • Downsampling time – Reduces outgoing traffic by transmitting only 1 position report per ship in the specified time frame (in seconds from 0 to 60)
  • Log verbosity – Verbosity of log messages (errors only, errors+connection status, errors + connection status + debug info)
  • Duplicates removal – Reduces outgoing traffic by removal of duplicated AIS messages
  • Tag – Adds NMEA v4.10 tags in the beginning of output NMEA sentences
  • Non-VDM – Dispatches all non-VDM (non-AIS) messages (for example GPS messages)
  • Enabled – Start / Stop AIS Dispatcher

NOTE! Don’t forget to ENABLE AIS Dispatcher and SAVE your configuration!

Map

If the input configuration is OK it is time to click on Map menu and start having fun with your AIS coverage.

Reboot Your Raspberry Pi

sudo reboot

PART 2: ADSB Receiver :

Now for the second part. …The adsb feeder part of this which is quite straight forward, if you’re not all sleeping after the above instructions:stuck_out_tongue_winking_eye:

OK so the prequisites for this are:

1.Flightaware dongle pro plus, blue, orange or what have you.

  1. Suitable antenna connected to your dongle and receiving signals

Connect your FA dongle to the USB 2.0 port on your pi
Next we have to install the scripts for flight aware and adsbexchange at the very minimum.

OK so we install Flightaware feeder :

Download and install the PiAware repository package

wget https://uk.flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_5.0_all.deb

sudo dpkg -i piaware-repository_5.0_all.deb

This will download and install PiAware and required dependencies on your Raspberry Pi.

sudo apt-get update

sudo apt-get install piaware

Download and Install dump1090

sudo apt-get install dump1090-fa

Download and Install dump978

sudo apt-get install dump978-fa

sudo reboot

#THIS PART ISIMPORTANT# …We have to now configure flightaware so he doesn’t clash with the http port of AIS dispatcher, otherwise when we click our skyaware link the AIS web admin config page open rather annoyingly.

To do this in SSH we just type :

sudo nano /etc/lighttpd/conf-enabled/89-skyaware.conf

Change This line

$SERVER[“socket”] == “:8080” {

To This

$SERVER[“socket”] == “:8085” {

CtrL + o then Enter (to write to file)
CtrL + x then Enter (exit nano editor)

You can really enter a number of port of your choice. I decided to keep it nearby on 8085 as I probably would forget anything else.

OK next we have to reboot

sudo reboot

When you’re back up and.booted

Claim your PiAware client on FlightAware.com

You should wait about four or five minutes for your PiAware to start and then you can associate your FlightAware account with your PiAware device to receive all the benefits.

Claim your PiAware client on FlightAware.com

If after 5 minutes your device hasn’t displayed as claimed try restarting the device, if that still doesn’t work re-confirm the Wi-Fi settings (if using Wi-Fi) are correct.
Check your stats page (link below) to confirm it was claimed.

Adsbexchange offers the best display, maps and graphs for checking your feed.

Lets get down to adding.adsbexchange feed to your new AIS/ADSB Receiver

Download via SSH here :

ADS-B/1090 Feeder Script

wget -O /tmp/axfeed.sh https://adsbexchange.com/feed.sh
sudo bash /tmp/axfeed.sh

Verify your feeder is working, check:
https://www.adsbexchange.com/myip/

ADSBexchange Anywhere

wget -O /tmp/axstats.sh https://adsbexchange.com/stats.sh
sudo bash /tmp/axstats.sh

For more information and instructiona go here :

And here :

This post is made with full respect given to the developers who make it all happen for us.
All I’ve done is a bit of tinkering and kanged the links from other posts in order to hopefully make it easier for enthusiasts of marine and air to have a cheap combo device. …(the devs new this was possible anyway but for other newbies like me it saves running multiple Rpis)

A lot of the info is courtesy of aishub,flightaware and adsbexchange.

If you see anything ive missed or want to add in yourself feel free guys . Would be great to see everything (Boats and.Planes) on the same map.
There is a good example of this here :

And in action here :
https://planesailing.ianrenton.com
Thanks again for the add to the forum and helping me get setup

Regards

2 Likes