All nodes Inactive

Just received my Emonpi and started setting it up. I was able to log into the emonpi via IP address. Set location and timezone in account page. When I go to Nodes page all nodes are Inactive. I tried rebooting with CT's plugged in still nothing.

 

Nodes

5: emonPiinactive
9: emonTx_2inactive
10: emonTx_1inactive
19: emonTH_1inactive
20: emonTH_2inactive
21: emonTH_3inactive
22: emonTH_4inactive

API Documentation

Name: emonPi

Node id: 5

Node key: emonPi

Node hardware: emonpi

Node firmware: emonPi_RFM69CW_RF12Demo_DiscreteSampling.ino

 

Rx Variables

Rx ID Name Last updated Value
1 power1 inactive W
2 power2 inactive W
3 pulseCount inactive p
4 Vrms inactive V
5 T1 inactive C
6 T2 inactive C
7 T3 inactive C
8 T4 inactive C
9 T5 inactive C
10 T6 inactive C
Tx ID Name Last updated Value

TrystanLea's picture

Re: All nodes Inactive

Hello Thumperup, Could you take a look at the emonhub log, you can access it from emoncms under the EmonHub menu in the top bar, there's a button there called emonhub.log view. If you click on that and refresh the page a couple of times with the refresh button do you see new entries appear? Could you copy what you see here? I wonder if the issue is being caused by an incorrect time on the emonpi.

Thumperup's picture

Re: All nodes Inactive

2015-05-31 11:21:30,862 INFO     emoncmsorg sending: http://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[]&sentat=1433071290
2015-05-31 11:21:31,235 WARNING  emoncmsorg send failure: wanted 'ok' but got '
Notice: Undefined index: userid in /var/www/emoncms/index.php on line 131
'
2015-05-31 11:21:33,575 DEBUG    RFM2Pi     1659 NEW FRAME : OK 5 0 0 0 0 0 0 97 94 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (-0)
2015-05-31 11:21:33,578 WARNING  RFM2Pi     1659 Scales ['1', '1', '1', '0.01', '0.1', '0.1', '0.1', '0.1', '0.1', '0.1'] for RX data : [0, 0, 0, 0, 0, 0, 97, 94, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] not suitable
2015-05-31 11:21:38,603 DEBUG    RFM2Pi     1660 NEW FRAME : OK 5 0 0 0 0 0 0 155 94 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (-0)
2015-05-31 11:21:38,606 WARNING  RFM2Pi     1660 Scales ['1', '1', '1', '0.01', '0.1', '0.1', '0.1', '0.1', '0.1', '0.1'] for RX data : [0, 0, 0, 0, 0, 0, 155, 94, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] not suitable
2015-05-31 11:21:43,532 DEBUG    RFM2Pi     1661 NEW FRAME : OK 5 0 0 0 0 0 0 223 94 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (-0)
2015-05-31 11:21:43,536 WARNING  RFM2Pi     1661 Scales ['1', '1', '1', '0.01', '0.1', '0.1', '0.1', '0.1', '0.1', '0.1'] for RX data : [0, 0, 0, 0, 0, 0, 223, 94, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] not suitable

[Duplicate post deleted - Moderator (RW)]

hrant's picture

Re: All nodes Inactive

I have the exact same problem.

I believe it has something to do with the latest version.

My system was working fine, and I have data to prove it, on May 30th, I hit the "Update EmonPi" and since then the status is all "Inactive"

I even see that it is communicating with emoncms.org, yet it all shows inactive.

 

2015-06-01 12:00:02,578 INFO     emoncmsorg sending: http://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[]&sentat=1433160002
2015-06-01 12:00:02,905 DEBUG    emoncmsorg acknowledged receipt with 'ok' from http://emoncms.org
2015-06-01 12:00:06,316 DEBUG    RFM2Pi     10833 NEW FRAME : OK 5 5 6 49 0 54 6 240 95 236 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (-0)
2015-06-01 12:00:06,319 WARNING  RFM2Pi     10833 Scales ['1', '1', '1', '0.01', '0.1', '0.1', '0.1', '0.1', '0.1', '0.1'] for RX data : [5, 6, 49, 0, 54, 6, 240, 95, 236, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] not suitable

 

[emonPi.1.50] E i5 g210 @ 433 MHz USA 1

Should I be downgrading?

Any instructions on how to downgrade?

Thanks

 

 

pb66's picture

Re: All nodes Inactive

It looks like the addition of the combined power threw the settings out a bit and has since been corrected

https://github.com/openenergymonitor/emonhub/commit/2a8664a5eef57fba9907d8aee86372cde833455d

but the "updating" is probably configured to not overwrite your settings so any changes will need to be added manually, so you need to add a ",1" on the end of node 5's scales and while you are there, in the "units" line change the "p" for a "W" and add ",p" to the end.

Paul

 

Thumperup's picture

Re: All nodes Inactive

Awesome that fixed my problem for the most part. They still say inactive but they are getting data now.

hrant's picture

Re: All nodes Inactive

Excellent, many thanks Paul.

Just like Thumperup, the fix worked, but the nodes remained inactive.

I applied this fix changes

https://github.com/openenergymonitor/emonhub/commit/0f8ba5ef9c414a204553...

Reboot and all is looking good.

Many thanks for your assistance.

 

Hrant

jstratigos's picture

Re: All nodes Inactive

I just installed the Emonpi and also having same problem with all nodes inactive. It worked out of box with AC and one CT connected but I got nothing but inactive nodes after using the web form firmware update. 

I re-flashed the SD card but now getting new error message:

2015-05-13 12:39:39,747 CRITICAL MainThread Error parsing config file "/home/pi/data/emonhub.conf": Duplicate keyword name at line 106.

 

Any suggestions?

 

Thanks in advance

Jim

 

pb66's picture

Re: All nodes Inactive

Hi Jim.

In emonhub.conf, each entry must have a unique id/name, the error message is telling us it's found a duplicate and therefore cannot proceed.

I suspect the duplication is in the nodes section due to the high line number (106) 

Paul

jstratigos's picture

Re: All nodes Inactive

Paul,

Line 106 is the scales line in the emonhub.conf file. I saw the prior posts on changes to make but when I use the built in editor the changes did not show up in the file when I ssh in and cat the file. I tried to edit it as su but I got a 'read only' error message. Is what I pasted below correct?

Jim

 

[[5]]
    nodename = emonPi
    firmware = emonPi_RFM69CW_RF12Demo_DiscreteSampling.ino
     hardware = emonpi
     [[[rx]]]
     names = power1,power2,pulseCount,Vrms,T1,T2,T3,T4,T5,T6
     datacode = h
     names = power1,power2,power1_plus_power2,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
     units = W,W,p,V,C,C,C,C,C,C

hrant's picture

Re: All nodes Inactive

Hi Jim,

 

Not sure why you can't edit it in browser, but if you want to edit it via ssh, you need to mount your sd in read/write

rpi-rw

when you are done editing, change it back to rpi-ro

Your entries don't look right.

 

Here's what I have (that's working)

[[5]]
    nodename = emonPi
    firmware = emonPi_RFM69CW_RF12Demo_DiscreteSampling.ino
    hardware = emonpi
    [[[rx]]]
        names = power1,power2,power1_plus_power2,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

 

 

pb66's picture

Re: All nodes Inactive

Not quite, the "names = " line appears twice.

The finished node "[[5]]" should be 

[[5]]
nodename = emonPi
firmware = emonPi_RFM69CW_RF12Demo_DiscreteSampling.ino
hardware = emonpi
[[[rx]]]
names = power1,power2,power1_plus_power2,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

Your first "names = " line should be removed and note the absence of "datacode = " as that is replaced by "datacodes = ", the trailing "1" on scales and on units the "p" moved to the end and there is a 3rd "W".

To temporarily lift the read-only status when you ssh in use rpi-rw, But be wary of making changes via 2 methods simaltaniously as neither editor will know about the changes made by the other so the results may not be what you expect dur to overwriting etc

Paul

jstratigos's picture

Re: All nodes Inactive

Bingo! That did it. Not sure why it got in the whole messy loop but its showing power and voltage data.

Now I just need to set the scale for the US 110 volt mains and the 8 VAC I am feeding it. I am also going to try and reuse some larger clamp on CTs I had from a TED energy monitor that never worked very well.

Cheers!

Jim

hrant's picture

Re: All nodes Inactive

JIm,

Glad to hear that you're past that.

Please post your results (succes or failure) when using larger clamps.

I need to address that issues as well, need to settle on what clamps to buy and what burden resistor to set ...

This Post can be very informative:

http://openenergymonitor.org/emon/node/10165

 

 

frlinux's picture

Re: All nodes Inactive

Thanks a lot for this, I had exactly the same problem post upgrade, copy/pasting the section for the EmonPi [[5]] worked for me.

jstratigos's picture

Re: All nodes Inactive

The CTs from the old Energy Detective are voltage output (200A = 3v).

http://www.theenergydetective.com/set-of-current-transformers-cts.html

\I connected a pair in series and then clamped them on the two phase incoming mains wires into my breaker box. DId the same for a secondary breaker box that powers circuits not on a backup generator. I also removed the two burden resistors on the PCB.

Hands down the emonPI beats the old TED 5000 I had. Glad I was able to salvage the CTs.

It seems to be working fine but of course the calibration is off for the CTs and for the 8 VAC transformer I am using. 

How hard is it to change the calibration factors for both inputs?

 

Jim

 

 

Robert Wall's picture

Re: All nodes Inactive

At present, quite hard. See http://openenergymonitor.org/emon/node/10800 starting half a dozen posts down.

shavedgoat's picture

Re: All nodes Inactive

Paul.

 

Fixed my inactive feed problem too. Thanks!

Original line pre edit:

[[5]]
    nodename = emonPi
    firmware = emonPi_RFM69CW_RF12Demo_DiscreteSampling.ino
    hardware = emonpi
    [[[rx]]]
        names = power1,power2,pulseCount,Vrms,T1,T2,T3,T4,T5,T6
        datacode = h
        scales = 1,1,1,0.01,0.1,0.1,0.1,0.1,0.1,0.1
        units = W,W,p,V,C,C,C,C,C,C

 

Thanks for the fix. My power readings are back!

 

 

Dvbit's picture

Re: All nodes Inactive

Hello

I edited the emonhub as per the thread.

This is the section of the EmonHub cut and pasted directly from the browser.

[[5]]
    nodename = emonPi
    firmware = emonPi_RFM69CW_RF12Demo_DiscreteSampling.ino
    hardware = emonpi
    [[[rx]]]
        names = power1,power2,pulseCount,Vrms,T1,T2,T3,T4,T5,T6
        datacode = h
        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

 

seems correct to me.

Node 5 still inactive.

PS: I also have hit the upgrade button (it is  a hilness I cannot resist to upgrade or flash when possible...). I think the node was active before.

 

 

Thanks in advance for help / support

Dvbit's picture

Re: All nodes Inactive

solved using hrant config snippet

 

tx

Patrik Arlos's picture

Re: All nodes Inactive

Hej, could you provide a pointer to that snippet? 

I had a fully operational EmonPi + Tx setup, but as I needed a different username to login I did a factory-reset, and now all nodes are inactive.. :( 

 

BR/Patrik

 

scubammx's picture

Re: All nodes Inactive

hallo dear, i have same problem, i purchased a set emonbase+emontx+emonth after first configuration all the nodes are inactive, i checked the log and return me the same error repeated every few seconds:

2015-11-20 17:51:08,108 DEBUG RFM2Pi Discarding RX frame 'unreliable content'? 101 240 181 96 120 85 40 39 145 68 123 204 108 20 184 129 244 114 185 30 58 (-88)

 

can you help me ? i purchased the full set cause i didnt wanted to waste time at the startup hoping to have a plug and play set but semes i was wrong ....

I am like a baby with the new toy not working ... desperate ! please can you help me ?
 

pb66's picture

Re: All nodes Inactive

@scubammx

Thie example you give isn't the same error. the RFM2Pi's normally run in "quiet mode" which means any garbage that fails the screening is disposed of without output, what you see is the full (noisy?) output and the "?" denotes the frame is garbage, so emonhub recognizes it as such and is logging it as "unreliable content" since the loglevel is debug.

Setting "quietmode = true" in [interfacers] [[RFM2Pi]] [[[runtime_settings]]] will set qiet mode and prevent bad packets from being passed from the rfm2pi.

If your nodes are still in-active provide some more emonhub.log.

Paul

scubammx's picture

Re: All nodes Inactive

dear pb66, thanks and sorry for the late reply i was sick for more than one week , the problem solved itself after do NOTHING , just few times restart of the emonbase.
but the emonbase was still not working in logging, but at the moment i didnt care cause i have urgnetly to have TX and TH working for solving some problrm on my hear pump, so needed some monirring fast ...
Now i purchased 2 new TH but i am not able to geti it working, you can see a new post i made , please help me if possible.

Fred_Bristol's picture

Re: All nodes Inactive

I'm going to work through the preceding thread before posting details, but my recently purchased EmonPi Solar has taken to running for a while, (several days originally, now less than a day) and then stopping with all nodes inactive. Almost as though a stack overflows or memory is full. Very frustrating. I thought it would be a safe bet to buy the fully assembled product.

Another "baby with a broken toy" and not happy, but at present the toy is still in the pram!

(order 11375 08/02/2016)

 

TrystanLea's picture

Re: All nodes Inactive

Hello Fred, sorry to hear! Could you check the system time when it becomes inactive, it should be in emonhub.log which can be viewed from within emoncms running on the emonpi. Can you glean anything else from the logs? emonhub.log or emoncms.log?

glyn.hudson's picture

Re: All nodes Inactive

Please post your emonhub.log and emoncms.log files here, you should be able to view in the EmonHub tab of local Emoncms. 

Fred_Bristol's picture

Re: All nodes Inactive

Thanks for your quick response.

The log files for the all nodes inactive state and when node 5 is active following shut down and power-on restsrt are attached:

Hope it helps.
Whatever has actually happened there was no deliberate intention to alter anything!

Fred

Fred_Bristol's picture

Re: All nodes Inactive

Since I reported all nodes inactive 23/02/2016 my emonPi  has run without problems. However I'm having no success with setting up feeds that work with Emoncms. 

Is there an idiots guide that I'm missing?

Fred

glyn.hudson's picture

Re: All nodes Inactive

Hi Fred, 

Good to hear. Thanks for the logs. The only thing I can see is that your emonPi seems to be having an issue contacting emoncms.org:

emoncmsorg couldn't send to server, HTTPError: 401

Has your emonPi got an internet connection? If you can log in via ssh you can try and ping google:

$ ping -q -c 1 -W 1 google.com

You should see close to 0% packet loss. 

Have you seen the video guide for logging data locally and posting to Emoncms on the emonPi setup page? For posting to emoncms.org you will need to copy your emoncms.org R/W API key and paste it into emonhub.conf

https://openenergymonitor.org/emon/modules/emonpi

​I have just taken a look at your emonhub.conf, I see you have entered an API key, however it seems to be invalid. I cannot post to your account: 

https://emoncms.org/input/post.json?json={power:200}&apikey=a41dd75e28bca145fef2be5da491adc6

​Please check that this is your emoncms.org R/W API key and not your local Emoncms (runnning on your emonPi) API key

 

ChrisValentine's picture

Re: All nodes Inactive

Have just encountered this issue myself with a new emon Pi and emon Tx4. I deliberately didn't buy a wifi dongle with this setup because I know where its going there isn't a wireless network, so it will live on Ethernet. Setting up for the first time its plugged directly into a laptop, but with no Internet connection, the Pi can't get the time from an NTP service. I think the interface should be able to show a warning in these situations. As soon as I take the Pi somewhere else and plug it into a router, it gets the current date/time and presto - all feeds become active.

Incidentally, for this setup I'm powering the Tx from the 5v rail on the Pi.

 

Comment viewing options

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