Hosting emoncms on Pi with a twist

I would like to run emoncms on my Pi with hdd. I think the instructions to do this are clear enough.

However, due to the size of the property and outbuildings, I currently have 2 Pi's on one lan, both logging to emoncms.org using the same API, which seems ok. Question is, can I run emoncms on one Pi, and import the data from another somehow? Idiots guide necessary, as I am not good with this!

pb66's picture

Re: Hosting emoncms on Pi with a twist

This is totally possible. emonhub is intended to work as one of any number of hubs that can report to any number of servers, the fact that one of those servers co-exists on the same machine as one of the hubs is of no consequence.

The Pi with the hdd and emoncms server installed could be referred to as a "master" and the other pi without an hdd could be configured with a read-only OS to forward only and be referred to as a "slave".

Both would have 2 reporters configured, one of those reporters would be identical on both machines, same apikey and a url for emoncms.org. The second reporter in each would share the same apikey for the local emoncms server installed to the "Master Pi", the url could/would differ though depending on how your network is configured. the url will need to reflect the "localhost" address in the "Master pi" settings and in the "slave pi" the url would be the LAN address of the "Master pi", either the ip address if you use fixed ip's or the network name if supported.

Paul  

Comment viewing options

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