Sorry - I tried all combos of `, `` and < but didn’t use three ```. Will make a note for the future …
Herewith the emonhub.conf from the emonTx, copy / pasted after having stopped emonhub and during the running of the miniterm routine
#######################################################################
####################### 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
### Uncomment this to also send to syslog
# use_syslog = yes
#######################################################################
####################### Interfacers #######################
#######################################################################
[interfacers]
### 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)
[[SerialTx]]
Type = EmonHubTx3eInterfacer
[[[init_settings]]]
com_port= /dev/ttyAMA0
com_baud = 115200
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
nodeoffset = 0
nodename = Serial_PiZero_barn
[[MQTT]]
Type = EmonHubMqttInterfacer
[[[init_settings]]]
mqtt_host = 192.168.2.50
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
apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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, 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
[[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
[[11]]
nodename = 3phase
[[[rx]]]
names = powerL1, powerL2, powerL3, 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
[[12]]
nodename = 3phase2
[[[rx]]]
names = powerL1, powerL2, powerL3, 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
[[13]]
nodename = 3phase3
[[[rx]]]
names = powerL1, powerL2, powerL3, 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
[[14]]
nodename = 3phase4
[[[rx]]]
names = powerL1, powerL2, powerL3, 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
[[15]]
nodename = emontx3cm15
[[[rx]]]
names = MSG, Vrms, P1, P2, P3, P4, E1, E2, E3, E4, T1, T2, T3, pulse
datacodes = L,h,h,h,h,h,l,l,l,l,h,h,h,L
scales = 1,0.01,1,1,1,1,1,1,1,1,0.01,0.01,0.01,1
units = n,V,W,W,W,W,Wh,Wh,Wh,Wh,C,C,C,p
whitening = 1
[[16]]
nodename = emontx3cm16
[[[rx]]]
names = MSG, Vrms, P1, P2, P3, P4, E1, E2, E3, E4, T1, T2, T3, pulse
datacodes = L,h,h,h,h,h,l,l,l,l,h,h,h,L
scales = 1,0.01,1,1,1,1,1,1,1,1,0.01,0.01,0.01,1
units = n,V,W,W,W,W,Wh,Wh,Wh,Wh,C,C,C,p
whitening = 1
[[19]]
nodename = emonth1
[[[rx]]]
names = temperature, external temperature, humidity, battery
datacode = h
scales = 0.1,0.1,0.1,0.1
units = C,C,%,V
[[20]]
nodename = emonth2
[[[rx]]]
names = temperature, external temperature, humidity, battery
datacode = h
scales = 0.1,0.1,0.1,0.1
units = C,C,%,V
[[21]]
nodename = emonth3
[[[rx]]]
names = temperature, external temperature, humidity, battery
datacode = h
scales = 0.1,0.1,0.1,0.1
units = C,C,%,V
[[22]]
nodename = emonth4
[[[rx]]]
names = temperature, external temperature, humidity, battery
datacode = h
scales = 0.1,0.1,0.1,0.1
units = C,C,%,V
[[23]]
nodename = emonth5
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulsecount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
[[24]]
nodename = emonth6
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulsecount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
[[25]]
nodename = emonth7
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulsecount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
[[26]]
nodename = emonth8
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulsecount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
Not knowingly (didn’t know I ought to have, and don’t know how to anyway. I most likely did shut the PiZero down a couple of times since the initial set up though.
Where would I do that? I can’t see anything RF related in the emonHub.conf (On the other three emonTx’s I have elsewhere (currently connected to ESP8266’s) I have fitted a “blanking” plate to the RF screw, but obviously didn’t have a fourth for this one.
Herewith the miniterm results (hmmm, despite three ``` top & bottom this next section doesn’t get abbreviated. Sorry!) …
Last login: Sun Oct 11 12:14:13 on ttys002
Julians-42-iMac:~ jjb$ ssh [email protected]
[email protected]'s password:
Linux emonpi 5.4.51+ #1333 Mon Aug 10 16:38:02 BST 2020 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Oct 11 12:14:30 2020 from 192.168.2.30
pi@emonpi:~ $ sudo systemctl stop emonhub.service
pi@emonpi:~ $ miniterm --rtscts /dev/ttyAMA0 115200
--- Miniterm on /dev/ttyAMA0 115200,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
MSG:45,Vrms:247.75,P1:0,E1:0,pulse:1
MSG:46,Vrms:247.81,P1:0,E1:0,pulse:1
MSG:47,Vrms:248.02,P1:0,E1:0,pulse:1
MSG:48,Vrms:248.16,P1:0,E1:0,pulse:1
MSG:49,Vrms:248.05,P1:0,E1:0,pulse:1
MSG:50,Vrms:248.21,P1:0,E1:0,pulse:1
MSG:51,Vrms:248.11,P1:0,E1:0,pulse:1
MSG:52,Vrms:247.98,P1:0,E1:0,pulse:1
MSG:53,Vrms:247.92,P1:0,E1:0,pulse:1
MSG:54,Vrms:248.04,P1:0,E1:0,pulse:1
MSG:55,Vrms:247.91,P1:0,E1:0,pulse:1
MSG:56,Vrms:247.65,P1:0,E1:0,pulse:1
MSG:57,Vrms:247.77,P1:0,E1:0,pulse:1
MSG:58,Vrms:247.81,P1:0,E1:0,pulse:1
MSG:59,Vrms:247.76,P1:0,E1:0,pulse:1
MSG:60,Vrms:247.64,P1:0,E1:0,pulse:1
MSG:61,Vrms:247.82,P1:0,E1:0,pulse:1
MSG:62,Vrms:247.62,P1:0,E1:0,pulse:1
MSG:63,Vrms:247.64,P1:0,E1:0,pulse:1
MSG:64,Vrms:247.72,P1:0,E1:0,pulse:1
MSG:65,Vrms:247.60,P1:0,E1:0,pulse:1
MSG:66,Vrms:247.45,P1:0,E1:0,pulse:1
MSG:67,Vrms:247.50,P1:0,E1:0,pulse:1
MSG:68,Vrms:247.56,P1:0,E1:0,pulse:1
MSG:69,Vrms:247.41,P1:0,E1:0,pulse:1
MSG:70,Vrms:247.41,P1:0,E1:0,pulse:1
MSG:71,Vrms:247.34,P1:0,E1:0,pulse:1
MSG:72,Vrms:247.82,P1:0,E1:0,pulse:1
MSG:73,Vrms:247.84,P1:0,E1:0,pulse:1
MSG:74,Vrms:247.82,P1:0,E1:0,pulse:1
MSG:75,Vrms:247.81,P1:0,E1:0,pulse:1
MSG:76,Vrms:248.00,P1:0,E1:0,pulse:1
MSG:77,Vrms:248.14,P1:0,E1:0,pulse:1
MSG:78,Vrms:248.20,P1:0,E1:0,pulse:1
MSG:79,Vrms:248.13,P1:0,E1:0,pulse:1
MSG:80,Vrms:248.17,P1:0,E1:0,pulse:1
MSG:81,Vrms:248.15,P1:0,E1:0,pulse:1
MSG:82,Vrms:248.00,P1:0,E1:0,pulse:1
MSG:83,Vrms:248.02,P1:0,E1:0,pulse:1
MSG:84,Vrms:248.01,P1:0,E1:0,pulse:1
MSG:85,Vrms:248.13,P1:0,E1:0,pulse:1
MSG:86,Vrms:248.08,P1:0,E1:0,pulse:1
MSG:87,Vrms:248.14,P1:0,E1:0,pulse:1
MSG:88,Vrms:247.32,P1:0,E1:0,pulse:1
MSG:89,Vrms:246.31,P1:0,E1:0,pulse:1
MSG:90,Vrms:246.09,P1:0,E1:0,pulse:1
MSG:91,Vrms:245.98,P1:0,E1:0,pulse:1
MSG:92,Vrms:246.17,P1:0,E1:0,pulse:1
MSG:93,Vrms:246.19,P1:0,E1:0,pulse:1
MSG:94,Vrms:245.99,P1:0,E1:0,pulse:1
MSG:95,Vrms:246.25,P1:0,E1:0,pulse:1
MSG:96,Vrms:246.11,P1:0,E1:0,pulse:1
MSG:97,Vrms:245.76,P1:0,E1:0,pulse:1
MSG:98,Vrms:245.87,P1:0,E1:0,pulse:1
MSG:99,Vrms:246.16,P1:0,E1:0,pulse:1
MSG:100,Vrms:245.97,P1:0,E1:0,pulse:1
MSG:101,Vrms:245.71,P1:0,E1:0,pulse:1
MSG:102,Vrms:245.53,P1:0,E1:0,pulse:1
After doing the above, I rebooted the PiZero and then ran that code via ssh on the PiZero.
Last login: Mon Oct 12 13:21:17 on ttys000
Julians-42-iMac:~ jjb$ ssh [email protected]
[email protected]'s password:
Linux emonpi 5.4.51+ #1333 Mon Aug 10 16:38:02 BST 2020 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Oct 12 13:21:35 2020 from 192.168.2.30
pi@emonpi:~ $ cd /opt/openenergymonitor/emonhub
pi@emonpi:/opt/openenergymonitor/emonhub $ git fetch --all
Fetching origin
pi@emonpi:/opt/openenergymonitor/emonhub $ git checkout master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Switched to a new branch 'master'
pi@emonpi:/opt/openenergymonitor/emonhub $ git pull
Already up to date.
pi@emonpi:/opt/openenergymonitor/emonhub $
After this, I rebooted the PiZero once again; within the Inputs page on the main emonPi I deleted 159 old / stale Input lines within the PiZero “node”. That left Vrms, P1, E1, pulse which updated every 10(?) seconds. But after a while more weird ones started to appear again (ms and G for example). Subsequently, the updating interval on the good ones became slightly erratic
Does any of that help? Have to say I’m a bit lost !!!