Hello!
My emoncms is up now, Raspberry script is running (green bar). I also got my Emontx and can see the values transmitted via minicom on the Raspberry.
On the Emontx I used the emonTxCT123.ino sketch (I only modified the group and node id).
How do I get the input into emoncms now? I couldn't find inputs/feeds as described at the end of the Raspberry setup manual.
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
Can you click on the "Input" link at the top of the screen and describe/post a screendump what you see?
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
I don't get any result when klicking on "Input", I've attached a screendump of the browser window.
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
OK,
Having a look at your screendump it would appear that you have either:
1) somehow have a corrupted the php installation.
Or
2) you are running some for of "blocker" add on in Firefox ( such as adblock )
There should be a small dial on the menu bar between the Raspberry Pi and Input (see attached image)
By playing around with blocker apps, if I turn off images & javascript I can replicate what you see. Can you try turning on images and javascript, or try a different browser (e.g. Chrome).
If this isn't the case you have me stumped!
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
I had a similar error last night while setting up a new raspberry pi, no inputs appearing but results in minicom. I could not work out what was causing the problem but it seemed that rebooting the pi solved it.
All I could work out was that it seemed to get stuck on opening a php serial stream in raspberrypi_run.php. It may be a locked port or something.
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
Hello!
I just tried to view it directly on the Raspberry (Midori & Iceweasel Browser), but the little image is still missing. There is no popup blocker installed on the Raspberry's browsers. Where should the picture link to? I can't find any link in the html source of the page between "RaspberryPI" and "Input".
I installed php and the rest like it was written there: http://wiki.openenergymonitor.org/index.php?title=Raspberry_Pi
How can I check if my php installation is working as it should? I also have phpmyadmin installed and it is working fine.
Is it possible to "update" the actual installation of php even if there is no newer version?
I also tried apt-get update and apt-get upgrade, some packets were updated but this also doesn't solve my problem.
Rebooting also doesn't help.
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
Sorry didn't mean to be alarmist! If you followed the instructions all the files should be there, although I'm intreagued as to why you don't see the logo file.
(it's located emoncms/Theme/basic/emoncms-logo.png)
Have you tried Trystan's suggestion of a reboot - he's the expert.Just saw that you'd tried that!Other than that the only suggestion I have left is to look at the web developer plugin to firefox and look at the error console.
You'll see lots of errors related to css files which will say "declaration dropped" , you can ignore them. But within the long list is there anything else?
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
There were lots of this declaration errors, but nothing else that looks interesting.
So back to the beginning. I did the following now:
I deleted the emoncms directory on my raspberry
Reinstall emoncms, but this time i didn't download emoncms and unzipped it. Instead of that I installed github and downloaded/installed emoncms this way.
After that i deleted the old emoncms database and created a new one.
At this point I was able to start emoncms and finally got the little picture in the menu.
Then I downloaded the Module for the Raspberry and got it working.
Now back to the problem of creating inputs:
When I click on Inputs now I get a yellow box (No inputs created), and some text under that box:
To connect up to NanodeRF:
1.) download and openthe NanodeRF_multinode firmware
and so on. The API key listed is the same one as in the database-entry in the raspberrrypi table.
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
This very much looks like PHP not being able to get hold of the serial port.
I'd triple check that section of the installation istructions:
Install serial PHP libraries
$ sudo apt-get install php-pear php5-dev
$ sudo pecl install channel://pecl.php.net/dio-0.0.6
$ sudo nano /etc/php5/cli/php.ini
add extension=dio.so to file in the beginning of the ;Dynamic Extensions; section on line 843 [Ctrl+X] then [y] then [Enter] to save and exit
Restart apache $ sudo /etc/init.d/apache2 restart
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
I've checked this instructions several times, everything looks fine for me, I also tried the complete path for dio.so, but that also doesn't change anything.
Is there a small testscript for php to check if the php extension is working? phpinfo (); doesn't show any information regarding dio.so, or might that be a hint that the extension doesn't work?
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
cd /var/www/emoncms/Modules/raspberrypi/
php raspberrypi_run.php
and share with us the output of that
Also, this thread has accumulated useful experience too: http://openenergymonitor.org/emon/node/1236
Re: Solved: Emoncms - I don't receive data via RFM12Pi?
The output is "Already running". So I think that's as expected.
I also tried to switch off the cronjob and restarted my Raspberry, after that I get the following:
SERIAL RX:> 14i
SERIAL RX:> 8b
SERIAL RX:> 79g
SERIAL RX: 11 0 0 3 0 33 0 164 12
0,3,33,3236
SERIAL RX: 11 0 0 4 0 41 0 164 12
0,4,41,3236
SERIAL RX: 11 0 0 0 0 18 0 164 12
0,0,18,3236
I think that shows that the serial input module of php is working.
By following your link I found this post: http://openenergymonitor.org/emon/node/1236#comment-6917
After running the script I saw that the path at the output wasn't the path I used (I created a subdirectory called "datenerfassung", so my Emoncms is at /var/www/datenerfassung/emoncms/.
So I moved Emoncms back to /var/www/emoncms/ and corrected the line in crontab.
After restarting the Raspberry, it finally works and I get the values in the input tab as expected.
So the source of my problem was that I didn't use the original directory /var/www/emoncms/.
There might be some problems in the import scripts for Raspberry-PI.