Emoncms and RPICT on the same Raspberry: Difference between revisions

From lechacal
Jump to navigation Jump to search
(Created page with " 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...")
 
No edit summary
Line 11: Line 11:




Insert the SD card and connect the power supply. Once the Raspberrypi fully powered up point your web browser to http://emonpi. Then modify the emonhub configuration as shown below.
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.


Delete or backup the entire content of Emonhub configuration and replace with this one below.


[hub]
### loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL
### see here : http://docs.python.org/2/library/logging.html
loglevel = DEBUG #(default:WARNING)
   
   
  [interfacers]
  <nowiki>### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module
[[RFM2Pi]]
<nowiki>[[SerialDirect]]</nowiki>  
    Type = EmonHubJeeInterfacer
   Type = EmonHubSerialInterfacer
    [[[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)</nowiki>  
 
Replace with this text below
 
   <nowiki>Type = EmonHubSerialInterfacer
   [[[init_settings]]]
   [[[init_settings]]]
       com_port = /dev/ttyAMA0
       com_port = /dev/ttyAMA0
       com_baud = 38400
       com_baud = 38400
     [[[runtimesettings]]]
     [[[runtimesettings]]]
       pubchannels = ToEmonCMS,
       pubchannels = ToEmonCMS,</nowiki>
   
   
<nowiki>[[emoncmsorg]]</nowiki>
 
    Type = EmonHubEmoncmsHTTPInterfacer
    [[[init_settings]]]
    [[[runtimesettings]]]
        subchannels = ToEmonCMS,
        #url = http://localhost/emoncms #uncomment to save on local pi
        <span style="color: red">apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span>
        senddata = 1                    # Enable sending data to Emoncms.org
        sendstatus = 1                  # Enable sending WAN IP to Emoncms.org MyIP > https://emoncms.org/myip/list
        sendinterval= 30                # Bulk send interval to Emoncms.org in seconds
       
[nodes]
<nowiki>[[11]]</nowiki>
  nodename = my_RPICT7V1
  [[[rx]]]
      names = RP1, RP2, RP3, RP4, RP5, RP6, RP7, Irms1, Irms2, Irms3, Irms4,Irms5,Irms6,Irms7,Vrms
      scales = 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
      units =W,W,W,W,W,W,W,mA,mA,mA,mA,mA,mA,mA,V
      datacode = 0


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

Revision as of 09:05, 3 May 2022

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.