Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.11 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.11 KB

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