Hello, I am embarking on a project using NUT on a Raspberry pi talking to a Cyberpower UPS for storm event (e.g. hurricane) power management at a remote location. I would prefer to use Java as a programming platform for this application, but I see the NUT Java project has not been updated in a long time (7 years?!). Is it being tested with new NUT releases or has been abandoned? If the later, I recommend references to it be removed from https://networkupstools.org/download.html. If there is no current Java project for NUT I would be interested in updating/creating one as I need this capability anyway and it is not overly difficult to abstract and encapsulate the NUT interface with modern Java structures. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200131/23c99439/attachment.html>
On Fri, 31 Jan 2020, Mark McMillan wrote:> Hello, I am embarking on a project using NUT on a Raspberry pi talking to a > Cyberpower UPS for storm event (e.g. hurricane) power management at a remote > location. > I would prefer to use Java...Hi, If your project is to run remotely from the pi, then you will need to consider the security aspects of the communication. NUT's upsd supports a version of TLS so old that recent TLS implementations will not talk to it. An example is the "recent" version 3.4 of Python released in March 2014 which is itself so old that it is no longer supported and has no more security fixes. The same problem may well exist for Java. Roger
On Jan 31, 2020, at 12:13 PM, Mark McMillan <mark at nc-mcmillans.com> wrote:> > I would prefer to use Java as a programming platform for this application, but I see the NUT Java project has not been updated in a long time (7 years?!). Is it being tested with new NUT releases or has been abandoned?The NUT protocol has been backwards-compatible for 17 years (since NUT 1.4), so I would hope that Java has aged as gracefully. I tend not to use Java for these sorts of projects, so I am probably not a good judge of whether it would be better to update the jNut codebase, or start from scratch. As mentioned in the jNut README*, the Java library does not support SSL/TLS. That said, NUT's upsd does not have a way to require the STARTTLS command, so for a remote installation, you may want to consider a VPN, or a web API behind HTTP+TLS. * https://github.com/networkupstools/jNut/blob/master/jNut/README#L70