Update frigate_counter to GPIO
This commit is contained in:
23
frigate-counter_karung-masuk.service
Normal file
23
frigate-counter_karung-masuk.service
Normal file
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Frigate MQTT Counter Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=frigate
|
||||
Group=frigate
|
||||
WorkingDirectory=/etc/frigate-counter/karung-masuk
|
||||
ExecStart=/usr/bin/python3 /etc/frigate-counter/karung-masuk/frigate_counter.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
# Environment variables for MQTT configuration
|
||||
#Environment=FRIGATE_MQTT_HOST=localhost
|
||||
#Environment=FRIGATE_MQTT_PORT=1883
|
||||
#Environment=REPORT_MQTT_HOST=localhost
|
||||
#Environment=REPORT_MQTT_PORT=1883
|
||||
#Environment=TOPIC=frigate
|
||||
#Environment=SITE_NAME=default
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user