Emoncms and RPICT on the same Raspberry

From lechacal
Jump to navigation Jump to search

This guide will show how to setup for Emoncms and the RPICT board hosted on the same Raspberry pi.

This is a stand alone solution where data are acquired and recorded on the same device.

First you should download the latest emonSD image from this link below.

https://github.com/openenergymonitor/emonpi/wiki/emonSD-pre-built-SD-card-Download-&-Change-Log

Flash this image onto a SD card. Before inserting the SD card on the Raspberry create and empty file called ssh inside the boot partition.


Insert the SD card and connect the power supply. Once the Raspberrypi fully powered up point your web browser to http://emonpi.

On teh left panel select Emonhub. Then click on Edit Config.

You can now modify the emonhub configuration as shown below.

Find and replace the section below.


### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module
[[RFM2Pi]]
    Type = EmonHubJeeInterfacer
    [[[init_settings]]]
        com_port = /dev/ttyAMA0
        com_baud = 38400                        # 9600 for old RFM12Pi
    [[[runtimesettings]]]
        pubchannels = ToEmonCMS,
        subchannels = ToRFM12,

        group = 210
        frequency = 433
        baseid = 5                              # emonPi / emonBase nodeID
        calibration = 230V                      # (UK/EU: 230V, US: 110V)
        quiet = true                            # Disable quite mode (default enabled) to enable RF packet debugging, show packets which fail crc
        # interval =  300                         # Interval to transmit time to emonGLCD (seconds) 

Replace with this text below

  Type = EmonHubSerialInterfacer
   [[[init_settings]]]
       com_port = /dev/ttyAMA0
       com_baud = 38400
     [[[runtimesettings]]]
      pubchannels = ToEmonCMS, 


Replace the apikey with the one given by your Emoncms account. Use the Read and Write key.
Modify the [[11]] entry as needed. Refer to the board specific page to modify the last part of the config where it starts with node ID.