1
0
Fork
You've already forked pyboblight
0
boblight client library for python
  • Python 100%
Find a file
2013年10月22日 12:29:07 +02:00
examples initial commit 2013年10月22日 12:29:07 +02:00
pyboblight initial commit 2013年10月22日 12:29:07 +02:00
.gitignore initial commit 2013年10月22日 12:29:07 +02:00
MANIFEST.in initial commit 2013年10月22日 12:29:07 +02:00
README.md initial commit 2013年10月22日 12:29:07 +02:00
setup.py initial commit 2013年10月22日 12:29:07 +02:00

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()