A userscript for Tampermonkey connecting Chillhop to a local WebSocket server (+ WebSocket Server!) π
I wrote it for OBS users wanting to display the current song playing in their chillhop.com window without any form of window capture.
- Install Tampermonkey π for your preferred browser
- Install the script by clicking on https://github.com/ryzetech/Chillhop2WS/raw/main/Chillhop2WS.user.js
- (If you haven't done this already) Install Node.js Choose the LTS option (recommended for most users)!
- Download the latest release of the server, unzip the contents (the name of the folder with the files inside should be
server
, let's stick with it for the rest of the tutorial but you can rename it if you want!) - Open a terminal in said folder (Windows: Shift + Right Click, "Open PowerShell" | I hope Linux and macOS users know how to operate their terminal, if not pls look it up) or cd into that folder
- Run
npm i
to set up everything you need. The npm command should come with your Node installation! - Run
node server.js
. You shoud get some info if everything worked. Note that the script only works as long as you have the terminal window open!
The WebSocket server will save two files in the folder: title.txt
and artist.txt
. You can use OBS text sources to read from that files and show them on stream. All you have to do is to add the source and specify in the properites to read from that text file.
Nope! The stuff here is absolutely free to use and to tamper with! π Please be aware of the GNU GPLv3 license when doing so.
Optional: If you want to, you can link this project in a panel on Twitch or share it in another way. Thank you for everything, it helps me a lot! π
linking to https://github.com/ryzetech/Chillhop2WS/
(just an example)
If you have questions or problems, open an issue here. Try to describe your problem as accurately as possible and include screenshots if needed. If you want to improve something, make a pull request. I am open to changes! π
You can also run your own WebSocket server. The script tries to connect to port 4001
and sends the data as a JSON object in the following format:
{
"title": "string"
"artist": "string"
}
When nothing is played, the script will leave both fields as empty strings.
I've built most of the code live on https://twitch.tv/ryzetech. If you want to see more coding stuff, games and relaxed talking, you can visit and follow me there!