Skip to content

Commit

Permalink
Merge branch 'pdxlocations:main' into patch-7
Browse files Browse the repository at this point in the history
  • Loading branch information
noon92 authored Jun 29, 2024
2 parents 7643117 + fdcc773 commit cb8243f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ script).
```
usage: entity-builder.py [-h] [--port PORT | --host HOST | --ble BLE]
[--gateway GATEWAY] [--root-topic ROOT_TOPIC]
[--no-messages] [--no-temperature] [--no-humidity]
[--no-pressure] [--gas-resistance] [--power-ch1]
[--power-ch2] [--power-ch3]
[--no-messages] [--fahrenheit] [--no-temperature]
[--no-humidity] [--no-pressure] [--gas-resistance]
[--power-ch1] [--power-ch2] [--power-ch3]
[--nodes [NODES [NODES ...]]]
optional arguments:
Expand Down Expand Up @@ -49,14 +49,16 @@ MQTT:
--root-topic ROOT_TOPIC
The root topic to use in MQTT for the generated files.
If not provided, will attempt to get the root path
from the local node and use `LongFast` as the channel.
Wildcard: `+`. Example: to include all channels with
the root topic `msh/`, use `msh/2/json/+`.
from the local node and use all channels. Wildcard:
`+`. Example: to include all channels with the root
topic `msh/`, use `msh/2/json/+`. To include just
LongFast, use `msh/2/json/LongFast`
Includes:
Arguments to specify what sensors to generate for each node.
--no-messages Don't include a sensor for messages from the node.
--fahrenheit Use Fahrenheit instead of Celsius.
--no-temperature Don't include a temperature sensor.
--no-humidity Don't include a humidity sensor.
--no-pressure Don't include a pressure sensor.
Expand All @@ -68,3 +70,5 @@ Includes:
If no connection arguments are specified, we attempt a serial connection and
then a TCP connection to localhost.
```

![Alt](https://repobeats.axiom.co/api/embed/5a785e95329170072b97787b5d907ce5901fba15.svg "Repobeats analytics image")
5 changes: 5 additions & 0 deletions entity-builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
help="Don't include a sensor for messages from the node.",
action='store_true',
)
includes.add_argument(
"--fahrenheit",
help="Use Fahrenheit instead of Celsius.",
action='store_true',
)
includes.add_argument(
"--no-temperature",
help="Don't include a temperature sensor.",
Expand Down

0 comments on commit cb8243f

Please sign in to comment.