Raspberry Pi

Hi, Raspberry Pi (RPi) arrived and I loaded emoncms as described http://openenergymonitor.org/emon/emoncms/installing-ubuntu-debian-pi excellent work guys.

I used standard NanodeRF_multimode sketch and followed instructions/comments in sketch for static IP address, working great on home lan and uploading from emontx via emonbase to emoncms loaded onto RPi on home wifi network see attached topology.

One issue I having is that it won't display dials and graphs using netsurf on my RPi e.g on TV monitor in attached gif. Its working perfect via another laptop with firefox over wifi. Think it must have to do with javascript or other SW in RPi netsurf missing. Anyone else experience this or get it fully working. Firefox not on RPi yet hence using default netsurf. Pleased share experience. I have search www and nothing yet. Cheers Peter

PeterN's picture

Re: Raspberry Pi

Hi, Solution was in standard Wheezy package all along. The default browser is Midori and that works great with emoncms API, dashboard, dials, Realtime, Raw, Bar, multigraph and smoothie.  Assume other API ok but not checked yet.

Cheers & good night

Peter

 

glyn.hudson's picture

Re: Raspberry Pi

Great, good work. Thanks for posting the solution. Glad you got it sorted.

We have recently been working with Martin from http://harizanov.com, he's been developing an expansion board to the Pi to enable it to receive RFM12B communications from the emonTx directly and post to emoncms running locally or remotly. We should have the expansion board in the shop soon. Martin has been blogging about the board (tiny sensor) and the code he has been writing for it on his blog. 

We're excited to try integrate the Pi as an emonBase for the OpenEnergyMonitor system, the extra processing power available should enable developements which improve ease of setup and user experiance. 

PeterN's picture

Re: Raspberry Pi

Hi,

Not having much luck with direct connection over ethernet - home router removed and using static IP address on raspberry pi. Using multimode sketch emonbase see below relevant part:

// 1) Set this to the domain name of your hosted emoncms - leave blank if posting to IP address
char website[] PROGMEM = "";

// or if your posting to a static IP server:
static byte hisip[] = { 192,168,1,188 };

// change to true if you would like the sketch to use hisip
boolean use_hisip = true; 

// 2) If your emoncms install is in a subdirectory add details here i.e "/emoncms3"
char basedir[] = "/emoncms3";

// 3) Set to your account write apikey
char apikey[] = "e04f77f0bc07dfa7eef6ea2affdb613d";
 

I can still plug into home router and it works fine updatng emoncms, once I connect directly its gone. Tried cross over ethernet and still no joy. Any pointers please it would be great to have a working example.

Cheers

Peter

mauzer's picture

Re: Raspberry Pi

Hi Peter,

Do you want to post data from emonBase to Raspberry Pi which are connected directly (without router, hub, switch...)?

PeterN's picture

Re: Raspberry Pi

Hi,

Yes please

mauzer's picture

Re: Raspberry Pi

Is Raspberry Pi able to ping your emonBase when connected directly?

PeterN's picture

Re: Raspberry Pi

No

PING

From 192.168.1.188 icmp_seq=1 Destination Host Unreachable

Arp -a

?(192.168.1.254) at  <incomplete> on eth0

?(192.168.1.4) at <incomplete> on eth0

Other

RPi configured static IP 192.168.1.188 (same IP as it gets on router)

Can plug into laptop and ping both directions ok

With emonbase plugged in (no 'ok received' back from RPi)

DHCP status: 0
Data sent: /emoncms3/api/post.json?apikey=e04f77f0bc07dfa7eef6ea2affdb613d&json={rf_fail:1}
Time request sent
DHCP status: 0
Data sent: /emoncms3/api/post.json?apikey=e04f77f0bc07dfa7eef6ea2affdb613d&node=10&csv=7,9,17,3236
 

 

Comment viewing options

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