-
-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate NUT client Python support from David Goncalves.
Fossil-ID: SVN r1711
- Loading branch information
Showing
20 changed files
with
2,471 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
These directories hold example startup and shutdown scripts for various | ||
operating systems and distributions. They have all been contributed by | ||
users of the software. | ||
These directories hold various scripts: | ||
- example startup and shutdown scripts for various operating systems and | ||
distributions, | ||
- hotplug and udev integration for on the fly privileges settings (Linux only), | ||
- Hardware Abstraction Layer script, for declaring and binding NUT addons to | ||
specific USB devices, | ||
- Python Client module and application. | ||
|
||
They have either been contributed by users of the software, or by the NUT Team | ||
itself. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
Makefile | ||
|
||
Makefile.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Network UPS Tools: data/html | ||
|
||
EXTRA_DIST = client/README \ | ||
client/app/copyright \ | ||
client/app/gui.glade \ | ||
client/app/NUT-Monitor \ | ||
client/app/nut-monitor.desktop \ | ||
client/app/nut-monitor.png \ | ||
client/app/README \ | ||
client/module/PyNUTClient.py \ | ||
client/module/test_nutclient.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Python NUT Client files | ||
----------------------- | ||
|
||
This directory contains various NUT Client related Python scripts, written by | ||
David Goncalves, and released under GPL v3. | ||
|
||
* "module": this directory contains PyNUTClient.py, which is a Python | ||
abstraction class to access NUT server(s). You can use it in Python programs | ||
to access NUT's upsd data server in a simple way, without having to know the NUT | ||
protocol. | ||
|
||
To import it on Python programs you have to use the following (case sensitive) : | ||
'import PyNUTClient' | ||
|
||
To install the PyNUTClient class on Debian/Ubuntu, copy it to: | ||
/usr/share/python-support/python-pynut/ | ||
|
||
This directory also contains test_nutclient.py, which is a PyNUTClient test | ||
program. For this to be fully functional, you will need to adapt the login, | ||
password and upsname to fit your configuration. | ||
|
||
|
||
* "app": this directory contains the NUT-Monitor application, that uses the | ||
PyNUTClient class, along with its resources. | ||
|
||
To install it, you will either need to keep the files together, or to install | ||
gui.glade to /usr/share/nut-monitor/, and nut-monitor.png to something like | ||
/usr/share/pixmaps/ |
Oops, something went wrong.