Installing EmonHub to Raspberry Pi
You should consider whether to install to SD card or to HDD as it is highly recommended that emonHub is installed to a hardrive unless the SD card is configured as Read-Only.
If you are installing a RFM2Pi board you can do this before installing emonHub so that it can found during the set-up
Installing emonHub to a Raspberry Pi using the Debian Package Installer is really quite straight forward. After adding the location of the software, just tell it to install, the installer asks you some questions and in many cases offers default values, then once it has the info confirmed it will prepare everything for you.
Add the repository
To be able to locate and download a package the repository’s address must be added to the sources list.
sudo sh -c "echo 'deb http://archive.emonhub.org wheezy unstable' >> /etc/apt/sources.list"
This only needs to be done once and then all the packages for the OpenEnergyMonitor project are accesible.
note: If running a different distro edit “wheezy” to suit.
Install emonhub
After updating the package list to ensure the latest version can be found, install the package(s) using the debian package installer.
sudo apt-get update
sudo apt-get --force-yes -y install emonhub
The “–force-yes -y” just confirms the package should be installed despite being from an un-official source.
note - add any packages to be installed at the same time to the command above
Set-up emonHub
During the installation the following settings will be prompted for and the default answers can be accepted or edited.
Setting | Default value | Enter | Explanation | |
---|---|---|---|---|
1 | Dispatcher API write key | Your 32-character API Key | ||
2 | Dispatcher name | emoncms-org | ||
3 | Dispatcher protocol | http:// | ||
4 | Dispatcher endpoint host | emoncms | ||
5 | Dispatcher endpoint path | / |
note - to change these settings after installation see configuring emonHub