Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadPowerInfo ¶
ReadPowerInfo initialize and return a new powerSupplyInfo sturct. Output of power_supply_info shows two devices, Line Power and Battery, with details of each device listed. This function parses the output into a dictionary, with key being the device name, and value being a dictionary of details of the device info.
Device: Line Power online: no type: Mains voltage (V): 0 current (A): 0 Device: Battery state: Discharging percentage: 95.9276 technology: Li-ion
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.