####################################################################### ####################### emonhub.conf ######################### ####################################################################### ### emonHub configuration file, for info see documentation: ### https://github.com/openenergymonitor/emonhub/blob/emon-pi/configuration.md ####################################################################### ####################### emonHub settings ####################### ####################################################################### [hub] ### loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL loglevel = DEBUG autoconf = 1 ### Uncomment this to also send to syslog # use_syslog = yes ####################################################################### ####################### Interfacers ####################### ####################################################################### [interfacers] ### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module [[EmonPi2]] Type = EmonHubOEMInterfacer [[[init_settings]]] com_port = /dev/ttyAMA0 com_baud = 115200 [[[runtimesettings]]] pubchannels = ToEmonCMS, subchannels = ToRFM12, [[USB0]] Type = EmonHubOEMInterfacer [[[init_settings]]] com_port = /dev/ttyUSB0 com_baud = 115200 [[[runtimesettings]]] pubchannels = ToEmonCMS, subchannels = ToRFM12, nodename = emonTx4 [[SPI]] Type = EmonHubRFM69LPLInterfacer [[[init_settings]]] nodeid = 5 networkID = 210 resetPin = 24 selPin = 16 [[[runtimesettings]]] pubchannels = ToEmonCMS, ### This interfacer manages connections to ModbusTCP clients [[ModbusTCP]] # this interfacer retrieves register information from modbusTCP clients # retrieve register information from modbus TCP documentation for your device. # Information here is designed for a CTC Heat Pump. Type = EmonModbusTcpInterfacer [[[init_settings]]] modbus_IP = 192.168.0.194 # ip address of client to retrieve data from modbus_port = 502 # Portclient listens on [[[runtimesettings]]] # List of starting registers for items listed above (use reg addr + 1) register = 62001,62007,62008,62009,62012,62013,62016,62168,62277,62028,62038,62048,62058,62068,62078,62088,62098,62108,62118,62029,62039,62049,62059,62069,62079,62089,62099,62109,62119 # nodeid used to match with node definition in nodes section below. Can be set to any integer value not previously used. nodeId = 425 # Channel to publish data to should leave as ToEmonCMS pubchannels = ToEmonCMS, # time in seconds between checks, This is in addition to emonhub_interfacer.run() sleep time of .01 # use this value to set the frequency of data retrieval from modbus client interval = 10 [[MQTT]] Type = EmonHubMqttInterfacer [[[init_settings]]] mqtt_host = 127.0.0.1 mqtt_port = 1883 mqtt_user = emonpi mqtt_passwd = emonpimqtt2016 [[[runtimesettings]]] pubchannels = ToRFM12, subchannels = ToEmonCMS, # emonhub/rx/10/values format # Use with emoncms Nodes module node_format_enable = 0 node_format_basetopic = emonhub/ # emon/emontx/power1 format - use with Emoncms MQTT input # http://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md nodevar_format_enable = 1 nodevar_format_basetopic = emon/ # Single JSON payload published - use with Emoncms MQTT node_JSON_enable = 0 node_JSON_basetopic = emon/ [[emoncmsorg]] Type = EmonHubEmoncmsHTTPInterfacer [[[init_settings]]] [[[runtimesettings]]] pubchannels = ToRFM12, subchannels = ToEmonCMS, url = https://emoncms.org apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx senddata = 1 # Enable sending data to Emoncms.org sendnames = 1 # Send full input names (compression will be automatically enabled) interval = 30 # Bulk send interval to Emoncms.org in seconds [[DS18B20]] Type = EmonHubDS18B20Interfacer [[[init_settings]]] [[[runtimesettings]]] pubchannels = ToEmonCMS, read_interval = 10 nodename = sensors # ids = 28-000008e2db06, 28-000009770529, 28-0000096a49b4 # names = ambient, cyl_bot, cyl_top ####################################################################### ####################### Nodes ####################### ####################################################################### ## See config user guide: https://github.com/openenergymonitor/emonhub ## If autoconf is enabled above, node configuration will automatically ## populate based on templates listed in available.conf [nodes] [[23]] nodename = emonth2_23 [[[rx]]] names = temperature, external temperature, humidity, battery, pulsecount datacodes = h, h, h, h, L scales = 0.1, 0.1, 0.1, 0.1, 1.0 units = C, C, %, V, p [[425]] nodename = ctc [[[rx]]] # 62000 OutdoorTemp degC # 62006 RadiatorWater degC # 62007 HC1_PriFlowTempSetpoint degC # 62008 HC2_PriFlowTempSetpoint degC # 62011 HC1_PriFlowTemp degC # 62012 HC2_PriFlowTemp degC # 62015 ReturnTemp degC # 62167 DegreeMinutes degC # 62276 DHWTemp degC # 62027 HP1TempIn degC # 62037 HP1TempOut degC # 62047 HP1DischargeTemp degC # 62057 HP1SuctionGasTemp degC # 62067 HP1HighPressure none # 62077 HP1LowPressure none # 62087 HP1BrineIn degC # 62097 HP1BrineOut degC # 62107 HP1ChargePump % # 62117 HP1BrinePump % # 62028 HP2TempIn degC # 62038 HP2TempOut degC # 62048 HP2DischargeTemp degC # 62058 HP2SuctionGasTemp degC # 62068 HP2HighPressure none # 62078 HP2LowPressure none # 62088 HP2BrineIn degC # 62098 HP2BrineOut degC # 62108 HP2ChargePump % # 62118 HP2BrinePump % names = OutdoorTemp,RadiatorWater,HC1_PriFlowTempSetpoint,HC2_PriFlowTempSetpoint,HC1_PriFlowTemp,HC2_PriFlowTemp,ReturnTemp,DegreeMinutes,DHWTemp,HP1TempIn,HP1TempOut,HP1DischargeTemp,HP1SuctionGasTemp,HP1HighPressure,HP1LowPressure,HP1BrineIn,HP1BrineOut,HP1ChargePump,HP1BrinePump,HP2TempIn,HP2TempOut,HP2DischargeTemp,HP2SuctionGasTemp,HP2HighPressure,HP2LowPressure,HP2BrineIn,HP2BrineOut,HP2ChargePump,HP2BrinePump datacodes = h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h scales = 0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1 units = degC,degC,degC,degC,degC,degC,degC,degC,degC,degC,degC,degC,degC,none,none,degC,degC,%,%,degC,degC,degC,degC,none,none,degC,degC,%,%