Script - TheAmadeus25/CounterStrike-GlobalOffensive-Ambilight-System GitHub Wiki
IP and Port
❗ Did you read and follow the Wiki pages like Gamestate Integration: IP and Gamestate Integration: Port? If you can answer this with "YES", well Congratulation! You are almost done!
Open the script obs.js
with Notepad and adjust port
and host
. Use the same as before.
E.g port=65000;
and host = '192.168.178.2';
You need to do this step for espPort
and espIP
, aswell. If you don't know which address your board is using, just plug it in, open the Serial console and restart your board by pressing RESET. After a short time, it shows the IP adress + port.
E.g espPort=65001;
and espIP = '192.168.178.48';
Save this File as *.js
and close it.
First Start
Open your console (cmd) on Windows.
Write but don't press ENTER: node
(After node, there is a space).
Now, drag and drop obs.js
inside the console and press ENTER.
❗ Please use a folder where node.js has permission to create/write files. Otherwise, after first start (and everytime), it won't create any files. Just use another folder. Alternative, you can use cd
inside of cmd to change the folder. Changing folder with cd
can solve these problems on Windows 10.
E.g. File is located here C:\Folder\obs.js
, just write cd C:\Folder
, followed by node obs.js
.
(Picture may be outdated)