From d21b196f7898a3d6ca91dbacefa38790add67afd Mon Sep 17 00:00:00 2001 From: Leigh Phillips Date: Mon, 11 Jan 2021 00:00:49 -0800 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d1cdcae..2d2a3bc 100644 --- a/README.md +++ b/README.md @@ -72,15 +72,15 @@ The Starlink router also exposes a gRPC service, on ports 9000 (HTTP/2.0) and 90 ## Docker for InfluxDB ( & MQTT under development ) -`dishStatusInflux_cron.py` is a docker-cron friendly script which will post status to an InfluxDB as specified by evironment variables passed to the container. Initialization of the container can be performed with the following command: +Initialization of the container can be performed with the following command: ``` -docker run -d --name='starlink-grpc-tools' -e INFLUXDB_HOST={InfluxDB Hostname} - -e INFLUXDB_PORT={Port, 8086 usually} - -e INFLUXDB_USER={Optional, InfluxDB Username} - -e INFLUXDB_PWD={Optional, InfluxDB Password} - -e INFLUXDB_DB={Pre-created DB name, starlinkstats works well} - -e "CRON_ENTRY=* * * * * /usr/local/bin/python3 /app/dishStatusInflux_cron.py > /proc/1/fd/1 2>/proc/1/fd/2" neurocis/starlink-grpc-tools +docker run -d --name='starlink-grpc-tools' -e INFLUXDB_HOST={InfluxDB Hostname} \ + -e INFLUXDB_PORT={Port, 8086 usually} \ + -e INFLUXDB_USER={Optional, InfluxDB Username} \ + -e INFLUXDB_PWD={Optional, InfluxDB Password} \ + -e INFLUXDB_DB={Pre-created DB name, starlinkstats works well} \ + neurocis/starlink-grpc-tools dishStatusInflux.py -v ``` -Adjust the `CRON_ENTRY` to your desired polling schedule. I (neurocis) will push a Grafana dashboard in the near future, or please create and share your own. +`dishStatusInflux.py -v` is optional and will run same but not -verbose, or you can replace it with one the other scripts if you wish to run that instead. I (neurocis) will push a Grafana dashboard in the near future, or please create and share your own.