From a046381f5c606d2f8741df7dd1b2f5b01f1e34db Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 28 Nov 2022 12:49:54 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fb8e089..d99ed62 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Pulls UPS power draw over ModBus and logs to ElasticSearch. ## Install Download repo: -``` -bash git clone https://github.com/kevinmidboe/schleppeUPSConsumption +```bash +git clone https://github.com/kevinmidboe/schleppeUPSConsumption cd schleppeUPSConsumption ``` From cbc4c75840cb1e488dfbcb001d1e5da3ffcda7d3 Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 28 Nov 2022 12:54:15 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Added=20missing=20comma=20=F0=9F=99=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apcWatts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apcWatts.py b/apcWatts.py index 0457641..6e046d2 100644 --- a/apcWatts.py +++ b/apcWatts.py @@ -8,7 +8,7 @@ from logger import logger config = getConfig() host = config['modbus']['host'] port = config['modbus']['port'] -c = ModbusClient(host=host port=port, unit_id=1, auto_open=True) +c = ModbusClient(host=host, port=port, unit_id=1, auto_open=True) def getAmps(): amps = c.read_holding_registers(140, 1)