I forgot about three more technical aspects of the device…
The bash script it set up to run as a service in systemd, this is to make it run on startup and have some control over it, this is important for the next part.
The one min delay after submitting the data and shutting down the pi, this gives me time to find the command to stop the script before the script shuts down the pi, this is important so you can access the system and service it.
Why shut it down at all, the power will be cut shortly after?
This is to preserve the filesystem and reduce the risk of corruption, consider that the pi will turn on and off 24 times every day, any error caused by improper shutdowns will quickly amplify.
I forgot about three more technical aspects of the device…
The bash script it set up to run as a service in systemd, this is to make it run on startup and have some control over it, this is important for the next part.
The one min delay after submitting the data and shutting down the pi, this gives me time to find the command to stop the script before the script shuts down the pi, this is important so you can access the system and service it.
Why shut it down at all, the power will be cut shortly after?
This is to preserve the filesystem and reduce the risk of corruption, consider that the pi will turn on and off 24 times every day, any error caused by improper shutdowns will quickly amplify.