Philips Hue API Hacking
Here it is! My Python client for the Philips Hue system is done.
The Short:
It's available on Github.
Sample Usage:
from hue import Hue
h = Hue() # Initialize the class
h.station_ip = "192.168.1.222" # your base station IP
h.get_state() # Authenticate, bootstrap your lighting system
# The first time, you have a minute between calling get_state() and pushing
# the button on your base station to authenticate your machine. It should
# Log and tell you if that is going to happen or not.
l = h.lights.get('l3') # get bulb #3
l.bri(0) # Dimmest
l.bri(255) # Brightest ...
Amazon Prime is awesome
I really, really enjoy having Amazon Prime
This is basically a promotional post for Amazon Prime, describing the benefits it grants as well as the details of why and how I use it. It is a great service and I use it all the time. I also feel inclined to let you know that if you buy something after clicking my links to amazon, I've attached affiliate info, so if you would rather search google and Amazon than use my links, it's up to you, we can still be friends.
The Idea
Amazon Prime is $80, like Sam ...
WeMo API Hacking
WeMo Hacking part two!
In short! It works! miranda, with some tweaks and fixes is a good tool for tinkering with your Belkin WeMo switch with Python. I'd suggest starting with my toolkit here: https://github.com/issackelly/wemo
The WeMo is communicating over pretty standard UPnP, though like anything else, it has some quirks.
It wanted a very specific namespace string for the SOAP envelope that contained a trailing slash and Miranda wasn't sending that.
I also added the same User-Agent that the mobile app uses for the HTTP (via UDP for UPnP) headers, and fixed the ...
Issac Kelly