Yup I'm a linux guy, I just didn't make it back here to update my original posting. Looks like it covers everything that needs to be covered, I would probably add in an option to update the password or even maybe add an additional user or I could go on, but its a really good start and makes for an easy setup. I would also prefer to see the output of some of the commands as to see it updating etc, but understand not everyone cares about that. I may kick it around and see if I can add anything to it like maybe the timezone lookup etc.That script does eliminate the need to make any config changes to the Pi, it can be used on any install not just my controller. During the install it'll ask if you have controller, that's just to copy over a database setup for it.
This is what it does.
These are the 3 commands to run the script, first downloads, 2nd unzips and 3rd runs the script.
- Asks for time zone (it provides a clickable link to find)
- Updates the Pi operating system
- Installs I2C tools (this adds i2cdetect feature)
- Asks what Raspberry Pi your are using so it can install the correct reef-pi (currently installing 4.3)
- Asks if Robo-Tank is being used (if so it copies over a database with drivers / connectors etc added)
- Overwrites /boot/config.txt file on Pi (this setups 1-wire, I2C, etc)
- Deletes the download and install script
- Confirms install complete and provides link with your local IP to access reef-pi webpage
- After user presses Enter key when install is finished it will expand the file system on Pi and reboot
- sudo wget -c https://www.robo-tank.ca/reef-pi_install_files.zip
- sudo unzip reef-pi_install_files.zip
- sudo bash reef-pi_install_files/install_reefpi.sh
I was looking at a slightly different tack in that you have an image already prepared, all the end user has to do is update the wpa_supplicant file with the wireless info for the wireless units and reboot and then be able to access the webpage. Lots of ways of doing things, one of the things I am working on in another forum is to have a sample reef-pi kit that I can loan out that has a small setup with a temp probe, kasa outlet, ato float etc. The the user can configure and play around with it and see if its something they want to pursue, if they do I have been steering them to your product or leviathon etc. Once the user is done playing they ship it back to me and I send it on it's way to someone else, still working out the kinks but I thought the loaner setup may get users more comfortable with how it works and thereby bring more users into using reef-pi.
Thanks for all the work you have put into it, really shows.