Rust app to send spotify related data to VRChat via Open Sound Control (OSC), it also works with other software outside VRChat but requires tweaking on the config file.
I created this a while ago to show spotify data on my VRChat avatar, it's full of poor design decisions and may be a bit unstable since I'm kinda new to Rust.
Addresses can be changed on the configuration to work in other programs, for now it's set to VRChat's avatar parameter addresses.
Address | Datatype |
---|---|
/avatar/parameters/spotify_playing | Boolean |
/avatar/parameters/spotify_seek | Float (Range 0-1) |
/chatbox/input | Vec(String, Bool) |
Address | Datatype |
---|---|
/avatar/parameters/spotify_play | Boolean |
/avatar/parameters/spotify_stop | Boolean |
/avatar/parameters/spotify_next | Boolean |
/avatar/parameters/spotify_previous | Boolean |
/avatar/parameters/spotify_volume | Float (Range 0-1) |
- Start the application and close it to generate the config file.
- Visit https://developer.spotify.com/dashboard/applications
- Create a new app and give it a cool naem like "My coow spotify appwication owo"
- Add a Redirect URI with the value http://localhost:8080/callback (can be changed on the config file)
- Open the
config.toml
and set the client_id and client_secret, both can be obtained from the application dashboard. - Start the application.
- Visit https://localhost:8080/setup
- Login to Spotify
- If it didn't explode then it should start working in a few moments
- Now everything should be working fine, if the token expires it should refresh automatically without user interaction.