-
Notifications
You must be signed in to change notification settings - Fork 0
Command Line Arguments
David Durost edited this page May 1, 2020
·
1 revision
PowerPi has several configurable command-line options available.
| Option | Short Flag | Long Flag | Default | Description |
|---|---|---|---|---|
| Broker | -b | --broker | localhost | MQTT Broker host ip |
| Port | -p | --port | 1883 | MQTT Broker port |
| Device | -d | --device | /dev/ttyUSB0 | RS485 device path |
| Classic IP | -ch | --classichost | localhost | Classic ip address |
| Classic Port | -cp | --classicport | 502 | Classic port |
| MQTT Client ID | -c | --clientid | uuid | MQTT Client ID |
| MQTT Username | -u | --username | mqtt_user | MQTT Username |
| MQTT Password | -P | --password | mqtt | MQTT Password |
| MQTT Topic | -t | --topic | powerpi/ | MQTT Root Topic |
| Interval | -i | --interval | 60 | MQTT Publish Interval |
| Timeout | -t | --timeout | 0.005 | Timeout for serial read |
| Allow Duplicates | -D | --duplicates | false | Log duplicate entries |
| Packets | --packets | 50 | Number of packets to generate in reader | |
| Trace | --trace | false | Add raw packet info to data | |
| No Cleanup | -nc | --nocleanup | true | Suppress clean up of unknown packets |