Logging feeds to local and remote emoncms servers

I have a working local emoncms logging feeds from an emontx v3 using the raspberrypi and harddrive.  I like the idea of having a local copy, but I was also considering logging the feeds remotely as well.  This provides two purposes - first I can view the data when outsite the firewall (without opening my home firewall for exampe - port 80 is likely blocked anyway), and second, I can have some redundancy in the data (lost a hard drive once already).  Is this reasonable?  Also, can someone comment on the load if any this puts on a network?  For the remote emoncms, I don't necessarily need realtime data.  I wouldn't be opposed to simple syncing data once every hour.  Is this possibe?

Input is appreciated!

pb66's picture

Re: Logging feeds to local and remote emoncms servers

You haven't said what software you are using on the Pi to pass data to emoncms. But yes it's do'able.

If using one of the emoncms module's you can only forward the RFM2Pi data using the raspberrypi settings page.

if using emonhub or OEM gateway you can just duplicate your existing emoncms settings in the conf and change the name, url and apikey to post a complete second set of data.

If you wish to reduce data usage and are using emonhub you can also set an interval eg "interval = 3600" to post once per hour. 

Although I can't put a figure on it I don't think the additional traffic is a concern unless you have many nodes updating frequently or you are paying by the byte on a mobile data package. Of course it will depend on the size and frequency of your data packets.

See http://openenergymonitor.org/emon/node/5766#comment-25666 for an example.

Paul

 

sbeausol's picture

Re: Logging feeds to local and remote emoncms servers

I am using emonhub.  So I simply need to add a section like this to the conf file and I'm good to go?

#######################################################################
#######################        Reporters        #######################
#######################################################################
[reporters]

# This reporter sends data to emonCMS
[[emonCMS]]
    Type = EmonHubEmoncmsReporter
    [[[init_settings]]]
    [[[runtimesettings]]]
        url = http://localhost/emoncms
        apikey = xxx

 

[[emonCMS]]
    Type = EmonHubEmoncmsReporter
    [[[init_settings]]]
    [[[runtimesettings]]]
        url = http://xxx.com/emoncms
        apikey = xxx

[Duplicate post deleted by moderator - RW]

pb66's picture

Re: Logging feeds to local and remote emoncms servers

Yes, except they must have unique names so you should change at least one of them eg [[emonCMS2]] or you can give them both specific names eg [[emoncms_local]] and [[emoncms_remote]] or [[cms_local]] and [[cms_remote]] etc 

Paul

Comment viewing options

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