How do you configure PiAware for 2 possible WiFi SSIDs?

I tried the steps in this link but the file names/content don’t match exactly to what’s on the PiAware image.

https://medium.com/@mikestreety/use-a-raspberry-pi-with-multiple-wifi-networks-2eda2d39fdd6

That page doesn’t work.

You’d have to check the piaware internals and how WiFi is configured by them.
In the piaware-config it doesn’t seem to have an option for multiple WiFi networks.

I’d just use a fresh Raspbian Buster Lite image and configure that via:

• If a wpa_supplicant.conf file is placed into the /boot/ directory, this will be moved to the /etc/wpa_supplicant/ directory the next time the system is booted, overwriting the network settings; this allows a Wifi configuration to be preloaded onto a card from a Windows or other machine that can only see the boot partition.
(https://www.raspberrypi.org/blog/another-update-raspbian/)

So you burn buster lite, then open the file wpa_supplicant.conf on the boot partition that’s visible in windows.

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
	ssid="network1"
	psk="password1"
	key_mgmt=WPA-PSK
	priority=6
}
network={
	ssid="network2"
	psk="password2"
	key_mgmt=WPA-PSK
	priority=3
}

This file should be self explanatory.
It will prefer network1 over network2 because the priority for 1 is higher.

Don’t forget to also create an empty file named ssh on the boot parititon to activate SSH.

Now you can power up the RPi with the fresh SD-card and should be able to just install piaware.
PiAware - dump1090 ADS-B integration with FlightAware - FlightAware

The piaware image is limiting in some aspects because it’s meant to be easy to use.

1 Like

Thanks @wiedehopf , I’ll give that a try tonight.

So the priority is determined by the network with the highest priority# ??? - seems counter-intuitive, normally priority=1 would be first choice, right?

It’s by definition, they chose to do it this way.

wpa_supplicant.conf(5)

priority
The priority of a network when selecting among multiple networks;
a higher value means a network is more desirable. By default
networks have priority 0. When multiple networks with the same
priority are considered for selection, other information such as
security policy and signal strength are used to select one.

1 Like