Use Emonhub with RPICT: Difference between revisions

From lechacal
Jump to navigation Jump to search
No edit summary
No edit summary
Line 27: Line 27:
  persistence false
  persistence false


cd
  mkdir data
  mkdir data
  git clone https://github.com/openenergymonitor/emonhub.git && emonhub/installdata
  git clone https://github.com/openenergymonitor/emonhub.git && emonhub/installdata
  sudo service emonhub start
  sudo service emonhub start

Revision as of 16:28, 16 October 2017


Overview

This document will demonstrate how prepare the rasberrypi to use Emonhub with the RPICT.

Emonhub will be used to forward the data from the RPICT series board and forward them to Emoncms.

Install Emoncms

For this we would recommend following the steps indicated on the emonhub github page.

We have put a list of the command to executre below:

wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list
sudo apt-get update
sudo apt-get install -y mosquitto python-serial python-configobj
sudo easy_install -U pip
sudo pip install paho-mqtt
sudo pip install pydispatcher

Open my modify this file below:

sudo nano /etc/mosquitto/mosquitto.conf

Set persistence parameter as false

persistence false
cd
mkdir data
git clone https://github.com/openenergymonitor/emonhub.git && emonhub/installdata
sudo service emonhub start