pynut error
This commit is contained in:
@@ -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")
|
||||
```
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
PyNUTClient
|
||||
PyNUTClient>=2.8.5
|
||||
rrdtool
|
||||
|
||||
# The NUT server and USB driver are still required to communicate with the UPS.
|
||||
|
||||
+1
-1
@@ -37,8 +37,8 @@ import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
import PyNUT
|
||||
import rrdtool
|
||||
from PyNUTClient import PyNUT
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user