[Nut-upsuser] NUT with Geekworm x728 UPS Hat on RPi?
nickolas.ellson at gmail.com
Sat Nov 7 20:38:12 GMT 2020
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
"Educating Layer 8, one user at a time."
> On Nov 5, 2020, at 12:21 PM, Roger Price <roger at rogerprice.org> 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.
>> 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.
> 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
> Nut-upsuser at alioth-lists.debian.net
More information about the Nut-upsuser