Skip to content

Python Library and CLI to wake up / power down SteamVR (Lighthouse) Base Stations

License

Notifications You must be signed in to change notification settings

schlagenhauf/basestation-ctrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI-Server Project generated with PyScaffold

basestation-ctrl

basestation-ctrl - A python library and CLI to wake up / power down SteamVR (Lighthouse) Base Stations. It currently only works for base stations v2.

Are you annoyed by the constant high-pitch noise in your room? Have you unplugged your base stations and after repowering they are not in sleep mode anymore? Are you using SteamVR in Windows but want to control your base stations in Linux? Then you've come to the right place.

basestation-ctrl allows you to power down, wake up and scan for base stations.

Tested on Arch Linux (2021-11-20) with Python 3.9.7 and SteamVR Base Station 2.0.

Usage

(Note: I recommend using pipx instead of pip)

  • Option A: Clone this repo and install from there:

    git clone https://github.com/schlagenhauf/basestation-ctrl.git
    pip install --user <path_to_repo>
    
  • Option B: Install from PyPI

    pip install --user basestation-ctrl
    

Then consult

basestation-ctrl --help

for details.

Examples

$ sudo basestation-ctrl scan
aa:bb:cc:dd:ee:ff 11:22:33:44:55:66
$ basestation-ctrl wake aa:bb:cc:dd:ee:ff 11:22:33:44:55:66
$ basestation-ctrl sleep aa:bb:cc:dd:ee:ff 11:22:33:44:55:66

ToDos

  • Detect if Bluetooth interface is available and turned on
  • Add commands for identifying the base stations and printing their status

Known Issues

  • root (e.g. sudo) permissions are required for a scan. See: IanHarvey/bluepy#313
  • Hickups when trying to connect too often

About

basestation-ctrl is based on lh2ctrl and basestation.

About

Python Library and CLI to wake up / power down SteamVR (Lighthouse) Base Stations

Resources

License

Stars

Watchers

Forks

Languages