Hi all,
I’ve finally stopped tinkering with my live EmonPi and am setting up an EmonCMS install on an Ubuntu VM.
I’ve submitted a PR (Install script fixes and documentation tweaks by CDuffers · Pull Request #123 · openenergymonitor/EmonScripts · GitHub) to change the install scripts to use Python3 (in alignment with the update script) and also a tweak to the docs as I had been lazy when following the instructions and ended up wasting a whole load of time by not setting pi=0, hence hope to make it easier for the first time Linux installers.
After the install I imported the data from a backup and noticed a message stating “old image”, the backup came from an EmonPi with the 2019 SD install image, hence looked through the code further and found the following code which would naturally fail to give appropriate responses on a non SD image build:
I then looked through the rest of the script and found the only reference to image_versions and image_date were commented out:
It looks like this code is no longer required and could be removed. I’ve looked through all the other files within the module and cannot find any references to it (excluding the lookups shown above and in all the export and import scripts).
I’m going to submit a PR to correct the location for the module.json lookup in the emoncms-import.sh
and wanted to see if you agree that its worth clearing out the old code at the same time?