This guide assumes you are using an emonPi / emonBase pre-built SD card.
This SD card can be purchased from the shop or downloaded:
The emonPi runs the Emoncms data logging web-app locally from emonPi’s internal web server. Using Emoncms data can be logged locally to the emonPi’s SD card and (optionally) posted remotely to the Emoncms.org cloud server.
Emoncms local: Emoncms instance running locally on the emonPi.
Emoncms remote: Emoncms.org cloud server.
emonPi can be connected to the internet via Ethernet or WiFi, or operate in stand-alone WiFi access point mode.
emonPi / emonBase purchased before July 2017 do not have the ability to broadcast a setup WiFi access point. For older units please follow '1b' instructions to connect temporary via Ethernet then connect to local WiFi if required.
- Connect 5V USB power (2A USB power adapter recommended (2.5A ideal))
- After a couple of minutes the emonPi will broadcast a Wifi access point (AP) called
Note: Please be patient, it can take a number of minutes to start broadcasting an a WiFi AP at startup. The LCD will display
WiFi: YES 0% 192.168.42.1 once the WiFi AP is active.
- Connect to
emonPiWiFi network then either browse to hostname: http://emonpi or http://emonpi.local or IP address http://192.168.42.1
- emonPi network setup wizard should now be displayed:
- Follow setup wizard to connect to local WiFi network:
Note: If required emonPi can operate in Wifi AP mode without any network connection. If operating in AP mode use of a RTC (real-time-clock) is highly recommended to keep system time.
Please be patient, scanning for networks can take a while
- After selecting local WiFi network and entering password the emonPi will turn off its own WiFi AP then reboot and try and connect to local WiFi network.
Take care to connect the Ethernet to the socket on the same side as the USB sockets, not the RJ45 connector on the opposite side.
- The emonPi LCD display will display firmware version then scan for connected sensors. Once the Raspberry Pi has booted up, the LCD will display the IP address of the emonPi on the local network.
- Browsing the hostname will work on some networks: http://emonpi or http://emonpi.local
- If hostname does not work on your network, enter the IP address shown on the emonPi LCD into your browsers address bar
- If using an emonBase and hostname does not work, look up its IP address from your router or use the Fing Network Discovery tool on Android and iOS.
- By default only a single (admin) account can be created on the local emonPi Emoncms. To enable multiple accounts edit Emoncms settings in
**Note: if emonPi has been already connect to local Wifi using network setup wizard (see above) then skip this section.
- Wifi config in local Emoncms :
Setup > Wi-Fi
- Network scan should happen automatically.
Check the box to select the network(s) you want to connect to
Enter PSK password
Save and Connect
After a few seconds information should refresh automatically to report
Status: Connected and after a few more seconds the IP address should appear.
If local static IP address is required the easiest way is to allow IP address to be given via DHCP then fix the IP address on the router. Not all routers support this.
Alternatively to set a static IP address on the emonPi itself connect via SSH and edit /etc/network/interfaces. E.g the following commands will SSH into emonPi, create backup of the interfaces file then setup a static IP on Ethernet. For WiFi change eth0 to wlan0.
$ ssh [email protected] User: "pi" | Password: "emonpi2016" $ rpi-rw $ sudo cp /etc/dhcpcd.conf /etc/backup_dhcpcd.conf $ sudo nano /etc/dhcpcd.confFor more info see Tutorial - How to give your Raspberry Pi a Static IP Address
> Append to the end of dhcpcd.conf (change to suit your network and interface reqiuired static IP):
interface eth0 static ip_address=192.168.0.10/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1 interface wlan0 static ip_address=192.168.0.200/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1
[CTRL + X] then Y to save and exit nano $ sudo reboot
If required the changes above to dhcpcd.conf can be made by inserting the SD card into a Linux computer and editing the file directly if working offline.
Huawei HiLink 3G USB GSM/3G dongle modems are supported. Connection should be automatic and LCD will display connection status. (Tested with Huawei E3231 and E3131).
UPDATE HIGHLY RECOMMENDED: Now your emonPi is connected to a network this would be a good time to pull in any new updates:
Setup > Admin > Update
Shut down the emonPi by holding down the shutdown button for 5 seconds, then wait 30 seconds for unit to fully shut down.
Unplugging power from the emonPi without following the correct shutdown procedure can result in a corrupted SD card.
The emonPi is now ready to be physically installed and the sensors connected.