Inspiration: https://youtu.be/sj6-LG5VpGk
The STP2000 is a machine to stop pigeons to eat my neighbor's cat food.
Yes, it's a prototype, developed using raspberrypi 4, few sensors and actuators.
Copy stp_app.service
to /lib/systemd/system
Copy buttons.service
to /lib/systemd/system
Copy override.conf
to /etc/systemd/system/buttons.service.d
sudo systemctl daemon-reload
# Boot enable
sudo systemctl enable stp_app
sudo systemctl enable buttons
# Start / stop
sudo systemctl start stp_app
sudo systemctl start buttons
# Status
sudo systemctl status stp_app
sudo systemctl status buttons
# Log
journalctl -u stp_app -f
journalctl -u buttons -f
- How to Run a Raspberry Pi Program on Startup
- How to set environment variable in systemd service?
- What is the difference between BOARD and BCM for GPIO pin numbering?
- Tutorial: Raspberry Pi GPIO Pins and Python
- Python RPi.GPIO.add_event_detect() Examples
- Checking function of GPIO channels
- Absolute vs Relative Imports in Python
- sendgrid/sendgrid-python
- How to Send Emails in Python with Sendgrid