# - Execute the current powershell script with the command: # Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process # - Allow shel script execution with command: # Here is a step by step of how to execute this script: I was a bit worried about the time it was taking to execute, so after tweaking and optimizing a little bit, I left it there for the next brave person that can find a way to make it faster -)īTW, I have only tested with Windows 11, so you may have to adapt or change the value of '$Device.InstanceId' to the correct one according to your system.Ĭheers! # ATTENTION: Don't forget to allow the powershell script to run first. The script also measures the time it takes to execute. ![]() Just read the instruction in the beginning of the script. The battery level will appear in a windows pop-up dialog. If anyone wants to use it, just remember to follow the instruction on the comments and change the name of your Bluetooth device on variable 'BTDeviceFriendlyName' to the same name that appears assigned to your Bluetooth device. Internet access permission is required only for displaying advertisements.I have written a PowerShell script to obtain the battery level of my headphone. Write external storage permission is used only for write and read widget's backups. Do not be disappointed if you were looking for an app which can display battery level from a headset itself through Bluetooth protocol - this widget is not supposed to do it. This widget developed first of all for Bluetooth devices, which do not report the battery level through Bluetooth protocol, but it is compatible with all Bluetooth devices, that support A2DP or Headset profiles. So just wait about one minute after you start or stop playing music, the widget should display correct status, it will not effect on the accuracy of counting battery life, just a short lag of displaying correct state for devices which does not act according to Android documentation. ![]() If you have any feedback or suggestions, please feel free to contact me using email: your Android device does not correctly report Bluetooth playing state, "Force A2DP detection" feature should help, but note that this feature will not force the widget to update immediately when you start or stop playing music, but widget will count time accurately and display correct playing status after every periodic update (every minute). Single tap on top element to open configuration screen.įor more information, please refer to in-app help guide. Double tap on bottom element to reset battery level and remaining time values Single tap on device name or remaining time: open configuration screen. Double tap on battery icon or percentage: reset battery level and remaining time values ![]() Ability to backup and restore widget's data You can assign your desired names to your Bluetooth devices Warning notification if your Bluetooth device runs low battery (optional) Battery level icon in status bar (optional) ![]() This application is compatible with all Bluetooth devices, that support A2DP or Headset profiles. You can take these values from user manual or specifications of your Bluetooth device, or use widget itself to count active time for you. To calculate these values, widget monitors your Bluetooth device activity and uses Active time and Standby time that you should enter on the configuration screen. Bluetooth Battery Monitor – is a widget-only application that provides you with an estimated battery level of your Bluetooth headset (or another device) and calculates how much time is left of its battery life.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |