$ fingerprint@info:~ echo $BATTERY-STATUS-API
The Battery Status API provides information about the system's battery charge level and notifies you about events which are sent when the battery level or charging status changes. This can be used to adjust your app's resource usage to reduce battery drain when the battery is low, or to save changes before the battery runs out in order to prevent data loss. For more details see, e.g., MDN web docs
The original W3C Battery Status API specification says in Section 4:
The information disclosed has minimal impact on privacy or fingerprinting, and therefore
is exposed without permission grants.
'
Battery readouts provide the following information:
(updated whenever a new value is supplied by the operating system)
The frequency of battery status changes could lead to behavioral analysis, and battery readouts
can serve as a short-lived identifier, which could recreate other identifiers.
Any web page is allowed to retrieve this information without user knowledge or consent.
$ fingerprint@info:~ run battery-status-api-demo