
Acpi::Battery - A class to get informations about your battery.

use Acpi::Battery;
$battery = Acpi::Battery->new;
if($battery->batteryOnLine == 0){
print "Battery online\n";
print $battery->getCharge."\n";
print "Time remaining ".$batteyr->getHoursLeft.":".$battery->getMinutesLeft."\n";
}
else{
print "Battery offline\n";
}

Acpi::Battery is used to have information about your battery.It's specific for GNU/Linux

This sections contains only the methods in Battery.pm itself.
Contructor for the class
Return a hash composed by the name of the battery and the information find in /proc/acpi/battery/BATX/info.
Takes 1 arg :
The information that you would find !!
Return a hash composed by the name of the battery and the information find in /proc/acpi/battery/BATX/state.
Takes 1 arg :
The information that you would find !!
Return 0 if the battery is online else -1.
Return the number of battery present.
Return the pourcentage of the battery.
Return the hours left behind the battery will be down.
Return the minutes left behind the battery will be down.
Return a hash composed by the name of the battery and the last full capacity.
Return the last full capacity of all batteries.
Return a hash composed by the name of the battery and 0 or -1 if it's present or not.
Return a hash composed by the name of the battery and the design capacity.
Return a hash composed by the name of the battery and the technology.
Return a hash composed by the name of the battery and the type.
Return a hash composed by the name of the battery and the oem info.
Return a hash composed by the name of the battery and 0 or -1 if it's charging or not.
Return a hash composed by the name of the battery and 0 or -1 if if the capacity state is ok or not.
Return the remaining capacity of all batteries.
Return the present rate of all batteries.
Return the present voltage of all batteries.
