Scheduled upload to Emoncms.org?

Is it possible to send a bunch of data to Emoncms in one update or burst, aka only do one update every hour or 6 hours?  Like a cronjob that updates Emoncms instead of immediate updates?

 

Use Case:

I have a vacation home on a lake that does not have an internet connection.  I do have a USB mobile hotspot that I can use with a Raspberry Pi.  What I would like to do is schedule it to connect every 6 - 12 hours, and push all of the updates during that period.

Purpose: 

The house is in a cold region, and does have water / power on at all times.  I would like to monitor energy consumption over time, as well as alert on any major temperature shifts. 

Setup:

  • EnomPi Base Station
  • emonTx V3
  • (2) emonTh V1.4
pb66's picture

Re: Scheduled upload to Emoncms.org?

That's quite an uncommon request so there isn't really a pre-prepared solution, although I personally think there would be a demand for it. 

I have helped a couple of other users with similar "no network" scenarios but they have opted for collecting data locally and then manually fetching the data using a data-stick or similar, there have also been users that have used a mobile data dongle to post minimised data but at a more frequent interval, so there will be some useful info buried in the forum if you search,

Something that may help you achieve what you want is the buffering feature in emonhub, the buffer size is user defined as is the send interval. My own emonhub will buffer up to a weeks data, and a 24hr buffer wouldn't make a dent in the 1gb ram of the emonPi. using this buffering feature you could tackle this relatively easily in 1 of 2 ways, niether is over elegant but both would do the job. 1)  leave your dongle connected (accessible) 24/7 and prevent anything else using it, set emonhub to send every n hours (set in seconds ie 7200 = 2hrs) or 2) just let emonhub keep trying to send every n secs/mins but only allow access to the dongle at certain times so emonhub would just keep accumulating data until the connection is successful and then offloads the buffers.

I have suggested this method to another user that had a remote greenhouse with a monitor, he visited the greenhouse daily so it was possible to configure emonhub to accumulate data and whenever he visited he just needed to have tethering active on his mobile phone and the Pi could connect by wifi and off load the buffered data.

however you say you have an emonPi, so I assume you are using the "emonPi image" which includes a "emon-pi" variant of emonhub and the buffering has been removed from that version so you would need to look at a custom image to use buffering.

So it should totally be possible if you're happy to roll your sleeves up and make some changes etc.

There has also been discussions on using CoAP or MQTT as the overheads are so much smaller allowing more frequent posting without massive data use, this would probally serve better if using the data for alerts.

Paul

Comment viewing options

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