From 14451d4d45da783e4421607aa7b63744a3ac0566 Mon Sep 17 00:00:00 2001 From: Ignace Date: Mon, 10 Aug 2026 18:58:29 +0200 Subject: [PATCH] pynut error --- README.md | 2 ++ requirements.txt | 2 +- ups2rrd.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34ca2fd..78be4e6 100644 --- a/README.md +++ b/README.md @@ -1035,6 +1035,8 @@ The important point is that **Python does not communicate directly with the UPS* It communicates with the NUT server through a Python client: ```python +from PyNUTClient import PyNUT + client = PyNUT.PyNUTClient(host="127.0.0.1") values = client.GetUPSVars("BX950MI") ``` diff --git a/requirements.txt b/requirements.txt index 161cdfc..e99150f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -PyNUTClient +PyNUTClient>=2.8.5 rrdtool # The NUT server and USB driver are still required to communicate with the UPS. diff --git a/ups2rrd.py b/ups2rrd.py index 5127125..6fc3d6a 100644 --- a/ups2rrd.py +++ b/ups2rrd.py @@ -37,8 +37,8 @@ import os import sys import time -import PyNUT import rrdtool +from PyNUTClient import PyNUT # ---------------------------------------------------------------------------