Hi,
I’ve got an emonTx v3.4 connected to the serial on a Pi Zero, running EmonHub (on the latest “Raspberry Pi OS”).
My serial data is like:
MSG:276,Vrms:246.41,P1:467,P2:478,P3:480,E1:1095,E2:1121,E3:1117,pulse:1096
My emonhub.conf is like:
[interfacers]
[[SerialTx]]
Type = EmonHubTx3eInterfacer
[[[init_settings]]]
com_port= /dev/ttyAMA0
com_baud = 115200
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
nodeoffset = 1
[[MQTT]]
Type = EmonHubMqttInterfacer
[[[init_settings]]]
mqtt_host = 10.0.0.10
mqtt_port = 1883
mqtt_user = USER
mqtt_passwd = PASS
[[[runtimesettings]]]
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/
[[emoncms]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
# pubchannels = ToRFM12,
subchannels = ToEmonCMS,
url = http://10.0.0.20
apikey = MYKEY
senddata = 1
sendstatus = 1
[nodes]
[[1]]
nodename = emontx
[[[rx]]]
names = MSG, Vrms, P1, P2, P3, E1, E2, E3, pulse
datacodes = L,h,h,h,h,L,L,L,L
scales = 1,1,1,1,1,0.1,0.1,0.1,1
units = n,V,W,W,W,kWh,kWh,kWh,p
but I just keep getting this, whatever I try:
2020-08-31 17:10:47,756 INFO MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2020-08-31 17:10:47,766 INFO MainThread Opening hub...
2020-08-31 17:10:54,809 WARNING SerialTx 1 RX data length: 9 is not valid for datacodes ['L', 'h', 'h', 'h', 'h', 'L', 'L', 'L', 'L']
2020-08-31 17:11:04,796 WARNING SerialTx 2 RX data length: 9 is not valid for datacodes ['L', 'h', 'h', 'h', 'h', 'L', 'L', 'L', 'L']
I’m clearly missing something - can anyone see why?
Thanks,
Ian