EmonHUB Crashing

Thanks Paul,
I was having issues getting anything into or out of the MQTT at one point, so in exasperation added pub/sub to all I think.
In theory what I wanted was for emoncms to be able to send some values to MQTT, for the emonhub to receive some from MQTT and for emonhub to send to MQTT.
What I will do is create a different thread asking exactly what I want to do so as not to derail this, and if I may mention your account.(but it won’t be quick, and I don’t need a quick answer).
Regards,
Gareth

Paul
Just noticed a question that you asked about what code was modified.
The only code that has been modified is the HTML to add more widgets, posting rate to external emoncms server and to reduce the snap to grid lines.

I know that you are busy Paul but if anybody else3 could point me in the right direction.

Regards
Dave

Any progress @Dave?

Hi All, I know its been a while but for some reason my emon pi crashed and the sql server stopped working.
I took the opportunity to install a fresh 9.7.2 on a new sd card and I’ve reprogrammed my emoncms but today I have experienced another crash
I was lucky enough to notice it in time to catch the logs.
I really haven’t a clue what is causing the issue, I’m starting to think it may be a emonTx that may be sending a corrupt packet?
emonhub - Copy.txt (97.7 KB)

emonhub.log - Copy (2).txt (2.0 MB)

emonhub.log - Copy.txt (4.4 MB)

2016-07-13 11:46:29,667 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Upstairs_Sockets 40
2016-07-13 11:46:29,668 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Shed_Submain 64
2016-07-13 11:46:29,670 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Loft_Sockets 237
2016-07-13 11:46:29,671 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Upstairs_Lights 26
2016-07-13 11:46:29,673 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/vrms 245.45
2016-07-13 11:46:29,674 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp1 300
2016-07-13 11:46:29,675 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp2 300
2016-07-13 11:46:29,676 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp3 300
2016-07-13 11:46:29,678 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp4 300
2016-07-13 11:46:29,679 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp5 300
2016-07-13 11:46:29,680 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp6 300
2016-07-13 11:46:29,682 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/pulse 2
2016-07-13 11:46:29,683 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Irms1 0.3
2016-07-13 11:46:29,684 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Irms2 0.5
2016-07-13 11:46:29,686 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Irms3 1.2
2016-07-13 11:46:29,687 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Irms4 0.1
2016-07-13 11:46:29,688 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/powerFactor1 0.47
2016-07-13 11:46:29,690 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/powerFactor2 0.46
2016-07-13 11:46:29,691 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/powerFactor3 0.75
2016-07-13 11:46:29,692 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/powerFactor4 0.64
2016-07-13 11:46:29,694 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/rssi -54
2016-07-13 11:46:29,695 INFO     RFM2Pi     Publishing: emonhub/rx/8/values 40,64,237,26,245.45,300,300,300,300,300,300,2,0.3,0.5,1.2,0.1,0.47,0.46,0.75,0.64
2016-07-13 11:46:29,695 INFO     RFM2Pi     Publishing: emonhub/rx/8/rssi -54
2016-07-13 11:46:29,696 DEBUG    RFM2Pi     230672 adding frame to buffer => [1468410389, 8, 40, 64, 237, 26, 245.45000000000002, 300, 300, 300, 300, 300, 300, 2, 0.30000000000000004, 0.5, 1.2000000000000002, 0.1, 0.47000000000000003, 0.46, 0.75, 0.64, -54]
2016-07-13 11:46:29,697 DEBUG    RFM2Pi     230672 Sent to channel' : ToEmonCMS
2016-07-13 11:46:30,916 DEBUG    RFM2Pi     230673 NEW FRAME : OK 10 161 243 232 255 32 0 5 0 0 0 190 95 184 11 (-60)
2016-07-13 11:46:30,919 DEBUG    RFM2Pi     230673 Timestamp : 1468410390.92
2016-07-13 11:46:30,919 DEBUG    RFM2Pi     230673 From Node : 10
2016-07-13 11:46:30,920 DEBUG    RFM2Pi     230673    Values : [-3167, -24, 32, 5, 0, 245.1, 300]
2016-07-13 11:46:30,920 DEBUG    RFM2Pi     230673      RSSI : -60
2016-07-13 11:46:30,921 INFO     RFM2Pi     Publishing: emon/emonTx_Diverter/Grid_Watts -3167
2016-07-13 11:46:30,923 INFO     RFM2Pi     Publishing: emon/emonTx_Diverter/Diverted_Watts -24
2016-07-13 11:46:30,924 INFO     RFM2Pi     Publishing: emon/emonTx_Diverter/Cooker 32
2016-07-13 11:46:30,926 INFO     RFM2Pi     Publishing: emon/emonTx_Diverter/Shower 5
2016-07-13 11:46:30,927 INFO     RFM2Pi     Publishing: emon/emonTx_Diverter/Diverted_Energy_WattHours 0
2016-07-13 11:46:30,928 INFO     RFM2Pi     Publishing: emon/emonTx_Diverter/vrms 245.1
2016-07-13 11:46:30,930 INFO     RFM2Pi     Publishing: emon/emonTx_Diverter/temp 300
2016-07-13 11:46:30,931 INFO     RFM2Pi     Publishing: emon/emonTx_Diverter/rssi -60
2016-07-13 11:46:30,932 INFO     RFM2Pi     Publishing: emonhub/rx/10/values -3167,-24,32,5,0,245.1,300
2016-07-13 11:46:30,934 INFO     RFM2Pi     Publishing: emonhub/rx/10/rssi -60
2016-07-13 11:46:30,935 DEBUG    RFM2Pi     230673 adding frame to buffer => [1468410390, 10, -3167, -24, 32, 5, 0, 245.1, 300, -60]
2016-07-13 11:46:30,936 DEBUG    RFM2Pi     230673 Sent to channel' : ToEmonCMS
2016-07-13 11:46:31,971 DEBUG    RFM2Pi     230674 NEW FRAME : OK 9 51 242 174 0 24 0 0 0 212 95 184 11 184 11 184 11 184 11 184 11 184 11 2 0 0 0 143 0 11 0 2 0 0 0 157 255 60 0 40 0 0 0 (-49)
2016-07-13 11:46:31,976 DEBUG    RFM2Pi     230674 Timestamp : 1468410391.97
2016-07-13 11:46:31,977 DEBUG    RFM2Pi     230674 From Node : 9
2016-07-13 11:46:31,978 DEBUG    RFM2Pi     230674    Values : [-3533, 174, 24, 0, 245.32, 300, 300, 300, 300, 300, 300, 2, 14.3, 1.1, 0.2, 0, -0.99, 0.6, 0.4, 0]
2016-07-13 11:46:31,979 DEBUG    RFM2Pi     230674      RSSI : -49
2016-07-13 11:46:31,980 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/Supply -3533
2016-07-13 11:46:31,982 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/Kitchen_Sockets 174
2016-07-13 11:46:31,983 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/Downstairs_Sockets 24
2016-07-13 11:46:31,985 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/Downstairs_Lights 0
2016-07-13 11:46:31,986 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/vrms 245.32
2016-07-13 11:46:31,988 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/temp1 300
2016-07-13 11:46:31,990 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/temp2 300
2016-07-13 11:46:31,991 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/temp3 300
2016-07-13 11:46:31,993 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/temp4 300
2016-07-13 11:46:31,995 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/temp5 300
2016-07-13 11:46:31,996 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/temp6 300
2016-07-13 11:46:31,998 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/pulse 2
2016-07-13 11:46:32,000 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/Irms1 14.3
2016-07-13 11:46:32,002 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/Irms2 1.1
2016-07-13 11:46:32,003 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/Irms3 0.2
2016-07-13 11:46:32,005 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/Irms4 0
2016-07-13 11:46:32,006 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/powerFactor1 -0.99
2016-07-13 11:46:32,008 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/powerFactor2 0.6
2016-07-13 11:46:32,013 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/powerFactor3 0.4
2016-07-13 11:46:32,022 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/powerFactor4 0
2016-07-13 11:46:32,031 INFO     RFM2Pi     Publishing: emon/emonTx_Node9/rssi -49
2016-07-13 11:46:32,035 INFO     RFM2Pi     Publishing: emonhub/rx/9/values -3533,174,24,0,245.32,300,300,300,300,300,300,2,14.3,1.1,0.2,0,-0.99,0.6,0.4,0
2016-07-13 11:46:32,036 INFO     RFM2Pi     Publishing: emonhub/rx/9/rssi -49
2016-07-13 11:46:32,039 DEBUG    RFM2Pi     230674 adding frame to buffer => [1468410391, 9, -3533, 174, 24, 0, 245.32, 300, 300, 300, 300, 300, 300, 2, 14.3, 1.1, 0.2, 0, -0.99, 0.6, 0.4, 0, -49]
2016-07-13 11:46:32,040 DEBUG    RFM2Pi     230674 Sent to channel' : ToEmonCMS
2016-07-13 11:46:33,579 DEBUG    RFM2Pi     230675 NEW FRAME : OK 5 230 9 35 6 9 16 134 96 246 0 193 0 0 0 0 0 0 0 0 0 74 124 1 0 102 0 63 0 165 0 100 0 99 0 (-0)
2016-07-13 11:46:33,583 DEBUG    RFM2Pi     230675 Timestamp : 1468410393.58
2016-07-13 11:46:33,584 DEBUG    RFM2Pi     230675 From Node : 5
2016-07-13 11:46:33,584 DEBUG    RFM2Pi     230675    Values : [2534, 1571, 4105, 247.1, 24.6, 19.3, 0, 0, 0, 0, 97354, 10.200000000000001, 6.300000000000001, 16.5, 1, 0.99]
2016-07-13 11:46:33,585 INFO     RFM2Pi     Publishing: emon/emonpi/RearPV 2534
2016-07-13 11:46:33,587 INFO     RFM2Pi     Publishing: emon/emonpi/FrontPV 1571
2016-07-13 11:46:33,588 INFO     RFM2Pi     Publishing: emon/emonpi/TotalGeneration 4105
2016-07-13 11:46:33,589 INFO     RFM2Pi     Publishing: emon/emonpi/vrms 247.1
2016-07-13 11:46:33,590 INFO     RFM2Pi     Publishing: emon/emonpi/t1 24.6
2016-07-13 11:46:33,591 INFO     RFM2Pi     Publishing: emon/emonpi/t2 19.3
2016-07-13 11:46:33,592 INFO     RFM2Pi     Publishing: emon/emonpi/t3 0
2016-07-13 11:46:33,594 INFO     RFM2Pi     Publishing: emon/emonpi/t4 0
2016-07-13 11:46:33,595 INFO     RFM2Pi     Publishing: emon/emonpi/t5 0
2016-07-13 11:46:33,596 INFO     RFM2Pi     Publishing: emon/emonpi/t6 0
2016-07-13 11:46:33,597 INFO     RFM2Pi     Publishing: emon/emonpi/pulsecount 97354
2016-07-13 11:46:33,598 INFO     RFM2Pi     Publishing: emon/emonpi/Irms1 10.2
2016-07-13 11:46:33,599 INFO     RFM2Pi     Publishing: emon/emonpi/Irms2 6.3
2016-07-13 11:46:33,600 INFO     RFM2Pi     Publishing: emon/emonpi/Irms1_plus_2 16.5
2016-07-13 11:46:33,602 INFO     RFM2Pi     Publishing: emon/emonpi/powerFactor1 1
2016-07-13 11:46:33,603 INFO     RFM2Pi     Publishing: emon/emonpi/powerFactor2 0.99
2016-07-13 11:46:33,604 INFO     RFM2Pi     Publishing: emon/emonpi/rssi 0
2016-07-13 11:46:33,605 INFO     RFM2Pi     Publishing: emonhub/rx/5/values 2534,1571,4105,247.1,24.6,19.3,0,0,0,0,97354,10.2,6.3,16.5,1,0.99
2016-07-13 11:46:33,606 INFO     RFM2Pi     Publishing: emonhub/rx/5/rssi 0
2016-07-13 11:46:33,608 DEBUG    RFM2Pi     230675 adding frame to buffer => [1468410393, 5, 2534, 1571, 4105, 247.1, 24.6, 19.3, 0, 0, 0, 0, 97354, 10.200000000000001, 6.300000000000001, 16.5, 1, 0.99]
2016-07-13 11:46:33,608 DEBUG    RFM2Pi     230675 Sent to channel' : ToEmonCMS
2016-07-13 11:46:34,547 DEBUG    RFM2Pi     230676 NEW FRAME : OK 8 38 0 58 0 237 0 26 0 233 95 184 11 184 11 184 11 184 11 184 11 184 11 2 0 0 0 3 0 5 0 12 0 1 0 46 0 43 0 75 0 63 0 (-55)
2016-07-13 11:46:34,551 DEBUG    RFM2Pi     230676 Timestamp : 1468410394.55
2016-07-13 11:46:34,552 DEBUG    RFM2Pi     230676 From Node : 8
2016-07-13 11:46:34,553 DEBUG    RFM2Pi     230676    Values : [38, 58, 237, 26, 245.53, 300, 300, 300, 300, 300, 300, 2, 0.30000000000000004, 0.5, 1.2000000000000002, 0.1, 0.46, 0.43, 0.75, 0.63]
2016-07-13 11:46:34,553 DEBUG    RFM2Pi     230676      RSSI : -55
2016-07-13 11:46:34,554 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Upstairs_Sockets 38
2016-07-13 11:46:34,556 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Shed_Submain 58
2016-07-13 11:46:34,557 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Loft_Sockets 237
2016-07-13 11:46:34,559 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Upstairs_Lights 26
2016-07-13 11:46:34,560 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/vrms 245.53
2016-07-13 11:46:34,566 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp1 300
2016-07-13 11:46:34,569 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp2 300
2016-07-13 11:46:34,571 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp3 300
2016-07-13 11:46:34,573 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp4 300
2016-07-13 11:46:34,575 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp5 300
2016-07-13 11:46:34,576 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/temp6 300
2016-07-13 11:46:34,578 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/pulse 2
2016-07-13 11:46:34,579 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Irms1 0.3
2016-07-13 11:46:34,581 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Irms2 0.5
2016-07-13 11:46:34,583 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Irms3 1.2
2016-07-13 11:46:34,584 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/Irms4 0.1
2016-07-13 11:46:34,586 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/powerFactor1 0.46
2016-07-13 11:46:34,588 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/powerFactor2 0.43
2016-07-13 11:46:34,589 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/powerFactor3 0.75
2016-07-13 11:46:34,591 INFO     RFM2Pi     Publishing: emon/emonTx_Node8/powerFactor4 0.63
2016-07-13 11:46:34,716 WARNING  MainThread RFM2Pi thread is dead
2016-07-13 11:46:34,717 WARNING  MainThread MQTT thread is dead
2016-07-13 11:46:34,960 WARNING  MainThread RFM2Pi thread is dead
2016-07-13 11:46:34,960 WARNING  MainThread MQTT thread is dead
2016-07-13 11:46:35,186 WARNING  MainThread RFM2Pi thread is dead
2016-07-13 11:46:35,187 WARNING  MainThread MQTT thread is dead
2016-07-13 11:46:35,413 WARNING  MainThread RFM2Pi thread is dead

Hi Dave,
From your log I can tell this is a threading issue within the interfacers code that was altered for the emonPi variant. That central column of “RFM2Pi” fields is the name of the interfacer module reporting the log entry, so it would seem only the RFM2Pi interfacer is working and it seems to be publishing MQTT which it isn’t supposed to be doing, that is the job of the MQTT interfacer.
So either a MQTT thread is being spawned from within the RFM2Pi thread or the threads are somehow losing track of their identity, (not entirely sure that’s possible) it is unlikely to (or at least shouldn’t) be caused by a bad data packet.
I’m afraid I am not familiar with the “emonPi variant” so cannot really give you any pointers.

Hello All !!

I am experiencing the same behavior, the EmonHub crash with the message " MainThread RFM2Pi thread is dead" in the “emonhub.log” that I put below. The SD image version that I am using is “emonSD-03May16”.

2017-02-04 15:57:03,469 DEBUG    RFM2Pi     acknowledged command: <n> c      - set collect mode (advanced, normally 0)
2017-02-04 15:57:03,675 DEBUG    RFM2Pi     acknowledged command: ...,<nn> a - send data packet to node <nn>, request ack
2017-02-04 15:57:03,778 DEBUG    RFM2Pi     acknowledged command: ...,<nn> s - send data packet to node <nn>, no ack
2017-02-04 15:57:03,882 DEBUG    RFM2Pi     acknowledged command: <n> q      - set quiet mode (1 = don't report bad packets)
2017-02-04 15:57:03,986 DEBUG    RFM2Pi     acknowledged command: <n> x      - set reporting format (0: decimal, 1: hex, 2: hex+ascii)
2017-02-04 15:57:04,294 DEBUG    RFM2Pi     acknowledged command: <hchi>,<hclo>,<addr>,<cmd> f     - FS20 command (868 MHz)
2017-02-04 15:57:04,398 DEBUG    RFM2Pi     acknowledged command: <addr>,<dev>,<on> k              - KAKU command (433 MHz)
2017-02-04 15:57:04,601 DEBUG    RFM2Pi     device settings updated: E i5 g7 @ 868 MHz
2017-02-04 15:57:16,385 DEBUG    RFM2Pi     Discarding RX frame 'unreliable content'? 14 250 151 4 245 197 85 141 244 207 60 130 132 187 113 6 110 81 213 216 193
2017-02-04 15:57:23,227 DEBUG    RFM2Pi     Discarding RX frame 'unreliable content'? 20 84 241 165 165 29 52 71 166 166 136 132 154 31 198 40 200 174 0 96 190
2017-02-04 15:57:23,945 DEBUG    RFM2Pi     7 NEW FRAME : OK 1 246 14 57
2017-02-04 15:57:23,947 DEBUG    RFM2Pi     7 Timestamp : 1486223843.95
2017-02-04 15:57:23,947 DEBUG    RFM2Pi     7 From Node : 1
2017-02-04 15:57:23,948 DEBUG    RFM2Pi     7    Values : [3.83, 57]
2017-02-04 15:57:23,949 INFO     RFM2Pi     Publishing: emon/door/voltajebat 3.83
2017-02-04 15:57:23,951 INFO     RFM2Pi     Publishing: emon/door/bateria 57
2017-02-04 15:57:23,952 INFO     RFM2Pi     Publishing: emon/door/rssi 0
2017-02-04 15:57:23,953 INFO     RFM2Pi     Publishing: emonhub/rx/1/values 3.83,57
2017-02-04 15:57:23,955 INFO     RFM2Pi     Publishing: emonhub/rx/1/rssi 0
2017-02-04 15:57:23,956 DEBUG    RFM2Pi     7 adding frame to buffer => [1486223843, 1, 3.83, 57]
2017-02-04 15:57:23,957 DEBUG    RFM2Pi     7 Sent to channel' : ToEmonCMS
2017-02-04 15:57:50,220 DEBUG    RFM2Pi     8 NEW FRAME : OK 7 203 0 113 2 200 0 116 0
2017-02-04 15:57:50,289 WARNING  MainThread RFM2Pi thread is dead
2017-02-04 15:57:50,515 WARNING  MainThread RFM2Pi thread is dead
2017-02-04 15:57:50,740 WARNING  MainThread RFM2Pi thread is dead
2017-02-04 15:57:50,980 WARNING  MainThread RFM2Pi thread is dead
2017-02-04 15:57:51,212 WARNING  MainThread RFM2Pi thread is dead

I do not see anything suspicious in the RF messages nor the EmonHub configuration. Every time the emonhub receives the message from node 7 it crash but it process correctly the messages from node 1. I have change the number of variables, the lengths… I don’t know anything else to try.

¿Could you give me any advice? I am lost and I can’t get clues from your previous messages.

Thank you!!

[interfacers]

[[RFM2Pi]]
Type = EmonHubJeeInterfacer
[[[init_settings]]]
com_port = /dev/ttyAMA0
com_baud = 38400 # 9600 for old RFM12Pi
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
subchannels = ToRFM12,

    group = 7
    frequency = 868
    baseid = 5                              # emonPi / emonBase nodeID
    quiet = true                            # Report incomplete RF packets (no implemented on emonPi)
    calibration = 230V                      # (UK/EU: 230V, US: 110V)
    # interval =  0                         # 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
apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
senddata = 1 # Enable sending data to Emoncms.org
sendstatus = 1 # Enable sending WAN IP to Emoncms.org MyIP > Emoncms - myip list
sendinterval= 30 # Bulk send interval to Emoncms.org in seconds

[nodes]

[[1]]
nodename = door
firmware = Door_open_detector
[[[rx]]]
names = voltajebat, bateria
datacodes = h,b
scales = 0.001,1
units =V,%

[[7]]
nodename = roomlight
firmware = Room_Light_node
[[[rx]]]
names = temp,hum,heatindex,lum
datacode = h,h,h,h
scales = 0.1,0.1,0.1,0.1
units =T,%,T,%

1 Like