Skip to content

gryphius/pyboblight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyboblight

simple python client library to talk to a boblight daemon (https://code.google.com/p/boblight/)

Status

  • enumerate lights: OK
  • send RGB color values to server: OK
  • change advanced settings (speed, interpolation ): TODO
  • helper functions : (image average, screen grabber, ...): TODO

Example

#!/usr/bin/env python2
import pyboblight
import time
import random

if __name__=='__main__':
    #initialize
    client=pyboblight.BobCLient('192.168.23.56')
    
    #print light information
    print client.lights
    
    #send random colors for 20 seconds
    now=time.time()
    stop=now+20
    while time.time()<stop:
        time.sleep(0.1)
        #prepare the light color changes
        for name,light in client.lights.iteritems():
            light.set_color(random.randint(0,255),random.randint(0,255),random.randint(0,255))
        #tell the client to update the current light color state on the server
        client.update()

About

boblight client library for python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages