Skip to content

roy13/EMON

Repository files navigation

How to setup a raspberrypi running emonhub + emoncms (low write version)

This guide details how to setup a Raspberry Pi emonBase base-station that can be used to forward data to a remote server, record data locally or both.


Technical detail

The low write branch of emoncms is the result of development work into a version of emoncms that has a reduced disk write load with the view of enabling the use of SD cards for long term logging. Its early days yet to know whether this approach will succeed, however monitoring of disk activity shows that the write load on a busy system can be 30 to a several 100 times less with this modified version of emoncms.

Full investigation into improving write performance with write buffering

The build uses the latest version of EmonHub to provide a flexible input stage and ability to forward data to other remote servers. EmonHub is also used to decode the byte data recieved from the rfm12pi adapter board. The result of which is passed to the input interface in emoncms.

System diagram

The writer process writes the feed data to disk step periodically. The writing step involves first reading all the items out of the redis queue placing the individual feed datapoints into individual buffers which are again in memory. Then at the end of this process each block of data accumulated for each feed is written to the disk in a single write operation (per feed)

Releases

No releases published

Packages

No packages published