mirror of
https://github.com/daniviga/django-ram.git
synced 2025-12-26 07:18:32 +01:00
Update monitoring's README
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Asset telemetry monitoring
|
# Asset telemetry monitoring
|
||||||
|
|
||||||
[!CAUTION]
|
> [!CAUTION]
|
||||||
This is a PoC, not suitable for real world due to lack of any authentication and security
|
> This is a PoC, not suitable for real world due to lack of any authentication and security
|
||||||
|
|
||||||
## Pre-requisites
|
## Pre-requisites
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ This is a PoC, not suitable for real world due to lack of any authentication and
|
|||||||
|
|
||||||
The `dispatcher.py` script collects data (`cab` commands) from a CommandStation and sends it a MQTT broker.
|
The `dispatcher.py` script collects data (`cab` commands) from a CommandStation and sends it a MQTT broker.
|
||||||
|
|
||||||
The command being monitored is the `<l cab reg speedByte functMap>` one returned by the `<t cab speed dir>` throttle command. See the [DCC-EX command reference](https://dcc-ex.com/reference/software/command-summary-consolidated.html#t-cab-speed-dir-set-cab-loco-speed).
|
The command being monitored is `<l cab reg speedByte functMap>` which is returned by the `<t cab speed dir>` throttle command. See the [DCC-EX command reference](https://dcc-ex.com/reference/software/command-summary-consolidated.html#t-cab-speed-dir-set-cab-loco-speed).
|
||||||
|
|
||||||
`mosquitto` is the MQTT broker.
|
`mosquitto` is the MQTT broker.
|
||||||
|
|
||||||
@@ -27,8 +27,8 @@ Data is finally save into a Timescale hypertable.
|
|||||||
```bash
|
```bash
|
||||||
$ podman run -d -p 5432:5432 -v $(pwd)/data:/var/lib/postgresql/data -e "POSTGRES_USER=dccmonitor" -e "POSTGRES_PASSWORD=dccmonitor" --name timescale timescale/timescaledb:latest-pg17
|
$ podman run -d -p 5432:5432 -v $(pwd)/data:/var/lib/postgresql/data -e "POSTGRES_USER=dccmonitor" -e "POSTGRES_PASSWORD=dccmonitor" --name timescale timescale/timescaledb:latest-pg17
|
||||||
```
|
```
|
||||||
[!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
A volume should be created for persistent data
|
> A volume should be created for persistent data
|
||||||
|
|
||||||
Tables and hypertables are automatically created by the `handler.py` script
|
Tables and hypertables are automatically created by the `handler.py` script
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user