Send CSGO:GSI data to Arduino throught serial communication
Python 3
PIP
git
- Arduino (Uno, Mega, Mini...)
- 3 resistors 100Ω
- 3 N-Channel MOSFETs
- 12V LED Strip RGB 4 Pins
Upload the arduino/main.ino
to your Arduino.
Copy the repository URL using the green clone widget on the top right. Then use the commands listed below to install the required software.
$ git clone <Copied repository URL>
$ cd csgo-gsi-to-arduino/python
$ python -m pip install -r requirements.txt
$ cp config.json.dist config.json
Fill config.json
with your parameters:
Example:
{
"csgogsi":{
"ip":"localhost",
"port":"3000",
"secret":"MY_SECRET_PHRASE"
},
"serial":{
"port": "/dev/ttyACM0",
"baudrate": 9600
}
}
Then launch the server with :
python ./main.py
The server is now listenning for POST request from CSGO and sends the data to your Arduino throught serial COM.
Copy the repository URL using the green clone widget on the top right. Then use the commands listed below to install the required software.
$ git clone <Copied repository URL>
$ cd csgo-gsi-to-arduino/python
$ python -m pip install -r requirements.txt
$ copy config.json.dist config.json
Fill config.json
with your parameters:
Example:
{
"csgogsi":{
"ip":"localhost",
"port":"3000",
"secret":"MY_SECRET_PHRASE"
},
"serial":{
"port": "COM3",
"baudrate": 9600
}
}
Then launch the server with:
python .\main.py
The server is now listenning for POST request from CSGO and sends the data to your Arduino throught serial COM.
Copy the .cfg
file into your CS:GO config's directory. This is mine for exemple :
C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\
You can rename the last part of the config name to whatever you want to avoid conflicts with other GSI services.
Example name:
gamestate_integration_stagelighting.cfg
then restart CS:GO.
This project is licensed under the MIT License - see the LICENSE.md file for details.