Wrapper for cheap LED strip with Bluetooth LE
NOTE: This is early phase of development and not everything may be working properly.
- Install dependencies:
pip3 install -r requirements.txt- Fill JSON config just like below: [server/src/config.json]:
{
"devices": {
"ELK-BLEDOM": "XX:XX:XX:XX:XX:XX"
},
"server": {
"ip": "0.0.0.0",
"port": 12345
}
}- Let's try to run it:
./main.pyThere is no client app yet. Instead you can use the netcat tool to send JSON commands (UDP protocol):
netcat -u <ip> <port>{"device": "ELK-BLEDOM", "command": "power", "value": true}
{"device": "ELK-BLEDOM", "command": "brightness", "value": 100} // values: <0-100>
{"device": "ELK-BLEDOM", "command": "color_rgb", "value": "ffffff"} // values: rrggbb
{"device": "ELK-BLEDOM", "command": "effect", "value": "GRADIENT_RGBYCMW"} // values: the list below RED
GREEN
BLUE
YELLOW
CYAN
MAGENTA
WHITE
JUMP_RGB
JUMP_RGBYCMW
GRADIENT_RGB
GRADIENT_RGBYCMW
GRADIENT_RED
GRADIENT_GREEN
GRADIENT_BLUE
GRADIENT_YELLOW
GRADIENT_CYAN
GRADIENT_MAGENTA
GRADIENT_WHITE
GRADIENT_RED_GREEN
GRADIENT_RED_BLUE
GRADIENT_GREEN_BLUE
BLINK_RGBYCMW
BLINK_RED
BLINK_GREEN
BLINK_BLUE
BLINK_YELLOW
BLINK_CYAN
BLINK_MAGENTA
BLINK_WHITE
- More commands
- BLE scanner
- GUI client apps
- Integration with Google Assistant