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:
|
It communicates with the NUT server through a Python client:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
from PyNUTClient import PyNUT
|
||||||
|
|
||||||
client = PyNUT.PyNUTClient(host="127.0.0.1")
|
client = PyNUT.PyNUTClient(host="127.0.0.1")
|
||||||
values = client.GetUPSVars("BX950MI")
|
values = client.GetUPSVars("BX950MI")
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
PyNUTClient
|
PyNUTClient>=2.8.5
|
||||||
rrdtool
|
rrdtool
|
||||||
|
|
||||||
# The NUT server and USB driver are still required to communicate with the UPS.
|
# 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 sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import PyNUT
|
|
||||||
import rrdtool
|
import rrdtool
|
||||||
|
from PyNUTClient import PyNUT
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user