Program to collect battery discharge statistics of VIVE trackers, controllers and HMD (and possible other OpenVR API devices) to InfluxDB v2 server.
- Unpack openvr_battery_monitor.zip
- Edit
openvr_battery_monitor.conf
set your InfluxDB host, org, port, bucket, token and interval. - Start cmd.exe and cd to dir.
- Execute the command:
openvr_battery_monitor.exe --install
The program will now run every time you launch SteamVR. You can disable autostart in the SteamVR settings or uninstall as follow openvr_battery_monitor.exe --uninstall
- Install MSYS2
- Start UCRT64
pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-boost mingw-w64-ucrt-x86_64-openvr zip
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
cp ../openvr_battery_monitor.conf .
for i in libgcc_s_seh-1.dll libwinpthread-1.dll libopenvr_api.dll libstdc++-6.dll; do cp /ucrt64/bin/$i .; done
zip openvr_battery_monitor *.dll openvr_battery_monitor.exe openvr_battery_monitor.conf