720 B
720 B
Usage Examples
Running with Default Settings
python frigate_counter.py
Running with Custom MQTT Settings
FRIGATE_MQTT_HOST=192.168.1.100 \
FRIGATE_MQTT_PORT=1883 \
REPORT_MQTT_HOST=192.168.1.101 \
REPORT_MQTT_PORT=1883 \
TOPIC=frigate/events \
SITE_NAME=warehouse-1 \
python frigate_counter.py
Running with Environment File
# Create environment file
cat > .env << EOF
FRIGATE_MQTT_HOST=192.168.1.100
FRIGATE_MQTT_PORT=1883
REPORT_MQTT_HOST=192.168.1.101
REPORT_MQTT_PORT=1883
TOPIC=frigate/events
SITE_NAME=warehouse-1
EOF
# Source and run
source .env && python frigate_counter.py
Testing the Installation
./install.sh
python test_frigate_counter.py