# New: emonPi / emonBase Network Setup Wizard

**URL:** <https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371>\
**Category:** emonPi\
**Tags:** setup, announcement\
**Created:** [21 June 2017 17:11 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371 "2017-06-21T17:11:48Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [21 June 2017 17:11 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/1 "2017-06-21T17:11:48Z")

</div>

Ever since we launched the emonPi we have always wanted to make the first time setup process as easy as possible for new users.

![](https://community.openenergymonitor.org/uploads/default/original/2X/c/c0a8a4f1e3f8725242e5de25bed020bf48a08ead.png)

We have just made significant progress in streamlining the setup process by enabling the emonPi / emonBase to broadcast a WiFi access-point (AP) on first boot then scan for local WiFi networks and allow the user to connect. The emonPi will then turn off it’s AP and connect to the local network. There is also an option to connect via Ethernet or stand-alone WiFi AP mode when no local network is available.

 ![](https://community.openenergymonitor.org/uploads/default/original/2X/2/23603645952a28d944af974e52a5087ea4158843.png)

This has now been made possible using the Raspberry Pi 3 which supports WiFi access-point AP mode, [some bash scrips](https://github.com/openenergymonitor/emonpi/tree/master/wifiAP) and a new [emoncms-setup module](https://github.com/openenergymonitor/emonpi/tree/master/emoncms-setup).

_The new Network Setup Wizard will be included on all new purchased in July 2017 onwards. Existing emonPi’s with a Raspberry Pi 3 can be updated by running Admin \> emonPi update in Emoncms. The emonPi will only broadcast a WiFi AP if Ethernet is not connected and no WiFi setup is currently present._

@TrystanLea is also working on making the input-processing setup for new devices easier by adding device template support to the Emoncms Device module. More on this the come, see dev forum thread:

> [@Development: Devices, Inputs and Feeds in emoncms](https://community.openenergymonitor.org/t/development-devices-inputs-and-feeds-in-emoncms/4281):
>
> Over the last couple of months I’ve started to use @nchaveiro’s device module introduced originally in emoncms v9 and now available as an optional module. I’ve made a couple of modifications to make it possible to create and initialise a device from a device template by sending a ‘describe’ property alongside other node input data, and in the last week I’ve made a start on integrating device configuration into the emoncms input user interface itself. I’ve been wondering for sometime if the grou…

Here are a few more screenshots of the new network setup wizard:

 ![](https://community.openenergymonitor.org/uploads/default/original/2X/2/203bd9aa91e6e27e71fe6149a8ec03e280c1f315.png)

 ![](https://community.openenergymonitor.org/uploads/default/original/2X/1/1b2759c6aa026cba6812c95be1b6316ca4b1a364.png)

 ![](https://community.openenergymonitor.org/uploads/default/original/2X/3/3983dfb3a45f19511c328d3c714a840fcee8d35e.png)

The [Setup Guide](https://guide.openenergymonitor.org/setup/connect/#1a-connect-to-wifi) has been updated for use with the new Netork Setup Wizard.

---

<div class="post-metadata">

**Author:** ![Boye](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/boye/32/3490_2.png) [@Boye](https://community.openenergymonitor.org/u/Boye)\
**Post date:** [22 June 2017 21:01 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/2 "2017-06-22T21:01:46Z")

</div>

looks nice… I just have a small request: Please make it possible to manually input the SSID (for hidden SSID) yes I know nag nag nag… just saying it would be nice… I need it badly because we have made the first step of monitoring all our equipment at my workplace…

You can see the progress here: [http://79.174.152.130/wordpress/](http://79.174.152.130/wordpress/)

So far we have bought 11 EmonPis, 2 EmonTx3s and 4 Heatpump monitors…

It is my plan to use 8 of the EmonPi’s as training units in our classroom for teaching students to monitor and datalogging…

regards  
Henrik

---

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [23 June 2017 13:29 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/3 "2017-06-23T13:29:30Z")

</div>

Wow, nice website. Very impressive.

Currently you will need to enter the wifi manually into wpa\_supplement.conf.

I’ll take a look at integrating the ability to manually enter an SSID into the wizard. Also need to add the ability to enter a static IP network configuration.

---

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [30 June 2017 14:34 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/4 "2017-06-30T14:34:47Z")

</div>



---

<div class="post-metadata">

**Author:** ![mattoakes](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/m/bbe5ce/32.png) [@mattoakes](https://community.openenergymonitor.org/u/mattoakes)\
**Post date:** [18 October 2017 23:32 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/5 "2017-10-18T23:32:26Z")

</div>

hi i have currently setup the emon pi using my parents internet but as im not there all the time I brought the emon pi back to mine so that I could get familiar with it. is there any way that i can get it to broadcast the wifi ap? or is there any way i can connect my laptop to it to update the wifi settings?

---

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [18 October 2017 23:34 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/6 "2017-10-18T23:34:24Z")

</div>

> [@mattoakes](#):
>
> hi i have currently setup the emon pi using my parents internet but as im not there all the time I brought the emon pi back to mine so that I could get familiar with it. is there any way that i can get it to broadcast the wifi ap? or is there any way i can connect my laptop to it to update the wifi settings?

easiest way would be to connect it to the router via Ethernet then logon to local Emoncms and setup wifi using Setup \> WiFi in local Emoncms.

---

<div class="post-metadata">

**Author:** ![csaladenes](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/csaladenes/32/6171_2.png) [@csaladenes](https://community.openenergymonitor.org/u/csaladenes)\
**Post date:** [1 May 2018 11:51 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/7 "2018-05-01T11:51:11Z")

</div>

+1 for hidden SSID

---

<div class="post-metadata">

**Author:** ![gadgetbazza](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/gadgetbazza/32/8167_2.png) [@gadgetbazza](https://community.openenergymonitor.org/u/gadgetbazza)\
**Post date:** [5 November 2018 13:06 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/8 "2018-11-05T13:06:11Z")

</div>

+2 for hidden SSID

---

<div class="post-metadata">

**Author:** ![georgel](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@georgel](https://community.openenergymonitor.org/u/georgel)\
**Post date:** [21 November 2018 09:34 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/9 "2018-11-21T09:34:39Z")

</div>

+1 on configuring a static IP, while we waiting for the GUI to do this, can it still be done in the config files of the Raspbian, manually ? Happy to ssh onto the unit and configure it that way.

G

---

<div class="post-metadata">

**Author:** ![georgel](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@georgel](https://community.openenergymonitor.org/u/georgel)\
**Post date:** [22 November 2018 06:14 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/10 "2018-11-22T06:14:32Z")

</div>

if not via config files, I can do a MAC address to IP Bind for now, giving me a static.  
After initial deployment, can the IP be change though? Would this just be a OS level change or does it have to be done via emonPI Interface (aka the IP is stored in other places also which have to be updated).

G

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [22 November 2018 09:15 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/11 "2018-11-22T09:15:56Z")

</div>

I’m not sure of the procedure to do this, however the emonPi wifi module is just the last level on top of the standard raspberrypi networking stack. The WiFi module writes to /etc/wpa\_supplicant/wpa\_supplicant.conf [https://github.com/emoncms/wifi/blob/master/wifi.php#L166](https://github.com/emoncms/wifi/blob/master/wifi.php#L166).  
We do lower level configuration for creating the WiFi access point, which is all documented here: [emonpi/wifiAP at master · openenergymonitor/emonpi · GitHub](https://github.com/openenergymonitor/emonpi/tree/master/wifiAP)

Searching for configuring a static IP, I came across this stackexchange thread which may help:  
[https://raspberrypi.stackexchange.com/questions/37920/how-do-i-set-up-networking-wifi-static-ip-address](https://raspberrypi.stackexchange.com/questions/37920/how-do-i-set-up-networking-wifi-static-ip-address)

If you get it to work, please feel free to share here, as Im sure it would be useful for others.

---

<div class="post-metadata">

**Author:** ![georgel](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@georgel](https://community.openenergymonitor.org/u/georgel)\
**Post date:** [22 November 2018 10:25 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/12 "2018-11-22T10:25:59Z")

</div>

Hi Trystan

I’ve hard coded IP’s before on the RPi. so if Emon just sits on top of whatever is configured at a lower OS level then awesome, easy enough.

G

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [22 November 2018 13:09 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/13 "2018-11-22T13:09:10Z")

</div>

This intrigued me so I had a look as well.

I found this [Exposing Raspberry Pi’s network setting files to /boot so that they are visible on a PC – Martin's corner on the web](https://harizanov.com/2014/09/exposing-raspberry-pis-network-setting-files-to-boot-so-that-they-are-visible-on-a-pc/)

If it was done on the image file it may well work for all (untested).

---

<div class="post-metadata">

**Author:** ![pb66](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/pb66/32/27_2.png) [@pb66](https://community.openenergymonitor.org/u/pb66)\
**Post date:** [22 November 2018 13:26 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/14 "2018-11-22T13:26:10Z")

</div>

In essence you are right…

However, Martin’s guide was written a long time ago and the standard Raspbian image has moved on to allow the wifi settings to be introduced to an image by adding a `wpa_supplicant.conf` file to the `/boot` partition before placing it into a Pi and that gets **moved** to the right location at boot up.

So to avoid the symlinkling being undone at first boot (the `/boot` copy moved into place deleting the symlink) you must use a different file name eg “wifi.conf”. See [Wifi config on Pi Zero using emonSD](https://community.openenergymonitor.org/t/wifi-config-on-pi-zero-using-emonsd/7020) and [Using wpa\_supplicant.conf file on the emonSD boot partition - #27 by bernamorillo](https://community.openenergymonitor.org/t/using-wpa-supplicant-conf-file-on-the-emonsd-boot-partition/5691/27) discussions as this has been suggested, tried and tested before, but AFAIA not adopted on the emonSD image. It not only allows pre-configuration on a Pi, but in doing so it accommodates the Pi zero too, without impairing the existing emonSD setup (re RO OS and wifi module, untested on latest image)

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [22 November 2018 13:51 UTC](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371/15 "2018-11-22T13:51:30Z")

</div>

Of course, if you use DietPi then setting all these things pre first boot is as simple as. 🤣
