Community
OpenEnergyMonitor

Community

Inputs in EmonCMS

Tags: #<Tag:0x00007f6e0f97c6b8> #<Tag:0x00007f6e0f97c488>

I have attempted to get my Inputs correct in Emonbase. This involved some trial and error; I am still not positive I did it correctly, but when I look at the Feeds in Emonbase, they seem correct. I am in NA, so I needed to combine to power inputs, two solar inputs and subtract the two to get Import. I also wanted to keep the separate leg data. The is one Input with the most activity:

1	Log to feed	Node emontx3: useL2	(feed last value:769.00)		
2	Power to kWh	Node emontx3: use_kwhL2	(feed last value:1.10)		
3	+ input	Node emontx3:power1	(input last value:2801.00)		
4	Log to feed	Node emontx3: use	(feed last value:3570.00)		
5	Power to kWh	Node emontx3: use_kwh	(feed last value:2.57)		
6	- input	Node emontx3:power3	(input last value:5.00)		
7	- input	Node emontx3:power4	(input last value:0.00)		
8	Log to feed	Node emontx3: Import	(feed last value:3568.00)		

That also involved deleting some Feeds on the Feeds page, especially all my failed attempts. Now everything is showing a green Updated time:
Id Tag Name Process list Public Datatype Engine Size Updated Value
1 … VRMS REALTIME PHPFINA 447KB 3s 111.3
10 … temp1 REALTIME PHPFINA 447KB 3s 15.2
11 … node:emontx3:rssi REALTIME PHPFINA 447KB 3s -62
15 … Solar_kwh REALTIME PHPFINA 1.8KB 3s 0.46
22 … useL2 REALTIME PHPFINA 1.4KB 3s 693
23 … use_kwhL2 REALTIME PHPFINA 1.4KB 3s 1.18
24 … use_kwh REALTIME PHPFINA 1.4KB 3s 2.81
25 … useL1 REALTIME PHPFINA 1.3KB 3s 1100
26 … use_kwhL1 REALTIME PHPFINA 1.3KB 3s 1.57
27 … SolarL2 REALTIME PHPFINA 1.2KB 3s 0
29 … use REALTIME PHPFINA 1.1KB 3s 1793
30 … Solar_kwhL2 REALTIME PHPFINA 944B 3s 0.06
32 … Solar_kwhL1 REALTIME PHPFINA 904B 3s 0.05
33 … Solar REALTIME PHPFINA 904B 3s -2
34 … SolarL1 REALTIME PHPFINA 864B 3s -3
35 … Import REALTIME PHPFINA 28B 3s 1792
36 … Import_kwh REALTIME PHPFINA 24B 3s 0.95

When I look at it in the Solar App, it at least produces reasonable graphs. I have not verified values yet.

The trouble is when I look at EmonCMS and the Android app. Before I changed the Inputs, data was flowing and I could see graphs, such as they were. When I go to emoncms.org now and look at Inputs, I see several Nodes, all Last updated times are red and are either inactive or from hours or days ago. The Node with the most recent looking data looks like this:

Node 8
Node: Key Description Process list last updated value
8 1 log kwh 4 hrs ago 1991
8 2 log kwh 4 hrs ago 1552
8 3 4 hrs ago 938
8 4 4 hrs ago 937
8 5 log 4 hrs ago 112
8 6 log 4 hrs ago 16.2
8 7 4 hrs ago 300
8 8 4 hrs ago 300
8 9 4 hrs ago 300
8 10 4 hrs ago 300
8 11 4 hrs ago 300
8 12 4 hrs ago 5
8 13 log 4 hrs ago -63
Node 80

Yesterday, data was flowing to emoncms. I had put in the read/write API key into emonbase earlier. Now the feed list has not updated. EmonHub log looks like this:

2018-01-09 17:49:07,138 DEBUG    emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2018-01-09 17:49:07,139 DEBUG    emoncmsorg Sending bulkdata, success: True
2018-01-09 17:49:07,140 DEBUG    emoncmsorg Current queue length: 0
2018-01-09 17:49:07,140 INFO     emoncmsorg sending: https://emoncms.org/myip/set.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y
2018-01-09 17:49:07,217 DEBUG    RFM2Pi     Discarding RX frame 'unreliable content'? 21 207 151 152 11 243 219 78 255 128 60 167 167 128 86 85 77 129 132 162 127 (-86)
2018-01-09 17:49:08,150 DEBUG    RFM2Pi     Discarding RX frame 'unreliable content'? 27 235 159 170 11 127 236 51 144 153 76 112 180 27 35 150 103 162 56 247 245 (-86)
2018-01-09 17:49:09,083 DEBUG    RFM2Pi     Discarding RX frame 'unreliable content'? 21 80 181 214 208 9 117 57 121 228 147 210 211 198 120 225 173 31 177 97 (-90)
2018-01-09 17:49:10,720 DEBUG    RFM2Pi     Discarding RX frame 'unreliable content'? 17 224 112 136 195 56 63 149 174 223 220 232 240 133 110 159 219 207 85 180 109 (-88)
2018-01-09 17:49:11,756 DEBUG    RFM2Pi     124 NEW FRAME : OK 8 232 4 164 5 253 255 0 0 43 43 151 0 184 11 184 11 184 11 184 11 184 11 5 0 0 0 (-61)
2018-01-09 17:49:11,760 DEBUG    RFM2Pi     124 Timestamp : 1515538151.76
2018-01-09 17:49:11,760 DEBUG    RFM2Pi     124 From Node : 8
2018-01-09 17:49:11,761 DEBUG    RFM2Pi     124    Values : [1256, 1444, -3, 0, 110.51, 15.100000000000001, 300, 300, 300, 300, 300, 5]
2018-01-09 17:49:11,761 DEBUG    RFM2Pi     124      RSSI : -61
2018-01-09 17:49:11,762 DEBUG    RFM2Pi     124 Sent to channel(start)' : ToEmonCMS
2018-01-09 17:49:11,762 DEBUG    RFM2Pi     124 Sent to channel(end)' : ToEmonCMS
2018-01-09 17:49:11,950 DEBUG    MQTT       Publishing: emon/emontx3/power1 1256
2018-01-09 17:49:11,952 DEBUG    MQTT       Publishing: emon/emontx3/power2 1444
2018-01-09 17:49:11,954 DEBUG    MQTT       Publishing: emon/emontx3/power3 -3
2018-01-09 17:49:11,955 DEBUG    MQTT       Publishing: emon/emontx3/power4 0
2018-01-09 17:49:11,957 DEBUG    MQTT       Publishing: emon/emontx3/vrms 110.51
2018-01-09 17:49:11,959 DEBUG    MQTT       Publishing: emon/emontx3/temp1 15.1
2018-01-09 17:49:11,960 DEBUG    MQTT       Publishing: emon/emontx3/temp2 300
2018-01-09 17:49:11,962 DEBUG    MQTT       Publishing: emon/emontx3/temp3 300
2018-01-09 17:49:11,965 DEBUG    MQTT       Publishing: emon/emontx3/temp4 300
2018-01-09 17:49:11,967 DEBUG    MQTT       Publishing: emon/emontx3/temp5 300
2018-01-09 17:49:11,968 DEBUG    MQTT       Publishing: emon/emontx3/temp6 300
2018-01-09 17:49:11,970 DEBUG    MQTT       Publishing: emon/emontx3/pulse 5
2018-01-09 17:49:11,971 INFO     MQTT       Publishing: emon/emontx3/rssi -61
2018-01-09 17:49:11,973 INFO     MQTT       Publishing: emonhub/rx/8/values 1256,1444,-3,0,110.51,15.1,300,300,300,300,300,5
2018-01-09 17:49:11,975 INFO     MQTT       Publishing: emonhub/rx/8/rssi -61

Which looks like emoncms responded with an OK on the connection.
What do I need to do to get my changed EmonBase Feeds into EmonCMS? What have I setup incorrectly? Can or should I delete my emoncms account and start over?

rearden

See the 5 hours of no updating of Feeds thread, some input queue are running ~4hrs slow at emoncms.org, I would wait until the queue clears so you get instantaneous(ish) updates and reassess then.

OK, thanks. It is good to know that it appears it isn’t a noob issue! I will wait patiently.

hmm, maybe it is a noob issue… It has been 24ish hours. The Input screen on emonCMS now shows a green last updated with 10-40 seconds. So I am assuming that the database has worked through it’s backlog, or at least the changes I made yesterday. The temp, rssi, power1, power2, etc. shown in emoncms reasonably match the values shown on the emonbase input screen. The trouble is that the changes I made to the input and the Feeds shown have not updated to the new names or show the newly created ones.

Have I set things up incorrectly or do I just need more patience?

EmonCMS Feeds:

Feeds
Id Name Tag Datatype Engine Public Size Updated Value
203158 REALTIME PHPFINA 521kb 25s ago 1721
203159 use_kwh L1 Node:8 REALTIME PHPFINA 504kb 25s ago 440.8
203160 use L2 Node:8 REALTIME PHPFINA 464kb 25s ago 1806
203161 use_kwh L2 Node:8 REALTIME PHPFINA 464kb 25s ago 532.8
203162 VRMS Node:8 REALTIME PHPFINA 464kb 25s ago 112.2
203163 Temp Node:8 REALTIME PHPFINA 464kb 25s ago 18.8
203164 RSSI Node:8 REALTIME PHPFINA 464kb 25s ago -61

EmonBase Feeds:
Feeds
Id Tag Name Process list Public Datatype Engine Size Updated Value
1 … VRMS REALTIME PHPFINA 447KB 3s 112
10 … temp1 REALTIME PHPFINA 447KB 3s 18.8
11 … node:emontx3:rssi REALTIME PHPFINA 447KB 3s -62
15 … Solar_kwh REALTIME PHPFINA 1.8KB 3s 3.81
22 … useL2 REALTIME PHPFINA 1.4KB 3s 1827
23 … use_kwhL2 REALTIME PHPFINA 1.4KB 3s 23.69
24 … use_kwh REALTIME PHPFINA 1.4KB 3s 46.42
25 … useL1 REALTIME PHPFINA 1.3KB 3s 1595
26 … use_kwhL1 REALTIME PHPFINA 1.3KB 3s 22.67
27 … SolarL2 REALTIME PHPFINA 1.2KB 3s 166
29 … use REALTIME PHPFINA 1.1KB 3s 3422
30 … Solar_kwhL2 REALTIME PHPFINA 944B 3s 1.76
32 … Solar_kwhL1 REALTIME PHPFINA 904B 3s 1.7
33 … Solar REALTIME PHPFINA 904B 3s 328
34 … SolarL1 REALTIME PHPFINA 864B 3s 165
35 … Import REALTIME PHPFINA 28B 3s 3101
36 … Import_kwh REALTIME PHPFINA 24B 3s 41.21

EmonCMS Inputs for Node 8:
Node 8
Node: Key Description Process list last updated value
8 1 log kwh 13s ago 1619
8 2 log kwh 13s ago 1846
8 3 13s ago 153
8 4 13s ago 153
8 5 log 13s ago 112.1
8 6 log 13s ago 18.8
8 7 13s ago 300
8 8 13s ago 300
8 9 13s ago 300
8 10 13s ago 300
8 11 13s ago 300
8 12 13s ago 5
8 13 log 13s ago -62
Node 80

Emonbase Inputs:
Inputs
Node Key Name Process list Updated Value
emontx3 power1 Log to feed Power to kWh 8s 1617
emontx3 power2 Log to feed Power to kWh + input Log to feed Power to kWh - input - input Log to feed Power to kWh 8s 1830
emontx3 power3 Log to feed Power to kWh + input Log to feed Power to kWh 8s 137
emontx3 power4 Log to feed Power to kWh 8s 140
emontx3 vrms Log to feed 8s 112
emontx3 temp1 Log to feed 8s 18.8
emontx3 temp2 8s 300
emontx3 temp3 8s 300
emontx3 temp4 8s 300
emontx3 temp5 8s 300
emontx3 temp6 8s 300
emontx3 pulse 8s 5
emontx3 rssi Log to feed 8s -62

From reading the documentation, once I put in inputs and feeds into the emonhub, and put in the read/write api key from emoncms.org account into the emonhub config, I should see the inputs and feeds in the local emonhub reflected in the emoncms.org inputs and feeds.
Why am I not seeing that?
What do I need to do to get them to sync?
They were in sync until I changed the local emonhub inputs. Now some values are being updated, but the process list is still the old process list and the feeds are the old feed names. It seems I am missing something fundamental.

thanks for your help
Rearden.