nut-debian/scripts/python/app
2022-07-10 09:23:45 +02:00
..
icons New upstream version 2.8.0 2022-07-10 09:23:45 +02:00
locale Imported Upstream version 2.7.1 2013-11-24 16:00:12 +01:00
pixmaps Imported Upstream version 2.6.0 2011-01-26 10:35:08 +01:00
ui New upstream version 2.8.0 2022-07-10 09:23:45 +02:00
nut-monitor-py2gtk2.desktop New upstream version 2.8.0 2022-07-10 09:23:45 +02:00
NUT-Monitor-py2gtk2.in New upstream version 2.8.0 2022-07-10 09:23:45 +02:00
nut-monitor-py3qt5.desktop New upstream version 2.8.0 2022-07-10 09:23:45 +02:00
NUT-Monitor-py3qt5.in New upstream version 2.8.0 2022-07-10 09:23:45 +02:00
nut-monitor.appdata.xml New upstream version 2.8.0 2022-07-10 09:23:45 +02:00
README New upstream version 2.8.0 2022-07-10 09:23:45 +02:00

NUT-Monitor
===========

NUT-Monitor is a graphical application to access and manage UPSes connected to
a NUT (Network UPS Tools) server.

Dependencies
------------

This application (variants written in Python 2 + GTK2, and in Python 3 + Qt5)
uses the python-pynut class (available at http://www.lestat.st), delivered
as PyNUT in the NUT source tree.

Refer to your OS packaging and/or install custom modules with `pip` (or `pip3`)
to get required dependencies (GTK + GObject or QT5).

Path to PyNUT module
--------------------

For quick tests (e.g. during development), you can run the clients like this:
````
:; PYTHONPATH=../module/ python2 ./NUT-Monitor-py2gtk2.in
````
or:
````
:; PYTHONPATH=../module/ python3 ./NUT-Monitor-py3qt5.in
````

Localization
------------

For localized UI, also `export LANG=fr_FR.UTF-8` or `export LANG=ru_RU.UTF-8`
(see and feel welcome to improve the choice of languages in `locale` directory).

NOTE: Currently localization only works for Python 2 client, PRs are welcome.

Desktop menu integration
------------------------

This component ships both implementation-specific `nut-monitor-py2gtk2.desktop`
and `nut-monitor-py3qt5.desktop` files which allows a user to have icons for
both variants separately, as well as the legacy-named `nut-monitor.desktop`
for running the wrapper script `NUT-Monitor` which picks an implementation best
suited for current run-time circumstances.

Kudos
-----

NUT-Monitor and PyNUT (for Python 2 syntax) were originally authored
by David Goncalves <david@lestat.st>

NUT-Monitor was converted to Python 3 + QT5 by Luke Dashjr

PyNUT was extended, and two variants of NUT-Monitor converged and wrapped
for Python 2+3 dual support by Jim Klimov