Documentation
Sys_GetBattery
array Sys_GetBattery ()
Returns
Array with information about the battery
Description
Gives information about the presence of a battery, whether it is in use and what percentage of the battery charge is left. The remaining time and maximum battery life are indicated in seconds.
Example
print_r(Sys_GetBattery());
/*
// Sample output on a desktop PC without battery
// HasBattery is available with IP-Symcon 7.0+
Array
(
[HasBattery] =>
[OnBattery] =>
[IsCharging] =>
[BatteryLevel] => -1
[BatteryRemainingTime] => -1
[BatteryMaxTime] => -1
)
*/