Skip to content

Instantly share code, notes, and snippets.

@cees-elzinga
cees-elzinga / Philips Hue register new device
Created February 18, 2014 18:45
Philips Hue register new device
import socket
import random
import hashlib
import urllib
import urllib2
import time
import sys
port = 1900
ip = "239.255.255.250"
#!/usr/bin/env python
#
# Ambilight for XBMC picture slideshow
#
# proof-of-concept
#
# Depends on:
# - Python Image library
# - XBMC HTTP API enabled in System -> Services -> Webserver
# - Allow Control of XBMC via HTTP enabled