The Instanssi Lights Emulator is a Python-based application designed to simulate the lighting setup typically found at the Instanssi demo party. It listens for UDP packets on a configurable port and updates the virtual lights' states based on the received data, displaying these states as colored circles on a graphical interface.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Ensure you have Python 3.8 or newer installed on your system. This project does not support older versions of Python.
- Clone the repository:
git clone https://github.com/konsou/instanssi_lights_emulator.git
cd instanssi_lights_emulator
- Create a virtual environment in the
.venv
folder:
python -m venv .venv
- Activate the virtual environment:
- On Windows:
.venv\Scripts\activate
- On Unix or MacOS:
source .venv/bin/activate
- Install the required packages using
requirements.txt
:
pip install -r requirements.txt
To start the emulator, run the main.py
script from the command line:
python main.py
To send test data to the emulator, you can use the test.py
script. This script simulates data packets that control the lights:
python test.py
Ensure the emulator is running before you send test data.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE.md
file for details.
- Inspiration from the Instanssi demo party organizers.
- The Valoserveri project, the lights server used at Instanssi.
- Visit Instanssi's main website to learn more about the demo party.