Advertisement
Guest User

emonhub.conf

a guest
Oct 29th, 2024
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.26 KB | Help | 0 0
  1. #######################################################################
  2. #######################      emonhub.conf     #########################
  3. #######################################################################
  4. ### emonHub configuration file, for info see documentation:
  5. ### https://github.com/openenergymonitor/emonhub/blob/emon-pi/conf/emonhub.conf
  6. #######################################################################
  7. #######################    emonHub  settings    #######################
  8. #######################################################################
  9.  
  10. [hub]
  11. ### loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL
  12. loglevel = DEBUG
  13. ### Uncomment this to also send to syslog
  14. use_syslog = yes
  15. #######################################################################
  16. #######################       Interfacers       #######################
  17. #######################################################################
  18.  
  19. [interfacers]
  20.  
  21. ### This interfacer manages the Arduino with external inputs
  22. [[SerialDirect]]
  23.      Type = EmonHubSerialInterfacer
  24.       [[[init_settings]]]
  25.            com_port = /dev/ttyACM0      # or /dev/ttyAMA0 or/dev/ttyACM0 etc
  26.            com_baud = 9600              # to match the baud of the connected device        
  27.       [[[runtimesettings]]]
  28.            pubchannels = ToEmonCMS,
  29.            nodeoffset = 6
  30.  
  31. ### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module
  32. [[RFM2Pi]]
  33.     Type = EmonHubJeeInterfacer
  34.     [[[init_settings]]]
  35.         com_port = /dev/ttyAMA0
  36.         com_baud = 38400                        # 9600 for old RFM12Pi
  37.     [[[runtimesettings]]]
  38.         pubchannels = ToEmonCMS,
  39.         subchannels = ToRFM12,
  40.  
  41.         group = 210
  42.         frequency = 433
  43.         baseid = 5                              # emonPi / emonBase nodeID
  44.         calibration = 230V                      # (UK/EU: 230V, US: 110V)
  45.         quiet = true                            # Disable quite mode (default enabled) to enable RF packet debugging, show packets which fail crc
  46.         # interval =  300                         # Interval to transmit time to emonGLCD (seconds)
  47.        
  48.  
  49. [[MQTT]]
  50.  
  51.     Type = EmonHubMqttInterfacer
  52.     [[[init_settings]]]
  53.         mqtt_host = 127.0.0.1
  54.         mqtt_port = 1883
  55.         mqtt_user = emonpi
  56.         mqtt_passwd = emonpimqtt2016
  57.  
  58.     [[[runtimesettings]]]
  59.         pubchannels = ToRFM12,
  60.         subchannels = ToEmonCMS,
  61.  
  62.         # emonhub/rx/10/values format
  63.         # Use with emoncms Nodes module
  64.         node_format_enable = 1
  65.         node_format_basetopic = emonhub/
  66.  
  67.         # emon/emontx/power1 format - use with Emoncms MQTT input
  68.         # http://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
  69.         nodevar_format_enable = 1
  70.         nodevar_format_basetopic = emon/
  71.  
  72. [[emoncmsorg]]
  73.     Type = EmonHubEmoncmsHTTPInterfacer
  74.     [[[init_settings]]]
  75.     [[[runtimesettings]]]
  76.         pubchannels = ToRFM12,
  77.         subchannels = ToEmonCMS,
  78.         url = https://emoncms.org
  79.         apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  80.         senddata = 1                    # Enable sending data to Emoncms.org
  81.         sendstatus = 1                  # Enable sending WAN IP to Emoncms.org MyIP > https://emoncms.org/myip/list
  82.         sendinterval= 30                # Bulk send interval to Emoncms.org in seconds
  83.  
  84. #######################################################################
  85. #######################          Nodes          #######################
  86. #######################################################################
  87.  
  88. [nodes]
  89.  
  90. ## See config user guide: https://github.com/openenergymonitor/emonhub/blob/emon-pi/conf/emonhub.conf
  91.  
  92. [[5]]
  93.     nodename = emonpi
  94.     [[[rx]]]
  95.         names = power1,power2,power1pluspower2,vrms,t1,t2,t3,t4,t5,t6,pulsecount
  96.         datacodes = h, h, h, h, h, h, h, h, h, h, L
  97.         scales = 1,1,1,0.01,0.1,0.1,0.1,0.1,0.1,0.1,1
  98.         units = W,W,W,V,C,C,C,C,C,C,p
  99.  
  100. [[6]]
  101.     nodename = emontxshield
  102.     [[[rx]]]
  103.        names = current1, current2, current3, current4, current5, vrms, power1
  104.        datacode = 0      # not essential as "0" is default datacode for serial interfacer
  105.        scales = 1,1,1,1,1,1,1         # not essential as "1" is default scale for serial interfacer
  106.        units = A,A,A,A,A,V,W
  107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement