Connect to another wireless network automatically

I use Fedora 33 workstation, I have three wireless connections in my office and select wireless network and connect to that network.
sometimes on of the wireless has internet connectivity problem, and I do not have internet on that wireless network, so I switch to another network manually.
Can I find some ways. if one of wireless network is unreachable, Fedora switch to another wireless network?
I need some applications do this for automatically.

1 Like
sudo tee /etc/NetworkManager/dispatcher.d/00-wifi-reconnect << "EOF"
#!/usr/bin/bash
if [ ${NM_DISPATCHER_ACTION} = up ] && ! nm-online -q
then
case ${CONNECTION_ID} in
(WIFI1) nmcli connection up id WIFI2
(WIFI2) nmcli connection up id WIFI3
(WIFI3) nmcli connection up id WIFI1
esac
fi
EOF
sudo chmod +x /etc/NetworkManager/dispatcher.d/00-wifi-reconnect

NetworkManager dispatcher scripts