emonSD next steps

I thought I would make a start on a build script, it is not yet complete but it does get all the way to a working emonbase setup (after completing a few manual steps described at the end of the script), with:

  • emoncms,
  • emonhub reading from an rfmpi,
  • emoncms_mqtt, feedwriter, service-runner
  • associated dependencies for the above

https://github.com/emoncms/usefulscripts/blob/master/emonSD_build_test.sh

Its based on the raspberrypi emoncms instructions here (and associated pages e.g mqtt & low write readme but without the read only partition):

https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/readme.md
and
https://github.com/openenergymonitor/emonpi/blob/master/docs/SD-card-build.md

I’ve also updated and fixed a couple of things in the emoncms repo raspberrypi guides as I have been going along. It made it clear that the reference to the old image build guide and differing configuration from emonSD is confusing.

I can also see the oppertunity for thinking about script and documentation locations. Should they be in the emonpi repo or emoncms repo, or usefulscripts or perhaps somewhere else…

Im not fixing what the file paths should be etc at this stage, e.g emonhub.conf location, it should probably be /etc/emonhub/emonhub.conf but I have it as /home/pi/data/emonhub.conf as that’s the current service path location.

I’m open to input on all of that. Let me know what you think.