Change the Wi-Fi settings
The following instructions explain how to add your home Wi-Fi and configure a fallback hotspot on your BirdNET-Pi. This ensures that the system can be accessed both within your local network and in the field.
When the BirdNET-Pi is within range of a configured Wi-Fi network (e.g., your home network), it will automatically connect to it. If no known network is available, the device will switch to hotspot mode and create its own network. This hotspot does not provide internet access but allows direct connection to the Raspberry Pi.
Instructions (Network Manager)
Section titled “Instructions (Network Manager)”- If you are no longer connected via SSH, reconnect and enter the password ‘mauersegler’. Replace ‘00’ with the number on your Raspberry Pi.
ssh birdnet-admin@birdnet-rpi00.local- First, we need to open the Network Manager:
sudo nmtui
-
In Network Manager, you can move the selected item using the
arrow-keys + Left Arrow arrow-keys← arrow-keys + Left Arrow arrow-keys← Up Arrow ↑ Up Arrow ↑ Right Arrow → Right Arrow → Down Arrow ↓ Down Arrow ↓ and confirm withEnter + Return Enter↵ Enter + Return Enter↵ . -
Select
Edit a connection.

- Select
Add.

- Select
Wi-Fias the connection type.

- Select
Create.

- Now you need to add your network configuration. Let us start with the hotspot settings.
- Profile Name: Used for identification only. It is recommended to use the name
Hotspot, otherwise make sure to replaceHotspotwith your chosen name in the following commands. - Device: Write
wlan0. This is the name of the Wi-Fi interface on the Raspberry Pi. - SSID: This is the name of the Wi-Fi network that will be created. You can choose it freely. Since there are many Raspberry Pis in the workshop, make it unique so you can easily identify your device. Make sure to remember it.

- Select
Access PointforMode. (Clientis for adding a Wifi network, which we will do later.)

- Select
B/G (2.4 GHz)forChannel.

- Under
Security, selectWPA & WPA2 Personal.

- Under
Password, enter a password for the hotspot. Remember it! This password will be required to connect to the hotspot later.

- Configure the IP settings as follows:
- IPv4 Configuration:
Shared - IPv6 Configuration:
Disabled

- Select
OKat the bottom. - Optional: Add your home Wi-Fi network by repeating steps 4 to 12.
In this case, enter the credentials of your home network:
- Profile Name: Used for identification only. It is recommended to use the name
Home, otherwise make sure to replaceHomewith your chosen name in the following commands. - Device:
wlan0 - SSID: Name of your home Wi-Fi network
- Mode: Client (leave as default)
- Security:
WPA & WPA2 Personal - Password: Password of your home Wi-Fi network
- IPv4 Configuration:
Automatic(leave as default) - IPv6 Configuration:
Automatic(leave as default)
This allows the BirdNET-Pi to automatically connect to your home Wi-Fi when it is available.
- Select
Back.

- Select
Quit.

Instructions (Set connection priorities)
Section titled “Instructions (Set connection priorities)”- Now we will set the connection priorities for the Wi-Fi and hotspot connections.
This means that the Raspberry Pi will first attempt to connect to the known Wi-Fi network.
Only if no connection is possible will it automatically create its own hotspot so that a
connection to the device can still be established.
First, we need to navigate to the correct folder using the
cdcommand.
cd /etc/NetworkManager/system-connectionsbirder@birdnetpi:~ $ cd /etc/NetworkManager/system-connectionsbirder@birdnetpi:/etc/NetworkManager/system-connections $- Let’s open the file for the hotspot connection.
(If you did coose another profile name for the hotspot, replace
Hotspotwith your chosen name in the following commands.)
sudo nano Hotspot.nmconnection GNU nano 7.2 Hotspot.nmconnection [connection]id=Hotspotuuid=4cc09b40-6ef0-4caf-bbf6-600fe2121122type=wifi
[wifi]band=bgmode=apssid=BirdNET Pi Hotspot
[wifi-security]key-mgmt=wpa-pskpsk=Here is your password for the hotspot
[ipv4]method=shared
[ipv6]addr-gen-mode=defaultmethod=disabled
[proxy]
[ Read 23 lines ]
^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line- Insert the following code snippet into the first part of the file.
The entry
autoconnect=trueactivates automatic connection establishment. The valueautoconnect-priority=0sets the priority of the network. The higher the number, the more preferred this network is when connecting automatically.
autoconnect=trueautoconnect-priority=0 GNU nano 7.2 Hotspot.nmconnection * [connection]id=Hotspotuuid=4cc09b40-6ef0-4caf-bbf6-600fe2121122type=wifiinterface-name=wlan0
autoconnect=trueautoconnect-priority=0
[wifi]band=bgmode=apssid=BirdNET Pi Hotspot
[wifi-security]key-mgmt=wpa-pskpsk=Here is your password
[ipv4]method=auto
[ipv6]addr-gen-mode=defaultmethod=auto
[proxy]
^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line- Press
Control + s Ctrls Control + s Ctrls and thenControl + x Ctrlx Control + x Ctrlx to save and close the file. - Now let’s open the file for the preconfigured Wi-Fi connection. (This is the workshop Wi-Fi.)
sudo nano preconfigured.nmconnection GNU nano 7.2 preconfigured.nmconnection [connection]id=preconfigureduuid=fh6c02n6-5th7-4911-9g5c-d356zh245type=wifitimestamp=27604593
[wifi]hidden=truemode=infrastructuressid=Wlan_Name
[wifi-security]key-mgmt=wpa-pskpsk=4c9ed4tg67fd672c6876d1ec9e1g885a61f4th322be
[ipv4]method=auto
[ipv6]addr-gen-mode=defaultmethod=auto
[proxy]
[ Read 23 lines ]
^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line- Insert the following code snippet into the first part of the file.
autoconnect=trueautoconnect-priority=10 GNU nano 7.2 preconfigured.nmconnection [connection]id=preconfigureduuid=fh6c02n6-j705-4911-9g5c-d36127245type=wifitimestamp=27604593
autoconnect=trueautoconnect-priority=10
[wifi]mode=infrastructuressid=Wlan_Name
[wifi-security]key-mgmt=wpa-pskpsk=4c9efd672c68947g4884e4f62744756d1ec9e1g885a61f322be
[ipv4]method=auto
[ipv6]addr-gen-mode=defaultmethod=auto
[proxy]
[ Wrote 27 lines ]
^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line- Press
Control + s Ctrls Control + s Ctrls and thenControl + x Ctrlx Control + x Ctrlx to save and close the file. - Optional: If you did configure your home Wi-Fi network, open the file for the ‘Home’ Wi-Fi connection. If you didn’t, skip to the last step.
(If you did coose another profile name for the Wi-Fi network, replace Home with your chosen name in the following command.)
sudo nano Home.nmconnection GNU nano 7.2 Home.nmconnection [connection]id=Homeuuid=fh6c02n6-5th7-4911-9g5c-d356zh245type=wifitimestamp=27604593
[wifi]mode=infrastructuressid=Wlan_Name
[wifi-security]key-mgmt=wpa-pskpsk=4c9ed4tg67fd672c6876d1ec9e1g885a61f4th322be
[ipv4]method=auto
[ipv6]addr-gen-mode=defaultmethod=auto
[proxy]
[ Read 23 lines ]
^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line- Insert the following code snippet into the first part of the file.
autoconnect=trueautoconnect-priority=9 GNU nano 7.2 Home.nmconnection [connection]id=Homeuuid=fh6c02n6-j705-4911-9g5c-d36127245type=wifitimestamp=27604593
autoconnect=trueautoconnect-priority=9
[wifi]hidden=truemode=infrastructuressid=Wlan_Name
[wifi-security]key-mgmt=wpa-pskpsk=4c9efd672c68947g4884e4f62744756d1ec9e1g885a61f322be
[ipv4]method=auto
[ipv6]addr-gen-mode=defaultmethod=auto
[proxy]
[ Wrote 27 lines ]
^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line- Press
Control + s Ctrls Control + s Ctrls and thenControl + x Ctrlx Control + x Ctrlx to save and close the file. - Now restart the Raspberry Pi.
sudo reboot