[Nut-upsdev] Python and NUT (Was: Proposed discussion: standardization of Status Flags and Instant Commands for ECO mode)

Jim Klimov jimklimov at gmail.com
Fri Dec 3 00:24:51 GMT 2021

Just in case, regarding the spin-off topic of Python scripting: note there
is a sort of binding in NUT sources, as used in GUI app etc.

  I am not sure what practical state it is in, e.g. if it may need more
attention for NUT data points and concepts added in recent years, but I
suppose fixing it in upstream (if needed) is better than everyone
reinventing their wheel ;)

  In master branch, it was recently fixed to pass self-test with both
Python 2.x and 3.x (several sub-versions).


On Wed, Dec 1, 2021, 19:06 Greg Troxel <gdt at lexort.com> wrote:

> Rob Crittenden <rcrit at greyoak.com> writes:
> > On 12/1/21 09:52, Edgar Fuß via Nut-upsdev wrote:
> >>> I wrote python code, not yet published, that compares to "OL".
> >> That will already break in the "OL RB" (online, replace battery) case.
> >
> > Or in my case currently:
> >
> > ups.status: ALARM OL RB
> Thanks to both of you and I get it I need to fix my code....
> But for now, it's OL only and things are ok, or things are other than ok
> and I need to pay attention, so not terrible.
> _______________________________________________
> Nut-upsdev mailing list
> Nut-upsdev at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsdev/attachments/20211203/f39ab4da/attachment.htm>

More information about the Nut-upsdev mailing list