This is your work, valued
Raspberry-Pi-UPS. Arduino based UPS that emulates a Megatech - For use with NUT "Network UPS Tools" running on Raspberry Pi