projects:open_energy_monitor_unmonastery:raspberry_remote_emoncms_org

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

projects:open_energy_monitor_unmonastery:raspberry_remote_emoncms_org [08/05/2014 19:29] (current)
Mirelsol created
Line 1: Line 1:
 +====== Using the Raspberry to use a remote emonCms server (emoncms.org) ======
 +This is the easiest way to quickly have something working. In this case the Raspberry Pi will act as a gateway.
 +**Here we assume that the Raspberry contains the pre-Loaded Raspberry Pi Base Station Gateway SD card**.
  
 +  * Connect to the [[http://​emoncms.org|emoncms.org server]] and create an account. Once logged in you should see your Read and Write API key. The write API key will be used to connect to the server from the Raspberry gateway.
 +  * Take the Raspberry SD card, connect it to your computer, open the file ///​boot/​oemgateway.conf//​ and make the following changes :
 +    * In the //<​nowiki>​[[RFM2Pi]]</​nowiki>//​ section make sure you have the right frequency for your RFM12b wireless : 4 = 433 MHz / 8 = 868 MHz.
 +    * In the //<​nowiki>​[[emoncms_remote]]</​nowiki>//​ add the write API key you got when you created your account on the emoncms.org server.
 +  * Plug in your SD card into the Raspberry and switch it on.
 +  * Connect over ssh to the Raspberry (password is '​root'​ by default) : <​code>​ssh root@<ip of the raspberry></​code>​
 +    * At this point the Raspberry should start sending the data to the emoncms.org server. If you want to see what is going on, kill the current gateway script and run it manually : <​code>​
 +ps -ef|grep python</​code>​Get the process number corresponding to this command : //python /​root/​oem_gateway/​oemgateway.py --config-file /​boot/​oemgateway.conf//​ and kill it : <​code>​kill -9 <process number></​code>​Run the script manually : <​code>​python /​root/​oem_gateway/​oemgateway.py --config-file /​boot/​oemgateway.conf</​code>​In the terminal you should see the data being transmitted.
/var/www/tech_mirelsol/data/pages/projects/open_energy_monitor_unmonastery/raspberry_remote_emoncms_org.txt · Last modified: 08/05/2014 19:29 by Mirelsol