I’m starting with emoncms after a couple years absence. I have firmware that was previously uploaded to emonTX.
I get the following output from the serial port. And I do not see a node number. The dipswitch is set to node =9.
And my emonhub.conf is posted below.
But, no inputs are posted to my local emonpi or to my emoncms.org account (using the API key)
What am I missing!!!
EMONHUB LOG OUTPUT
2022-08-17 18:25:22,785 INFO MainThread EmonHub emonHub (emon-pi variant) v2.2.6
2022-08-17 18:25:22,786 INFO MainThread Opening hub...
2022-08-17 18:25:22,786 INFO MainThread Logging level set to DEBUG
2022-08-17 18:25:22,786 INFO MainThread Creating EmonHubTx3eInterfacer 'SerialTx3e'
2022-08-17 18:25:22,801 DEBUG MainThread Opening serial port: /dev/ttyACM0 @ 115200 bits/s
2022-08-17 18:25:22,802 INFO MainThread Creating EmonHubMqttInterfacer 'MQTT'
2022-08-17 18:25:22,804 DEBUG MainThread Setting MQTT pubchannels: ['ToRFM12']
2022-08-17 18:25:22,805 DEBUG MainThread Setting MQTT subchannels: ['ToEmonCMS']
2022-08-17 18:25:22,805 INFO MainThread Setting MQTT node_format_enable: 1
2022-08-17 18:25:22,806 INFO MainThread Setting MQTT nodevar_format_enable: 1
2022-08-17 18:25:22,806 INFO MainThread Setting MQTT nodevar_format_basetopic: emon/
2022-08-17 18:25:22,806 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2022-08-17 18:25:22,807 DEBUG MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2022-08-17 18:25:22,807 DEBUG MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2022-08-17 18:25:22,814 INFO MainThread Setting emoncmsorg apikey: set
2022-08-17 18:25:22,814 INFO MainThread Setting emoncmsorg url: https://emoncms.org
2022-08-17 18:25:22,814 INFO MainThread Setting emoncmsorg senddata: 1
2022-08-17 18:25:22,815 INFO MainThread Setting emoncmsorg sendstatus: 1
2022-08-17 18:25:23,606 INFO SerialTx3e START MESSAGE: ct1:-22,ct2:6,ct3:-17,ct4:2,vrms:12199,pulse:0
2022-08-17 18:25:33,543 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:12,ct3:-13,ct4:2,vrms:12192,pulse:0
2022-08-17 18:25:56,831 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:12,ct3:-12,ct4:1,vrms:12202,pulse:0
2022-08-17 18:26:06,773 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:11,ct3:-13,ct4:1,vrms:12197,pulse:0
2022-08-17 18:26:16,720 INFO SerialTx3e START MESSAGE: ct1:-22,ct2:11,ct3:-14,ct4:1,vrms:12174,pulse:0
2022-08-17 18:26:26,560 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:11,ct3:-12,ct4:2,vrms:12189,pulse:0
2022-08-17 18:26:36,499 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:11,ct3:-13,ct4:1,vrms:12191,pulse:0
2022-08-17 18:26:46,341 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:11,ct3:-13,ct4:1,vrms:12188,pulse:0
2022-08-17 18:26:56,276 INFO SerialTx3e START MESSAGE: ct1:-26,ct2:10,ct3:-10,ct4:1,vrms:12189,pulse:0
2022-08-17 18:27:06,216 INFO SerialTx3e START MESSAGE: ct1:-24,ct2:11,ct3:-13,ct4:1,vrms:12186,pulse:0
2022-08-17 18:27:16,067 INFO SerialTx3e START MESSAGE: ct1:-24,ct2:10,ct3:-14,ct4:1,vrms:12201,pulse:0
2022-08-17 18:27:26,007 INFO SerialTx3e START MESSAGE: ct1:-23,ct2:10,ct3:-13,ct4:1,vrms:12197,pulse:0
2022-08-17 18:27:35,957 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:11,ct3:-13,ct4:2,vrms:12183,pulse:0
2022-08-17 18:27:45,799 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:12,ct3:-13,ct4:1,vrms:12208,pulse:0
2022-08-17 18:27:55,743 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:12,ct3:-12,ct4:1,vrms:12198,pulse:0
2022-08-17 18:28:05,582 INFO SerialTx3e START MESSAGE: ct1:-26,ct2:8,ct3:-12,ct4:1,vrms:12208,pulse:0
2022-08-17 18:28:15,527 INFO SerialTx3e START MESSAGE: ct1:-26,ct2:10,ct3:-13,ct4:1,vrms:12176,pulse:0
2022-08-17 18:28:25,483 INFO SerialTx3e START MESSAGE: ct1:-26,ct2:10,ct3:-10,ct4:1,vrms:12174,pulse:0
2022-08-17 18:28:35,337 INFO SerialTx3e START MESSAGE: ct1:-26,ct2:7,ct3:-13,ct4:2,vrms:12199,pulse:0
2022-08-17 18:28:45,282 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:10,ct3:-15,ct4:1,vrms:12205,pulse:0
2022-08-17 18:28:55,136 INFO SerialTx3e START MESSAGE: ct1:-25,ct2:10,ct3:-12,ct4:1,vrms:12202,pulse:0
MINICOM OUTPUT
ct1:-1766,ct2:8,ct3:-181,ct4:2,vrms:12120,pulse:0
ct1:-1772,ct2:6,ct3:-178,ct4:2,vrms:12129,pulse:0
ct1:-1779,ct2:7,ct3:-179,ct4:2,vrms:12155,pulse:0
ct1:-1777,ct2:7,ct3:-177,ct4:2,vrms:12161,pulse:0
ct1:-1766,ct2:6,ct3:-178,ct4:1,vrms:12148,pulse:0
ct1:-1762,ct2:8,ct3:-180,ct4:1,vrms:12136,pulse:0
ct1:-1741,ct2:5,ct3:-180,ct4:1,vrms:12122,pulse:0
ct1:-1730,ct2:7,ct3:-181,ct4:2,vrms:12131,pulse:0
ct1:-1752,ct2:7,ct3:-178,ct4:2,vrms:12131,pulse:0
ct1:-1735,ct2:6,ct3:-179,ct4:1,vrms:12111,pulse:0
ct1:-1749,ct2:7,ct3:-177,ct4:1,vrms:12142,pulse:0
ct1:-1747,ct2:7,ct3:-180,ct4:2,vrms:12131,pulse:0
ct1:-1738,ct2:7,ct3:-177,ct4:2,vrms:12122,pulse:0
#######################################################################
####################### emonhub.conf #########################
#######################################################################
### emonHub configuration file, for info see documentation:
### https://github.com/openenergymonitor/emonhub/blob/emon-pi/conf/emonhub.conf
#######################################################################
####################### emonHub settings #######################
#######################################################################
[hub]
### loglevel must be one of INFO, INFO, WARNING, ERROR, and CRITICAL
loglevel = INFO
### Uncomment this to also send to syslog
# use_syslog = yes
#######################################################################
####################### Interfacers #######################
#######################################################################
[interfacers]
### This interfacer manages the EmonTx3 ESP format serial
[[SerialTx3e]]
Type = EmonHubTx3eInterfacer
[[[init_settings]]]
# Un-comment line below if using RS485 adapter
#com_port = /dev/ttyRS485-0
# default com port if using USB to UART adapter
com_port= /dev/ttyACM0
com_baud = 115200
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
### 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)
[[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 = 1
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/
[[emoncmsorg]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
url = https://emoncms.org
#. updated for new raymop1
apikey = XXXXXX
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 #######################
#######################################################################
[nodes]
## See config user guide: https://github.com/openenergymonitor/emonhub/blob/emon-pi/conf/emonhub.conf
[[5]]
nodename = emonpi
[[[rx]]]
names = power1,power2,power1pluspower2,vrms,t1,t2,t3,t4,t5,t6,pulsecount
datacodes = h, h, h, h, h, h, h, h, h, h, L
scales = 1,1,1,0.01,0.1,0.1,0.1,0.1,0.1,0.1,1
units = W,W,W,V,C,C,C,C,C,C,p
[[6]]
nodename = emontxshield
[[[rx]]]
names = power1, power2, power3, power4, vrms
datacode = h
scales = 1,1,1,1,0.01
units = W,W,W,W,V
[[7]]
nodename = emontx4
[[[rx]]]
names = power1, power2, power3, power4, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
datacodes = h,h,h,h,h,h,h,h,h,h,h,L
scales = 1,1,1,1,0.01,0.1,0.1, 0.1,0.1,0.1,0.1,1
units = W,W,W,W,V,C,C,C,C,C,C,p
[[8]]
nodename = emontx3
[[[rx]]]
names = power1, power2, power3, power4, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
datacodes = h,h,h,h,h,h,h,h,h,h,h,L
scales = 1,1,1,1,0.01,0.1,0.1, 0.1,0.1,0.1,0.1,1
units = W,W,W,W,V,C,C,C,C,C,C,p
[[9]]
nodename = emontx2
[[[rx]]]
names = power1, power2, power3, power4, vrms, pulse
datacodes = h,h,h,h,h,h,L
scales = 1,1,1,1,1 ,1
units = W,W,W,W,V,p
[[10]]
nodename = emontx1
[[[rx]]]
names = power1, power2, power3, power4, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
datacodes = h,h,h,h,h,h,h,h,h,h,h,L
scales = 1,1,1,1,0.01,0.01,0.01,0.01,0.01,0.01,0.01,1
units = W,W,W,W,V,C,C,C,C,C,C,p
I’ve formatted the listing for legibility - Moderator (RW)
For future reference, when posting code or output, please put 3 ‘backticks’ (normally found at the top left of the keyboard) on a line of their own before the code, and 3 more backticks also on a line of their own after the code:
```
code
```
If it is something like php you can add a language identifier after the first 3 backticks: ```php
or even ```text
if you don’t want any language markup applied.