apcupsd protocol

Today, I started getting annoyed by the continue wall output of apcupsd while the electric saw was being used. Unfortunately, the power cabling in my house makes the voltage go up and down when something that has big power consumption is started, so all my PTYs were full of apcupsd’s warnings about “power faults” and returns. The same goes for my mail inbox.

So I disabled WALL warnings and started thinking about writing a KDE client o apcupsd. It shouldn’t be difficult, no? I just need to write an user interface to show the data produced by apcupsd.

The only problem is that it does not provide any kind of library to access those data, there’s a TCP protocol but it’s not documented, the various utilities used by apcupsd uses an internal library to communicate with the daemon, and so there’s no way to actually write anything without reverse engineering the protocol.

Okay, I think I have an interesting work in front of me 🙂