Skip to content

konsou/instanssi_lights_emulator

Repository files navigation

Instanssi Lights Emulator

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.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Ensure you have Python 3.8 or newer installed on your system. This project does not support older versions of Python.

Setting Up the Project

  1. Clone the repository:
git clone https://github.com/konsou/instanssi_lights_emulator.git
cd instanssi_lights_emulator
  1. Create a virtual environment in the .venv folder:
python -m venv .venv
  1. Activate the virtual environment:
  • On Windows:
.venv\Scripts\activate
  • On Unix or MacOS:
source .venv/bin/activate
  1. Install the required packages using requirements.txt:
pip install -r requirements.txt

Running the Emulator

To start the emulator, run the main.py script from the command line:

python main.py

Sending Test Data

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.

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

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

Acknowledgments

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages