python based power manager for Vive 1.0 base stations Currently built for Windows, the script may function on Linux but the USB part is specifically Windows only for now.
-
Python 3.8.5. Might work on earlier python3 versions, but I haven't tested.
-
The ID of your base station set to channel B. This can be found on the back of the base station, see this image:
-
If you are running the script, you will need some additional python modules:
pip install bleak pywinusb
If you are running the .exe file, all necessary modules are included.
-
A bluetooth adapter. It must support BLE, which any Bluetooth 4.0 adapter should, but don't quote me on that.
Run either the .py script or the .exe executable. On first run, a configuration file will be created, and you will be asked to enter the unique ID of your B channel base station. After entering this, you will be taken to a menu that explains all options.
If you edit the script and/or want to compile your own .exe file, make sure to include the BleakUWPBridge.dll file found within your python modules folder. Windows likes to give a notification any time a command is sent, so you will either have to disable those or just pair with the device when it asks to stop getting that notification.