First Commit
This commit is contained in:
43
usage_example.md
Normal file
43
usage_example.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# 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
|
||||
```
|
||||
Reference in New Issue
Block a user