While the init scripts are python 2, the UPS is straight I2C reads, using 
Python 3 to read and decode the I2C would be easy enough, if I knew how NUT 
needed to see things. Imma NUT Newbie 😬

Nick Ellson - from iPhone (forgive typos)
CCIE #20018; VCIX-NV, CNSE
Network Hobbyist
"Educating Layer 8, one user at a time."

> On Nov 5, 2020, at 12:21 PM, Roger Price <[email protected]> wrote:
> 
> On Thu, 5 Nov 2020, Nick Ellson wrote:
> 
>> I searched the forum from the website and didn’t get any hits, so I thought 
>> I’d ask here.
>> I have an RPi 4B running Home Assistant. It has the NUT integration, and I 
>> have a Geekworm X728 UPS Hat installed.
>> It has an I2C interface for reading data.
>> https://raspberrypiwiki.com/X728-Software
>> I was wondering if NUT supports that? 
> 
> Not in its current form.  The installation script seems to be generating two 
> Python2 scripts which very approximately play the role of a driver attached 
> to NUT's upsd.  To get this to work with NUT means writing a C language X728 
> driver based on the Python2 scripts.  Whether it's possible to write a upsd 
> driver in Python3 is an open question.
> 
> Roger
> 
> Health warning. Python2 is now well past its end-of-life. No support, not 
> even security updates. It's urgent for X728 to migrate to 
> Python3._______________________________________________
> Nut-upsuser mailing list
> [email protected]
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

_______________________________________________
Nut-upsuser mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to