Not able to see any graph with emoncms

Hi,

 

I created my first input and feed into emoncms.

In the inputs tab, it shows correct "value" and "last updated" is well updating every 1min.

I created an associated feeds.

From the input tab (log button) or from the vis tab, I cannot get any graph to be displayed. It shows the graph button but no axis and no curve at all.

I am running the server on a Pi so may-be there is a mistake there??

 

Any hint welcome :)

dkeach's picture

Re: Not able to see any graph with emoncms

If you select the D button does the graph show?

darrepac's picture

Re: Not able to see any graph with emoncms

no, nothing :(

darrepac's picture

Re: Not able to see any graph with emoncms

I am using Chrome but it doesn't work either on Firefox

darrepac's picture

Re: Not able to see any graph with emoncms

I see the current value but no graph, so I am wondering if mysql is well stocking the input/feeds.

Where can I check that? I installed phpmyadmin but I don't know where to search

darrepac's picture

Re: Not able to see any graph with emoncms

With pictures...

 

My input seems ok:

But if I click on log, the graph display nothing.

 

The corresponding feed seems ok:

But if I click on the eye icon, the graph display nothing.

Then on the Vis tab, I have nothing:

and finally, here is the feeds table in mysql (seems void?):

 

Hope someone can help me...

 

Paul Reed's picture

Re: Not able to see any graph with emoncms

It may be worthwhile ruling out any problems with your input first.
Firstly I would post some fresh data to emoncms, by calling the following from your browser (presuming your are logged into emoncms and you are on the same network)

http://192.168.1.72/emoncms/input/post.json?node=6&csv=100

Obviously you will need to change the IP address to that of your installation, but that will create a new node (6) and provide an input value (100).
Create a test feed from this input, and then continue to post some data over a few minutes by repeating the above command  several times - changing the input value if you wish.

Once you have a few minutes worth of data posted, go to the 'eye' icon against the test feed, which will open up the graph, click D and look at the current time to see the data that you have posted, zooming in if necessary.

If you can see the data in the graph, then the issue is with your input data format and not emoncms.

Paul

darrepac's picture

Re: Not able to see any graph with emoncms

Thanks for your hint.

Here is how I feed values to my input (1 value each minute since more than 1 day):

http://192.168.0.19/emoncms/input/post.json?json={temponly:" . $emon . "}&MY_API_KEY";

$emon is the temperature, for example 22 (I checked with an echo $emon to be sure)

As the dial in the dashboard is displaying this value correctly, I am presuming that the issue is not in the input... Am I correct?

But I am going to give a try with your test

darrepac's picture

Re: Not able to see any graph with emoncms

But I am going to give a try with your test

=> done and with the same result: no graph!

Paul Reed's picture

Re: Not able to see any graph with emoncms

Is Timestore running OK?

$ sudo /etc/init.d/timestore status

 

darrepac's picture

Re: Not able to see any graph with emoncms

Good point:

"Timestore is not running"!!

let's start it

$sudo /etc/init.d/timestore start

Starting timestore
Using existing adminkey
/root/timestore/src/./timestore -a

$sudo /etc/init.d/timestore status

timestore is not running

 

What is wrong?

 

Paul Reed's picture

Re: Not able to see any graph with emoncms

You could check if the Timestore admin key matches with your installation

$ cat /var/lib/timestore/adminkey.txt

...and compare it with the entry in 

$ sudo nano /var/www/emoncms/settings.php

 

Paul

darrepac's picture

Re: Not able to see any graph with emoncms

cat /data/timestore/adminkey.txt is the same than the one in emoncms settings.php

darrepac's picture

Re: Not able to see any graph with emoncms

I don't see any log file in timestore directory which could help me...

darrepac's picture

Re: Not able to see any graph with emoncms

Ok

First of all the DIRECTORY was set for /root while timestore was installed in /home/pi

=> I changed and it still doesn't want to start

I change the timestore script in init.d in order to add the "-d" option to see any error message. I run the script and I have the following error message:

/home/pi/timestore/src/./timestore -a -d
20140207-19:31:30:CRITICAL:http.c(405): Couldn't start http daemon

 

Any idea about this error?

 

Paul Reed's picture

Re: Not able to see any graph with emoncms

No idea on that error, but Trystan has made comments about it here.

How did you install emoncms? Did you use an image file, build from scratch or a pre-loaded card?
 
Paul

 

 

darrepac's picture

Re: Not able to see any graph with emoncms

I mostly follow the fulstackAPI setup except that I didn't want to have the IPE linux neither external HDD (trying to use my NAS instead). Basically, my Pi is supposed to run other software / script and so I want to stay with (near) standard setup (so no IPE) and I was thinking that it was better to build the system from my hands than from a ready-to-go image. Not the least, it was not clear to me if the ready-to-go image for Raspberry+HDD was using latest development (redis + timestore)...

All in all, I tried by myself but it seems that I failed ;)

 

I tried to debug my error with timestore. I increase the verbose level option and see that there was an error when starting webserver at 8080. Why timestore as a webserver?? I am using domoticz software that is already using 8080 port.

So I said to timestore to use port 90 (random) and now it starts without making an error. But I still have no graph :(

vfnewman's picture

Re: Not able to see any graph with emoncms

Are you trying to view the graph from a machine outside your local network?

If so, please look at this post and see if this might be your problem:

 

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

xz81's picture

Re: Not able to see any graph with emoncms

@darrepac: how do you change the timestore port?. I am experiencing a similar problem with my raspberry

 

Comment viewing options

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