A smarter way to shutdown the RaspberryPi in your car.
Install the files into the folder /home/pi/carberrycommander.
Copy env.example
to env
and edit to your specific situation.
Ensure the required Python packages are installed on the Pi.
sudo pip3 install -r requirements.txt
Copy carberrycommander.service
to /etc/systemd/system.
Enable and start the service:
sudo systemctl enable carberrycommander
sudo systemctl start carberrycommander
- TIMER1 - The duration in seconds after an IGNITION OFF event untill the Carberry shield starts emitting GOTOSLEEP events.
- IGNORE_STATIONS - A comma separated list of MAC address that should be ignored to decide to go to sleep.
- HOME_COORD - (Lat,Lon) coordinates of your home address.
Pull requests are welcome.