emonSD next steps

Ok, I’ve made some progress on this.

I’ve split out the install script into separate components and created a config file. The scripts are all here, there are a lot of components! I’ve moved some of packages to the relevant scripts, but there is still a lot loaded at the top. Work in progress of course…
https://github.com/openenergymonitor/emonpi/tree/master/install

main.sh calls the different scripts: https://github.com/openenergymonitor/emonpi/blob/master/install/main.sh

The installation on a stock raspbian stretch image can be started with:

wget https://raw.githubusercontent.com/openenergymonitor/emonpi/master/install/init.sh
sh init.sh

What do you think of the overall concept @borpin? I feel its getting there, I would like to add more installation verification as part of the scripts, the scripts are currently safe to run multiple times but some parts of the install are not checked fully on subsequent runs which I would like to improve on.

The config file is called config.ini (see install folder), it is loaded at the top of each script.

1 Like