Simple web server application for translating web requests into SignalRGB application addresses
This script allows you to launch SignalRGB with specific effects and settings from the web browser using custom URLs.
- Download and install the latest version of Python for Windows from the official website: https://www.python.org/downloads/windows/
- Or install Python3 from MS Store
- Install the required Python packages by running the following command in the terminal:
pip install Flask flask_httpauth
- Clone this repository to your local machine.
- Open the terminal and navigate to the project directory.
- Define IP and port for web server in file
main.py
, by default it is127.0.0.1
and8080
- Add desired usernames and passwords in file
main.py
in theusers
dictionary (first pair used in example urls), by default it is
users = {
"username": "password123",
"user1": "passwqaz",
"apiuser": "apipwdqwe"
}
- Run the following command to start the Flask server:
python main.py
This will start the server athttp://localhost:8080
by default, or use the address and port you provided.
- Create a new shortcut for the
main.py
file. - Right-click on the shortcut and select "Properties".
- In the "Target" field, add the following text at the end of the path: /minimized This will start the script in a minimized window.
- Press the "Windows" key + "R" to open the Run dialog box.
- Type "shell:startup" and press Enter.
- Copy and paste the shortcut into the Startup folder.
- Restart your computer.
The script provides the following endpoints:
http://localhost:8080/effect/apply/<effect_name>?username=username&password=password123
- Launches SignalRGB with the specified effect (silent launch key is not necessary, it is added by default)- Example URL:
http://localhost:8080/effect/apply/Rainbow%20Rise?reverse=false&scale=1&speed=50&xPos=298&yPos=200&username=username&password=password123
http://localhost:8080/view/<view_name>?username=username&password=password123
- Launches SignalRGB with the specified view.- Example URL:
http://localhost:8080/view/devices?username=username&password=password123
To use these endpoints, simply open your web browser and navigate to the appropriate URL. The SignalRGB software should launch automatically with the specified effect or view.
Note: Make sure that SignalRGB is installed and running on your computer before using this script. SignalRGB app urls can be found here: SignalRGB DOCS