I am a new member of this forum and I wanted to congratulate all.
I followed the manual for the installation of Emoncms on windows 64 bit.
When I try to import an input with "API Help" (i.e. http://localhost/emoncms/input/post.json?json={power:200}) the value is always 0.0.
Can anyone explain to me why?
Thanks
Silvano
version software:
Apache 2.4.4
PHP 5.4.12
MySQL 5.6.12
Re: Input trouble on Windows
Include your APIkey in the command, as in the example a little way down the Input API Help page.
Re: Input trouble on Windows
Even with APIkey command does not work properly:
http://localhost/emoncms/input/post.json?json={power:333}&apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
List of input is:
[{"id":"41","userid":"1","name":"power","description":"","nodeid":"0","processList":null,"time":null,"value":null,"record":"0"}]
Re: Input trouble on Windows
What happens when you log the input to a feed? Does it then appear in the Feeds list? With the correct value?
Re: Input trouble on Windows
When I import an Input on Emoncms I see 'ok' printed to the screen. (http://localhost/emoncms/input/post.json?json={power:200}).
I log the input to a feed and appear in the Feed list with the wrong value (0.0 instead 200):
input_image
Re: Input trouble on Windows
The screenshots...
Re: Input trouble on Windows
You needed to tick "List" to make the screenshots visible.
No data is stored in the Input table, data is only stored in the Feeds tables. Everything appears to be correct, you are not getting the error messages which I would expect to see if it was a Windows permissions problem, but it appears that the data is not reaching the feed table. I cannot work out what is happening there. Maybe a silly question: you have sent any data from your browser after you set up the feed?
Re: Input trouble on Windows
No, i haven't send anything.
Is correct that in the list of input i see value=null?
you are right to make me silly question because i think the problem is that i am a very beginner...
Re: Input trouble on Windows
We were all beginners once! Now that you have the input logging to a feed, if you send the line:
http://localhost/emoncms/input/post.json?json={power:333}&apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
every 5 s a few times, you should see on the feeds page the value (333) and the time since the last update was received. This is updated every 5 s.
With the present version of emonCMS, you do not see anything useful on the Input page.:
NOTHING!
But logging this to a Feed:
The last received value came in 24 s ago, it was 220.
Re: Input trouble on Windows
Dont' work.
Steb by step i have done:
1)import an input with http://localhost/emoncms/input/post.json? json=power:200}&apikey=693b91fe5a10b4f9e8d96320b747edba
2)create a feed
3)when i try to send the command every 5 s a few times i receive one error (see attached image 5.gif)
any ideas??
Re: Input trouble on Windows
That error (5.GIF) tells you it can't find a Curl function that it needs. I haven't installed Timestore on my WAMP yet, however a search on Google for "undefined function curl_init()" shows up a lot of related information that should help.
Re: Input trouble on Windows
Thanks a lot!