forward data to emoncms.org

Hi

I have problems to forward the collected data from emoncms on my local pi to emoncms.org.

What I did so far:

1) I made an account at emoncms.org

2) In the Input tab I clicked on Input API Help and copied the read & write Apikey

3) I pasted this key on my local pi in the emoncms raspberry pi tab

4) I got a  Authentication successful!

But, I can't see any  inputs/feeds on my  emoncms.org account. What am I doing wrong?

thanks for your help

 

Jérôme's picture

Re: forward data to emoncms.org

Do you have a gateway script running ? Either raspberry_run.php or rfm2pi_gateway.py. See readme for installation procedure.

You should have a message in the local rapsberry pi tab telling you whether or not a script is running.

dominic scherer's picture

Re: forward data to emoncms.org

yes, the script is running. It says

RFM12 to Pi interface script is up and running.

But no inputs are forwarded to emoncms.org

 

Jérôme's picture

Re: forward data to emoncms.org

Which script are your running ?

Did you pay a look at the logs ? (See readme.)

E-Mike's picture

Re: forward data to emoncms.org

I'm not sure if this will be the same for you, but after entering the read & write api into the raspberry pi tab on the local emoncms i logged into SSH and typed:

 

*****EDIT***** Please make sure you change directory first by "cd /var/www/emoncms/Modules/raspberrypi"

the username and password for ssh is user: pi pass: raspberry

pi@emoncmspi /var/www/emoncms/Modules/raspberrypi $ sudo service rfm12piphp stop

Stopping RPI: stopped
pi@emoncmspi /var/www/emoncms/Modules/raspberrypi $ php raspberrypi_run.php
Remote upload enabled - details correct
DATA RX: 10 14 1 190 1 189 7 72 1 0 0
MESSAGE RX:> 15i
BASEID SET CORRECTLY
DATA RX:
MESSAGE RX:> 8b
FREQUENCY SET CORRECTLY
DATA RX:
MESSAGE RX:> 210g
GROUP SET CORRECTLY
DATA RX:
DATA RX: 10 28 1 199 1 189 7 97 1 1 0
DATA RX: 10 28 1 201 1 189 7 97 1 0 0
DATA RX: 10 29 1 195 1 189 7 47 1 1 0
DATA RX: 10 27 1 193 1 189 7 50 1 1 0
DATA RX: 10 28 1 198 1 189 7 50 1 0 0
Sending remote dataDATA RX: 10 27 1 194 1 189 7 60 1 1 0
DATA RX: 10 27 1 193 1 189 7 60 1 0 0
DATA RX: 10 26 1 194 1 189 7 52 1 1 0
DATA RX: 10 26 1 194 1 189 7 52 1 0 0
DATA RX: 10 178 0 222 0 189 7 49 1 1 0
^C
pi@emoncmspi /var/www/emoncms/Modules/raspberrypi $ sudo service rfm12piphp start
Starting RPI
pi@emoncmspi /var/www/emoncms/Modules/raspberrypi $ sudo reboot

 

It wouldnt work at first no matter what i did, i even tried changing the remotesend option to 1 in the database but it failed.

 

Typing these commands seemed to give it a kickstart, is this possibly a bug?

 

Regards

Mike

dominic scherer's picture

Re: forward data to emoncms.org

Hey Mike thank you so much. 

I followed your advice, logged on the pi and

1) pi@emoncmspi /var/www/emoncms/Modules/raspberrypi $ sudo service rfm12piphp stop 

2) pi@emoncmspi /var/www/emoncms/Modules/raspberrypi $ php raspberrypi_run.php

3 )pi@emoncmspi /var/www/emoncms/Modules/raspberrypi $ sudo service rfm12piphp start

and I got my data to emoncms.org straight away! After rebooting it was the same problem as before, no incoming 

data to emoncms.org. So just stopping the service and restarting it without a reboot is a good solution for me.

 

regards 

Dominic

 

 

Comment viewing options

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