I’ve converted most of the remaining steps I had listed as manual to automated commands, mostly using sed to change setting files:
https://github.com/emoncms/usefulscripts/blob/master/emonSD_build_test.sh
Testing on a fresh image, completes to a working install.
I will look at the emoncms modules currently in the home folder next. I will test with /usr/emoncms/modules to start with and make it configurable so that we can change the naming as we see fit.
I would like to make use of the code recently written for the emonpi update for the installation and update of emoncms modules and services. I think that code could be broken out and made more modular.
https://github.com/openenergymonitor/emonpi/blob/master/emoncmsupdate
I have a number of other things to attend to today, so it will likely be tomorrow or friday before this progresses much further.