First Commit
This commit is contained in:
23
frigate-counter.service
Normal file
23
frigate-counter.service
Normal file
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Frigate MQTT Counter Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=frigate
|
||||
Group=frigate
|
||||
WorkingDirectory=/Users/dsutanto/MyEnv/Codes/CLAUDE/karung-masuk-frigate-counter
|
||||
ExecStart=/Users/dsutanto/MyEnv/Codes/CLAUDE/karung-masuk-frigate-counter/venv/bin/python /Users/dsutanto/MyEnv/Codes/CLAUDE/karung-masuk-frigate-counter/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