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 # ---------------------------------------------------------------------------