Community
OpenEnergyMonitor

Community

emonSD wifiAP has no password

wifi
security
Tags: #<Tag:0x00007f1feb5654c0> #<Tag:0x00007f1feb564930>

(Elias) #1

Hi @glyn.hudson

with the new emonSD image the wifi-AP is no longer secured with a password, as it is still written in the manual (https://guide.openenergymonitor.org/setup/connect/). Is this intended? The file /etc/hostapd/hostapd.conf only contains the configuration without authentication.

For all others, who would like to set a password, here is very well documented how this works: https://github.com/openenergymonitor/emonpi/blob/master/wifiAP/readme.md


(Glyn Hudson) #2

Good spot, no this was not intentional.

However, since the WiFi AP is generally only used for initial setup it’s not a major issue. Agree it would be best to play it safe and have network secured. We will make the change for all new emonSD / emonPi units.

For clarification, the current contents of /etc/hostapd/hostapd.conf on the latest emonSD emonSD-30Oct18 is

interface=wlan0
ssid=emonPi
driver=nl80211
hw_mode=g
channel=6
wmm_enabled=0

If a user wants to use the emonPi in AP mode the password should really be changed anyway. To add WPA authentication the following additional lines should be added to /etc/hostapd/hostapd.conf replacing <YOUR-PASSWORD-HERE> with the password of your choice.

macaddr_acl=0
wmm_enabled=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_passphrase=<YOUR-PASSWORD-HERE>
rsn_pairwise=CCMP