• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    Python
  • License
    Other
  • Created about 12 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python client for Philips Hue -- determined via API reverse engineering

Python-Hue

Python client for the Philips Hue lighting system. I figured out almost all of this by monitoring the traffic on my router. I then found https://github.com/alistairg/IndigoHue/blob/master/Hue.indigoPlugin/Contents/Server%20Plugin/plugin.py which gave some clues about RGB support and the magic strings (select, lselect) to send alerts.

Sample Usage is not docs:

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
l = h.lights.get('l3') # get bulb #3
l.bri(0) # Dimmest
l.bri(255) # Brightest
l.rgb(120, 120, 0) # [0-255 rgb values]
l.rgb("#9af703") # Hex string
l.on()
l.off()
l.toggle()
l.alert() # short alert
l.alert("lselect") # long alert
l.setState({"bri": 220, "alert": "select"}) # Complex send

Have fun! Let me know how you're using it.

More Repositories

1

wemo

wemo Proof of Concept. Should be used as a starting point for your own UPnP WeMo hacking
Python
162
star
2

Consuming-Web-APIs-with-Python-Talk

Corresponding Code for my Talk on 7/30 @ PyOhio
JavaScript
26
star
3

django-improved-inlines

Inline object rendering for django, based on django-basic-apps + filters + templates
Python
22
star
4

sc2tourney

Starcraft 2 Tournament Application in a Django App
Python
19
star
5

Building-Web-APIs-for-Django-with-Tastypie-Talk

Issac Kelly - DjangoCon US 2011
JavaScript
18
star
6

django-redis-analytics

0.0 version of django + redis analytics package:: was primarily a learning project for redis and django middleware, it could use some love.
JavaScript
12
star
7

static-site-cms

Static/Dynamic site combination. Flat files, Client side routing and rendering. That's it.
JavaScript
6
star
8

django-qimg

Create Arbitrary Sized Images for quick Wireframes from a simple url. Images can have arbitrary text, and you can use any opentype or truetype font. Text auto-resizes to fit in image.
Python
5
star
9

github-issues-dashboard

Very Much a work in progress github issues dashboard
JavaScript
4
star
10

django-boxoffice

event ticketing app
Python
4
star
11

cohpy2011

Re-doing the cohpy website. Adding a library module to record who has the books (and keep reviews/lists of who has read it) I'm giving a talk on 1/31 over how it got built.
Python
4
star
12

Teaching-Django-to-Comrades-Talk

Issac Kelly - DjangoCon US 2011
JavaScript
2
star
13

oor-javascript

[Alpha] Open Object Recognition for capacitive touch surfaces. Javascript implementation.
Eagle
2
star
14

Creating-Web-APIs-that-are-a-Joy-To-Use

Talk at PyOhio 2011
Python
2
star
15

proposed-pinax-wiki-project

Proposed starter project for Pinax Wiki
Python
1
star
16

murphy

Test on my musichackday repo
1
star
17

luna

Luna is a personal project to manage family photos
Python
1
star
18

shelves

Jupyter Notebook
1
star
19

vaxt

Timescaledb Toy
Python
1
star
20

fireflies

Hardware and Software files for a battery powered Arduino compatible board for lighting art
Eagle
1
star
21

influx_migrations

Python
1
star
22

snowwhite

Nonsense Project, experimenting with FadeCandy, OpenCV/SimpleCV, and some other toys.
Python
1
star