Command-Line Interface (CLI) Usage
signalrgb-python provides a user-friendly command-line interface for interacting with your SignalRGB setup. This guide covers the basic usage of the CLI.
🚀 Basic Syntax
The basic syntax for using the SignalRGB CLI is:
You can always use the --help
option to get more information about available commands and options:
📋 Available Commands
🎨 Effect Commands
List Effects
To list all available lighting effects:
Get Effect Details
To get detailed information about a specific effect:
Replace "Effect Name" with the name of the effect you want to inspect.
Apply an Effect
To apply a specific effect:
Get Current Effect
To see which effect is currently active:
Navigate Through Effects
To apply the next effect in history:
To apply the previous effect in history:
To apply a random effect:
💾 Preset Commands
List Presets
To list presets for the current effect:
Apply a Preset
To apply a preset to the current effect:
📐 Layout Commands
List Layouts
To list all available layouts:
Set Current Layout
To set the current layout:
🎛️ Canvas Commands
Control Brightness
To set the brightness level (0-100):
To get the current brightness level:
Enable/Disable Canvas
To enable the canvas:
To disable the canvas:
To toggle the canvas state:
🌐 Global Options
You can specify a custom host and port for all commands:
💡 Examples
Here are some example use cases:
- List all effects and pipe the output to
grep
to find a specific effect:
- Apply the "Rave Visualizer" effect:
- Get details of the current effect and save it to a file:
- Set the brightness to 50% and then disable the canvas:
- List layouts and switch to a different one:
- Create a simple effect cycle script:
#!/bin/bash
# Cycle through 5 random effects
for i in {1..5}; do
signalrgb effect random
sleep 5 # Wait 5 seconds between effects
done
Remember to refer to the --help
option for each command to see all available options and arguments: