Hi, I’m using a emonTX with a emonPi.
In the emoncms of the emonPi, appears all the variables in the Input Dashboard like: power1, power2, power3, power4, Vrms, temp1, temp2, temp3, temp4, temp5, temp5, pulse, rssi…
But, also al record name: 13 with a value 0.
The emonhug log, I saw 13 bytes.
2017-02-13 20:00:08,113 DEBUG RFM2Pi 634 From Node : 10
2017-02-13 20:00:08,113 DEBUG RFM2Pi 634 Values : [-10, 0, 0, 0, 115.41, 0, 0, 0, 0, 0, 0, 0, 0]
2017-02-13 20:00:08,114 DEBUG RFM2Pi 634 RSSI : -59
It’s completely logical because the data structure defined in the firmware of the emonTx is:
11 int’s and 1 unsigned long number:
typedef struct {
int power[4], Vrms, temp[6];
unsigned int pulseCount;
} PayloadTX;
However the emonhub config files defines the pulse data as a long record:
[[10]]
nodename = emontx1
[[[rx]]]
names = power1, power2, power3, power4, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
datacode = h
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
so my question is is there is a bug with the emonhub?
Regards.