Skip to content

Commit 856471e

Browse files
Merge pull request #246 from bobemoe/patch-1
2 parents d881a4f + 7d65b7c commit 856471e

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,19 @@ MESHTASTIC_INTERFACE=BLE INTERFACE_BLE_ADDR=AA:BB:CC:DD:EE:FF meshtastic-prometh
6060

6161
1. Connect your Meshtastic device to your computer via a serial interface (e.g., USB).
6262
2. Clone the repo, or download (preferably) [latest release](https://github.com/artiommocrenco/meshtastic-prometheus-exporter/releases/latest), uncompress it and navigate to the directory with the `docker-compose.yml` file.
63-
3. Edit the `docker-compose.yml` file and set `MESHTASTIC_INTERFACE` to `SERIAL` and optionally specify the serial device path.
64-
4. In your terminal, run `docker-compose up` (for this, you need Docker installed).
63+
3. Edit the `docker-compose.yml` file and set `MESHTASTIC_INTERFACE` to `SERIAL` and optionally specify the serial device path (defaults to /dev/ttyACM0)
64+
4. Map the serial port through to docker using `devices:`
65+
5. In your terminal, run `docker-compose up` (for this, you need Docker installed).
66+
67+
Example:
68+
```yaml
69+
environment:
70+
- MESHTASTIC_INTERFACE=SERIAL
71+
- SERIAL_DEVICE=/dev/ttyUSB0
72+
devices:
73+
- /dev/ttyUSB0:/dev/ttyUSB0
74+
```
75+
6576
6677
### Use with TCP
6778

0 commit comments

Comments
 (0)