Sync your Philips Hue lighting to Beat Saber.
This program requires NodeJS to be installed on your system
- NodeJS Download (install the LTS release)
- Copy the
.env.example
file to a new file called.env
- Renaming the file in Windows Explorer you need to type
.env.
, this will allow you to create a hidden file, the dot at the end will be removed - If you cannot see the
.env.example
file, you may need to enable hidden files in Windows Explorer. Guide
- Renaming the file in Windows Explorer you need to type
- Populate the variables in your
.env
file as per the comments in the file - Launch Beat Saber BEFORE launching this script, let the game fully load to the main menu
- Run
start.bat
in this directory- The first time running this you will get a
link button not pressed
error, simply press the link button on your Hue bridge and run the script again. You should only need to do this once - If you want to start using a different bridge after you have already done this, delete the
auth.json
file located in this directory
- The first time running this you will get a
- That's it! You should see your lighting change to white and the message
Connected to Beat Saber!
. Go ahead and load your favourite song
There are 2 lighting modes available which is defined in your .env
; notes
and lighting
HIGHLY RECOMMENDED that you use lighting
mode
This mode will sync your lighting with the colour of the notes you hit
This mode will sync your lighting with the background lighting in-game
You can define custom colours to use instead of the default red and blue. You can also change the lighting colour in-between levels
Define the following variables in your .env
file, each on a new line
# Replaces the red colour. Use a RGB value in the same format as below
COLOR_A=255,0,0
# Replaces the blue colour. Use a RGB value in the same format as below
COLOR_B=0,0,255
# Replaces the purple colour used for KDA's POP/STARS. Use a RGB value in the same format as below
COLOR_KDA=139,9,153
# Replaces the white colour used in menus. Use a RGB value in the same format as below
COLOR_IDLE=255,255,255
# Replaces the black colour used in game when you first start a song. Use a RGB value in the same format as below
COLOR_IDLEDARK=0,0,0
When using lighting
mode, set up your entertainment area using the setups below to provide the best experience. Each zone reacts to different light sources in-game, so the more lights you have, the better it will be!
If you only have 1 light in your entertainment area, it doesn't matter where you place it in the room, it will always be treated as a center light
If you have 2 or 3 lights in your entertainment area, we split the room up into 3 sections; left, center and right as shown in the below image. Place your lights in the zones you want them to use
If you have lots of money and have yourself 4+ lights in your entertainment group, we split the room up into 6 sections as shown below. This is the ultimate lighting setup
- Custom colours set in the game are not recognised, if you would like to use custom colours you will have to set them manually, see Optional configuration section
- Not tested with 360 levels, let me know if it works!