Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ble_led_strip

Wrapper for cheap LED strip with Bluetooth LE


NOTE: This is early phase of development and not everything may be working properly.


First usage (server)

  1. Install dependencies:
pip3 install -r requirements.txt
  1. 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
    }
}
  1. Let's try to run it:
./main.py

First usage (client)

There is no client app yet. Instead you can use the netcat tool to send JSON commands (UDP protocol):

netcat -u <ip> <port>

Examples

{"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

More effects

    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        

TODO

  • More commands
  • BLE scanner
  • GUI client apps
  • Integration with Google Assistant

References

About

Wrapper for cheap LED strip with Bluetooth LE

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages