I just bought a Back-UPS.
So that if there is a power outage, this serves as some sort of a backup power.
I have set it up. It works, even when I plug it out.
But what I want to happen, is that the computer connected to it, will run maybe a cron job every ten minutes, to see how much battery is remaining, and if its below, say, 30%. Then it implements a proper shutdown.
But I can't seem to find, how to determine programmatically, how much power is left on the ups.
Does anybody know how to get that information?