emonhub receiving data from emonTX v3.4 but no Inputs in local emoncms

Hi all,

I have just setup an emontx v3.4 with the default (as shipped) sketch and I have 2 CT's attached CT1 and CT4 (high sensitivity) and nothing else at the moment.

From emonhub.log the version is:

2015-08-10 16:26:57,802 INFO EmonHub Pre-Release Development Version (rc1.2)

Also from emonhub.log I see lots like the following which all looks good to me:

2015-08-10 17:06:04,551 INFO emonCMS sending: http://localhost/emoncms/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1439222764.42,10,-217,0,0,0,24806,0,-52]]&sentat=1439222764
2015-08-10 17:06:04,812 DEBUG emonCMS acknowledged receipt with 'ok' from http://localhost/emoncms
2015-08-10 17:06:15,315 DEBUG 162 NEW FRAME : 1439222775.32 OK 10 41 255 0 0 0 0 0 0 242 96 0 0 (-53)
2015-08-10 17:06:15,317 DEBUG 162 Timestamp : 1439222775.32
2015-08-10 17:06:15,318 DEBUG 162      Node : 10
2015-08-10 17:06:15,319 DEBUG 162    Values : [-215, 0, 0, 0, 24818, 0]
2015-08-10 17:06:15,320 DEBUG 162      RSSI : -53
2015-08-10 17:06:15,338 DEBUG 162 Append to 'emonCMS' buffer => time: 1439222775.32, data: [10, -215, 0, 0, 0, 24818, 0, -53], ref: 162
2015-08-10 17:06:15,440 INFO emonCMS sending: http://localhost/emoncms/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1439222775.32,10,-215,0,0,0,24818,0,-53]]&sentat=1439222775
2015-08-10 17:06:15,637 DEBUG emonCMS acknowledged receipt with 'ok' from http://localhost/emoncms
2015-08-10 17:06:26,188 DEBUG 163 NEW FRAME : 1439222786.19 OK 10 40 255 0 0 0 0 0 0 212 96 0 0 (-53)
2015-08-10 17:06:26,190 DEBUG 163 Timestamp : 1439222786.19
2015-08-10 17:06:26,191 DEBUG 163      Node : 10
2015-08-10 17:06:26,192 DEBUG 163    Values : [-216, 0, 0, 0, 24788, 0]
2015-08-10 17:06:26,193 DEBUG 163      RSSI : -53
2015-08-10 17:06:26,264 DEBUG 163 Append to 'emonCMS' buffer => time: 1439222786.19, data: [10, -216, 0, 0, 0, 24788, 0, -53], ref: 163
2015-08-10 17:06:26,366 INFO emonCMS sending: http://localhost/emoncms/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1439222786.19,10,-216,0,0,0,24788,0,-53]]&sentat=1439222786
2015-08-10 17:06:26,593 DEBUG emonCMS acknowledged receipt with 'ok' from http://localhost/emoncms
2015-08-10 17:06:37,081 DEBUG 164 NEW FRAME : 1439222797.08 OK 10 38 255 0 0 0 0 0 0 200 96 0 0 (-52)
2015-08-10 17:06:37,084 DEBUG 164 Timestamp : 1439222797.08
2015-08-10 17:06:37,085 DEBUG 164      Node : 10
2015-08-10 17:06:37,085 DEBUG 164    Values : [-218, 0, 0, 0, 24776, 0]
2015-08-10 17:06:37,086 DEBUG 164      RSSI : -52
2015-08-10 17:06:37,120 DEBUG 164 Append to 'emonCMS' buffer => time: 1439222797.08, data: [10, -218, 0, 0, 0, 24776, 0, -52], ref: 164
2015-08-10 17:06:37,222 INFO emonCMS sending: http://localhost/emoncms/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1439222797.08,10,-218,0,0,0,24776,0,-52]]&sentat=1439222797
2015-08-10 17:06:37,433 DEBUG emonCMS acknowledged receipt with 'ok' from http://localhost/emoncms
2015-08-10 17:06:47,796 DEBUG 165 NEW FRAME : 1439222807.8 OK 10 38 255 0 0 0 0 0 0 216 96 0 0 (-53)
2015-08-10 17:06:47,798 DEBUG 165 Timestamp : 1439222807.8
2015-08-10 17:06:47,799 DEBUG 165      Node : 10
2015-08-10 17:06:47,800 DEBUG 165    Values : [-218, 0, 0, 0, 24792, 0]
2015-08-10 17:06:47,801 DEBUG 165      RSSI : -53
2015-08-10 17:06:47,861 DEBUG 165 Append to 'emonCMS' buffer => time: 1439222807.8, data: [10, -218, 0, 0, 0, 24792, 0, -53], ref: 165
2015-08-10 17:06:47,963 INFO emonCMS sending: http://localhost/emoncms/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1439222807.8,10,-218,0,0,0,24792,0,-53]]&sentat=1439222807
2015-08-10 17:06:48,165 DEBUG emonCMS acknowledged receipt with 'ok' from http://localhost/emoncms

However when I go to the Inputs page for my local emoncms it is empty.

Emonhub & emoncms are running on a Raspberry Pi 2 and booting from a local hard-drive. Emoncms reports its version as "Powered by openenergymonitor.org | XT 8.5.2 | 2015.07.06"

Any suggestions as to what I should look at next? I can't find an emoncms.log file, does that have to be enabled separately, if so how?

 

Thanks,

BraileTrail

BraileTrail's picture

Re: emonhub receiving data from emonTX v3.4 but no Inputs in local emoncms

Well I made some progress, I switched to using the main v8.5 branch in git and now I'm using emoncms "8.5.2 | 2015.07.20" and all the feeds were visible. Had to switch the orientation of the CT on the lines because of negative values, but I'm capturing data now.

I guess there is something I missed using the extended branch? Maybe installing an extra module or two? Maybe Nodes? Don't know.

 

Thanks,

BraileTrail

pb66's picture

Re: emonhub receiving data from emonTX v3.4 but no Inputs in local emoncms

Hi BraileTrail, I does indeed look like everything's in order. The frames are being processed correctly, the urls seem correct (assuming the read & write apikey is correct) and the "ok" response usually means the data was successfully deposited into emoncms, the "ok" is the actual response from emoncms rather than emonhub interpreting the response as ok so I suspect the issue is in emoncms.

Not a problem I can recall seeing before so maybe related to recent changes perhaps. Have you tried using one of the input api examples to see if any nodes can be created?

The emoncms logging as always been a little elusive so I can't help you there, but you may get useful debugging info if you cut and paste a url from the log into a browser with the "dev tools" enabled, (you will need to manually replace the "E-M-O-N-C-M-S-A-P-I-K-E-Y") 

Paul

pb66's picture

Re: emonhub receiving data from emonTX v3.4 but no Inputs in local emoncms

Another suggestion is to try switching to the "extended" branch there are some unfixed/documented bugs in v8.5.2, My bad, I got a little confused with the versions there for a while and thought you were on the "XT" branch when I read v8.5.2 (as opposed to v8.5) what I should of been looking for "v8.5.2 XT" as they are both v8.5.2 now.

Paul

BraileTrail's picture

Re: emonhub receiving data from emonTX v3.4 but no Inputs in local emoncms

Hi Paul,

I think you read that right. I was on the extended branch (reports version as "XT 8.5.2 | 2015.07.06") when I posted originally and was having the problem.

I switched to the v8.5 branch (reports version as "8.5.2 | 2015.07.20") and now things are working correctly, I've been logging data for a couple of days now. :)

I would like to get on to the extended branch though because of some of the bugs I've read about on the forum.

Thanks,
BraileTrail

pb66's picture

Re: emonhub receiving data from emonTX v3.4 but no Inputs in local emoncms

Did you create a new "Extended" version of settings.php ? there are a couple of additions in there and "active" feed engines need to be "commented out" so as NOT to hide them in the "hidden engines" setting.

Did you also use "check and update" in admin and reselect your timezone ?

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.