Almost done with assembly!
Here:
Front view, powered off.
Power structure:
There are two 110V AC plugs required. One is a cable extender to power pi and arduino, and one for the pump.
I figured it might be a good idea for manual power cut to the pump.
As you can see on one of the later images, the Pi is booted with the python script running.
Here's how you can set it up, to run the script upon boot.
We'll using something called crontab.
sudo crontab -e
You can use it without sudo as well, but you will not be able to run sudo-level scripts.
It may ask you to select a text editor. Select Nano, if prompted.
Now, after a file opens:
@reboot python3 /home/pi/myscript.py
This is the default case.
@reboot must be added so it is launched upon boot(or reboot), python3 is for interpreter, and the rest is the filename. Be sure to change to your file's actual directory.
I don't have perfect memory of where the file is located. Looking back at Pimoroni docs, (https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-enviro-plus )
It seems to be
/home/pi/enviroplus-python/examples/weather-and-light.py
I think.
*Disclaimer: At this time I am not accepting lawsuits, please use ls command to help guide you.*
Mhm, so it should be
@reboot python3 /home/pi/enviroplus-python/examples/weather-and-light.py
So what's next?
Lightning and ventilation.
I'm figuring out ventilation. I'm trying to find an old fan, and I ordered 2 fan guards that will arrive tomorrow.
Lightning? I was originally making a light board but I realized copper tape could not quite provide good conduction for 50 LEDs. So I'll be using a LED strip.
That I won in a giveaway. From somewhere.
*smiles*
USPS says it will be here by the 2nd.
I don't believe USPS.
I was going to use a buck boost but the coronavirus delays shipments domestically and internationally so I am in a *tough* situation with little parts.
(I was due for a part replenishment 6 months ago!)
*grimaces*