motioneyeos icon indicating copy to clipboard operation
motioneyeos copied to clipboard

motioneye change wifi to another wifi

Open johannscholtz opened this issue 5 years ago • 6 comments

hi

i have a motioneye system working on wifi at my house, i want to change the wifi settings to use in another house.

how do i do it? how do i change the wifi settings.

i dont see wpa_supplicant.conf on my sd card, i see somewhere that you can only create wpa_supplicant.conf on the first boot, that you cannot add wpa_supplicant.conf later to sd card

any help please.

johannscholtz avatar Sep 05 '19 11:09 johannscholtz

Think you can change it in the Web-Interface as admin in the Network Settings.

klaus-ditze avatar Sep 05 '19 21:09 klaus-ditze

You can change /boot by remounting it read write:

mount -o remount,rw /boot

Then you can add a wpa_supplicant.conf file with network statements for each WiFi network you have. When you restart, it will use the wireless network it is configured to, so when you move it to a different area, it will find that one instead.

For example:

country=gb update_config=1 ctrl_interface=/var/run/wpa_supplicant

network={ scan_ssid=1 ssid="MyNetworkSSID" psk="MyRouterKey" } network={ scan_ssid=1 ssid="MyOtherNetworkSSID" psk="MyRouterKey" }

johnfc2018 avatar Sep 13 '19 10:09 johnfc2018

Great stuff, thx guys, it makes sense

johannscholtz avatar Sep 13 '19 11:09 johannscholtz

do you mean after the setting, after doing somethings, we can move the PRi zero motioneyeos system among different ssid and without adding a wpa_supplicant.conf file each time?

would you mind to say it more details, especially in the first step? i mean the mounting and remounting ? add a command of mount in which file ?

joeydream avatar Jul 19 '20 13:07 joeydream

I don't know about yours, but mine, if it can't sign in to the network, it panics and reboots.

I set up my phone in access point mode with the same SSID and key as the old place, which I still was able to get, which allowed motioneyeos to boot and obtain an IP address. From there, I connected to the web interface, logged in as the admin account, and changed the wireless network from the Network settings tab.

This should also work if you can connect to a wired network.

SupraGuy avatar Aug 26 '20 19:08 SupraGuy

I know this thread is old but I found that you need to change /data/etc/wpa_supplicant.conf

juggledad avatar Sep 18 '21 20:09 juggledad