Files
karung-masuk_frigate-counter/usage_example.md
2026-02-17 09:35:36 +07:00

43 lines
720 B
Markdown

# Usage Examples
## Running with Default Settings
```bash
python frigate_counter.py
```
## Running with Custom MQTT Settings
```bash
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
```bash
# 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
```bash
./install.sh
python test_frigate_counter.py
```