No data received?

Installed Emoncms 9.3 via Git on a Raspberry Pi with Raspbian Wheezy. The "Raspberry Pi"-page tells me that "No data has been recieved from the RFM12Pi in the last 30s. Check if the Pi interface script is running, if not you may need to configure cron", 

But the emonhub is running and the log file says things like 

1543 NEW FRAME : OK 20 21 10 (-67) 2016-01-06 14:14:31,742 DEBUG RFM2Pi 1543 Timestamp : 1452086071.73 2016-01-06 14:14:31,745 DEBUG RFM2Pi 1543 From Node : 20 2016-01-06 14:14:31,747 DEBUG RFM2Pi 1543 Values : [2581] 2016-01-06 14:14:31,749 DEBUG RFM2Pi 1543 RSSI : -67 2016-01-06 14:14:31,753 DEBUG RFM2Pi 1543 adding frame to buffer => [1452086071, 20, 2581, -67] 2016-01-06 14:14:31,756 INFO RFM2Pi Publishing: emonhub/rx/20/values 2581 2016-01-06 14:14:31,761 INFO RFM2Pi Publishing: emonhub/rx/20/rssi -67 2016-01-06 14:14:31,766 DEBUG RFM2Pi 1543 adding frame to buffer => [1452086071, 20, 2581, -67] 2016-01-06 14:14:31,768 DEBUG RFM2Pi 1543 Sent to channel' : ToEmonCMS
 

The emoncms.log is empty. What can be wrong?  

Bra1n's picture

Re: No data received?

I thought Emoncms versions after 9 didn't have a "Raspberry Pi"-page, certainly my " 9 RC2 | 2015.09.15" doesn't. Which version is reported at the bottom of the web page ?

TrystanLea's picture

Re: No data received?

The recommended method of connecting the rfmpi to emoncms on the raspberrypi is now with emonhub either posting to the emoncms input module which is probably the easiest one to setup if your building your own system or via the nodes module as used on the raspberrypi image.

See the section at the bottom of the emoncms raspberrypi readme here on installing emonhub: https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/readme.md

pb66's picture

Re: No data received?

The command line used in the emoncms install guide for installing emonhub will not remove the raspberrypi module so you should instead use 

git clone https://github.com/emonhub/dev-emonhub.git ~/dev-emonhub && ~/dev-emonhub/upgrade

This will prevent any chance of the 2 softwares both trying to get exclusive control of the serial port and try off any loose ends.

A better explanation can be found on the "Emonhub installation/update" thread.

Paul

Paul Reed's picture

Re: No data received?

Paul, does the 'emonhub upgrade' link serve both purposes, ie on an old installation will remove the RPi module & install emonhub AND on a fresh install will just install emonhub (if that makes sense!)

I suppose what I am asking is should we replace the existing link in the docs, to the upgrade link to cover both eventualities?

Paul

pb66's picture

Re: No data received?

No I suppose the guide could use the "upgrade" version, I never imagined it being around this long, it was a quick fix at the time and it quite literally just performs a couple of quick "delete if present" checks before calling the "update" script.

My only concern is deleting stuff without the users consent, by choosing the script that "also deletes" they are confirming they want that to happen.

Paul

Comment viewing options

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