simple python client library to talk to a boblight daemon (https://code.google.com/p/boblight/)
- enumerate lights: OK
- send RGB color values to server: OK
- change advanced settings (speed, interpolation ): TODO
- helper functions : (image average, screen grabber, ...): TODO
#!/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()