Description
A lightweight extension that retrieves the current battery charge level of the device.
Get Level: Access the current charge (0 to 100).
Compatibility: Automatically returns -1 if the device or browser does not support the Battery API.
Efficient: Uses the standard Battery Status API with no impact on performance.
How to use the extension
Add the "Save battery level to variable" action to your event sheet.
Select a variable where the percentage will be stored.
Check if the value is greater than -1 before using it.
Use this data to trigger power-saving modes or display system info.
Checklist
Example file
My project9.zip
Extension file
BatteryStatus.json
Description
A lightweight extension that retrieves the current battery charge level of the device.
Get Level: Access the current charge (0 to 100).
Compatibility: Automatically returns -1 if the device or browser does not support the Battery API.
Efficient: Uses the standard Battery Status API with no impact on performance.
How to use the extension
Add the "Save battery level to variable" action to your event sheet.
Select a variable where the percentage will be stored.
Check if the value is greater than -1 before using it.
Use this data to trigger power-saving modes or display system info.
Checklist
Example file
My project9.zip
Extension file
BatteryStatus.json