Page 2 of 2

Re: Auto-connect to wireless nets?

Posted: Wed Apr 30, 2014 2:42 pm
by chrisfcarroll
I realised, after looking at etc/wpa_supplicant/wpa_supplicant.conf, that whenever I manually connect to a new wifi network using the wpa_gui, it was marking the previous network as disabled=1 in the in the wpa_supplicant.conf. Getting rid of the disabled=1 lines left me with a conf file looking just like r1cth3rs.

Re: Auto-connect to wireless nets?

Posted: Wed May 28, 2014 6:37 pm
by DiveDude1982
You mention after wifi is established, you would then say to the pi.

Why not simply set the pi as an access point and then you connect to it rather than hoping you have an ap that is open?

Re: Auto-connect to wireless nets?

Posted: Tue Jul 28, 2015 1:40 am
by Nfarrow
How woulc you connect if the wireless is Open network?

Re: Auto-connect to wireless nets?

Posted: Thu Aug 27, 2015 1:36 am
by MelvinProject
Have look at https://github.com/maxogden/joinopenwifi#joinopenwifi

Re: Auto-connect to wireless nets?

Posted: Sat Sep 26, 2015 10:53 pm
by ondrej
I tried several scrips above, they detect wifi disconnect just fine, my problem is that I cannot restart wifi interface. All ends up with RTNETLINK answers: No such process after I powercycle my AP

My log I generated is below:

Code: Select all

cat wifi.log 
RTNETLINK answers: No such process
RTNETLINK answers: No such process
RTNETLINK answers: No such process
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...RTNETLINK answers: No such process
failed.
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...done.
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...RTNETLINK answers: No such process
done.
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...RTNETLINK answers: No such process
done.
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...RTNETLINK answers: No such process
done.
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...done.
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...RTNETLINK answers: No such process

only what works is to add reboot to script.

any ideas?

Re: Auto-connect to wireless nets?

Posted: Tue May 24, 2016 12:37 pm
by Cagazouille
Hi,

I created a script in python wo reconnect automatically to your Wifi if it shut down...

I assume you set your Wifi informations before ( /etc/network/interfaces ). If not, I encourage you to read this : http://weworkweplay.com/play/automatica ... i-network/

My script :arrow: https://github.com/matthieuvisian/WifiLoop