No inputs

I am trying to set up my emoncms inputs, but the input screen stays blank.

even when I try the method on the http://emoncms.org/site/docs/inputsandfeeds page.

my emontx is sending data to the raspberry pi (I can follow in the arduino logger) and when i execute the debug command on the raspberry pi, I also get the url with the values.

 

Am I missing something in the settings?

On the forum I read something about NetworkGroup? but I cant find that setting anywhere

 

thanks in advance,

ukmoose's picture

Re: No inputs

The network group is explained here in detail here http://openenergymonitor.org/emon/buildingblocks/rfm12b2

But the important part is in the  SUMMARY

  • All units must use the same frequency
  • All units must use the same networkGroup
  • Each unit must have its own Node_ID

As you say you can see the data on the raspberry pi it is unlikely to be this as data is being received.

My guess is that you have missed out your APIKEY.

The page you linked to is a little unhelpful as it doesn't include your API key to tell emoncms.org that the data is coming from you.

If you log into emoncms.org, click on Input and then "Input API help" will take you to the page I think you need.

At the top of the page will be a long unique string of letters & numbers.

As you are writing to emoncms you need the Read&Write one.

if you then follow the method on the web page to include the API key in your web browser

http://emoncms.org/input/post.json?node=1&csv=100,200,300&apikey=<YOUR LONG API KEY GOES HERE>

This should then post data that you will be able to see if you log into emoncms.org.

 

If this is the case, you need to add your API key into the right file on your raspberry pi.  How to do that is explained here.

http://emoncms.org/site/docs/raspberrypigateway

 

 

 

 

borpin123's picture

Re: No inputs

Assuming default firmware then check the Rpi page on Emoncms and the Network Group is set to 210 and the frequency selected is correct.  On install mine was 1 :(

davime's picture

Re: No inputs

both thx for the input, i'm reading thru the frm12B information now,

when I look at my emoncms page (i'm hosting it locally), i don't have a rpi page, This is probably related with the same connection problem of the inputs?

davime's picture

Re: No inputs

I've checked the networkgroup and frequency and they both match,

when I look at my raspberry pi, it also gives me the DEBUG send OK

 

I've checked the api key, and it matches the one in emoncms

 

I've also tried the test method from the guide,

This page shows all the input API options that exist and is the location of the most up to date input API documentation. Click on the http://emoncms.org/input/post.json?node=1&csv=100,200,300 example link and select open in new tab to create some example inputs assigned to node id 1.

Navigate back to the inputs page and you should see three inputs:

 

but this also doesn't give me any inputs.

 

I'm runing emoncms v6.9 on a windows server 2012 with apache

Robert Wall's picture

Re: No inputs

Two things to look at: append your APIkey to the test link "&apikey=......", and check your .htaccess and mod-rewrite etc. There's a dependency in WAMP (see the WAMP installation notes for emonCMS) - I've no idea whether Windows server is the same though.

ukmoose's picture

Re: No inputs

Can you go to http://192.168.1.150/emoncms

log in, click on input and post a picture of the screen?

 

davime's picture

Re: No inputs

I've tested the mod_rewrite and that seems to be ok, also when I post a link from my raspberry pi, it gives me a respond of 'ok' in the browser

ex: http://192.168.1.150/emoncms/input/post.json?apikey=8b283170a2828e37844f3eab6fb08cef&node=10&json={1:33,2:0,3:0,4:0,5:0,6:138}

 

I've attached a screen of the input screen.

 

Another thing I did, because I was getting a tcp socket error in the graphiteTimeseries.php, so I added a host and port hard coded. 

 

I'm using a single install of apache, php and mysql, not the wamp installation that is mentioned in the guide (it didn't work for server 2012), but gettext and mod_rewrite are set like told in the guide

borpin123's picture

Re: No inputs

Just one query, which RPi image are you using?  The forwarder I assume but that is an assumption (and I hate those.....).

davime's picture

Re: No inputs

I'm using the oem_gateway22oct2013.img image

I'm looking to test the gettext, so I can be certain that those 2 functions work correctly

ukmoose's picture

Re: No inputs

It would appear to be a problem with your emoncms install as the URL is correct and the server appears to acknowledge receipt.  

You also appear to be missing an icon on the menu at the top of the screenshot.

Can you look at the php error file?

If you don't know where it is stored you can find a link from within the php.ini file you edited.

 

what you could do as an interim measure is modify the script on the RaspberryPi to send the data to emoncms.org (having setup an account), so at least you are collecting the data. 

 

davime's picture

Re: No inputs

thx ukmoose for the tips,

I created an account on emoncms, and that works :)

but now, when I pull out the uart and connect my emontx with an ac adapter, it stops sending data to emoncms.org. Am I forgetting something? I just upload the sketch via the arduino program.

Another problem is, that my power 1, 2 and 3 values are empty. I'm using the 3phase sketch. I modified it a little bit so the temperature is also send to emoncms and that works. I've attached an image of the feed in arduino.

 

Now I have to figured out what the problem was of my local emoncms server. Can it be that the error can be related to the message i got on my input page (something with tcp:// and the host and port that are empty). I hard coded the host and port in the graphitetimeseries.php and the error was gone, but it has probably something else i have to fix instead of hard coding it

 

Comment viewing options

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