Skip to content
/ wifi Public

Wifi configuration module for emoncms, scan for available wifi, select network, check connection

License

Notifications You must be signed in to change notification settings

emoncms/wifi

Repository files navigation

Emoncms Wifi Module

Wifi configuration module for emoncms. Installed on emonPi pre-built SD card image

Install

  cd /var/www/emoncms/Modules
  git clone https://github.com/emoncms/wifi

Give web user permission to execute system wlan commans:

Append the following to the end of /etc/sudoers:

sudo nano /etc/sudoers

  www-data ALL=(ALL) NOPASSWD:/sbin/ifdown wlan0,/sbin/ifup wlan0,/bin/cat /etc/wpa_supplicant/wpa_supplicant.conf,/bin/cp /tmp/wifidata /etc/wpa_supplicant/wpa_supplicant.conf,/sbin/wpa_cli scan_results,/sbin/wpa_cli scan,/bin/cp /tmp/hostapddata /etc/hostapd/hostapd.conf,/etc/init.d/hostapd start,/etc/init.d/hostapd stop,/etc/init.d/dnsmasq start,/etc/init.d/dnsmasq stop,/bin/cp /tmp/dhcpddata /etc/dnsmasq.conf,/home/pi/emonpi/wifiAP/networklog.sh,/home/pi/emonpi/wifiAP/stopAP.sh

Install emoncms service runner, see installation guide here.

Licence

GNU AFFERO GENERAL PUBLIC LICENSE, see emoncms repo:
https://github.com/emoncms/emoncms/blob/master/LICENSE.txt

About

Wifi configuration module for emoncms, scan for available wifi, select network, check connection

Resources

License

Stars

Watchers

Forks

Packages

No packages published