On Thu, Feb 22, 2018 at 03:19:36PM +0000, Juan R. de Silva wrote:
> On Wed, 21 Feb 2018 21:38:55 -0500, Roberto C. Sánchez wrote:
> > That is a choice you have to make. If you run a firewall on your machine
> > and you do not expose the ports (3551 for apcupsd and 80 for httpd),
> > then there is no real concern. That said, if you do not want to worry
> > about a webserver, you can probably script something that retrieves that
> > data from the apcupsd process on port 3551. It should not require very
> > much effort at all.
> Thanks, Roberto.
I went poking around on my machine and found that if you install the
apcupsd-doc package, then you end with a bunch of examples in
/usr/share/doc/apcupsd/examples/. There appear to be examples at least
in C, Tcl, and shell. You might find something helpful there.
Roberto C. Sánchez