/csgo-gsi-to-arduino

Send "Global Offensive Game State Integration" informations to an Arduino to animate LED Strip

Primary LanguagePythonMIT LicenseMIT

CSGO: Game State Integration to Arduino

Send CSGO:GSI datas to Arduino throught serial communication

Prerequisites

Python 2
PIP

Materials

  • Arduino (Uno, Mega, Mini...)
  • 3 resistors 100Ω
  • 3 N-Channel MOSFETs
  • 12V LED Strip RGB 4 Pins

Installation

Arduino

Upload the arduino/main.ino to your Arduino.

Python Server

$ git clone https://github.com/synyster0fa7x/csgo-gsi-to-arduino.git
$ 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 then launch the server with :

python main.py

The server is now listenning for POST request then send the datas to your Arduino throught serial COM.

CS:GO Server

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\

then restart CS:GO.

Wiring

csgo gsi led strip arduino

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details.