Skip to content

Instantly share code, notes, and snippets.

View nicholaspearson's full-sized avatar
🎯
Focusing

Nick Pearson nicholaspearson

🎯
Focusing
View GitHub Profile
@nicholaspearson
nicholaspearson / hue_auto.sh
Created May 26, 2016 00:48
Turns off your mates Philips Hue Lights :D
#!/usr/bin/php
<?php
class HueAuto
{
// Lights Off
// Turn on the radio
// HTTP Stream Context
protected $ctx;
@nicholaspearson
nicholaspearson / luxafor.py
Created September 6, 2015 21:38
Luxafor CLI
#!/usr/bin/python
import usb.core
import usb.util
import sys
import getopt
import time
# find our device
dev = usb.core.find(idVendor=0x04d8, idProduct=0xf372)