Skip to content

Instantly share code, notes, and snippets.

@GammaGames
Last active July 25, 2022 01:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save GammaGames/d424ea1606e60cea328c9a16abf42059 to your computer and use it in GitHub Desktop.
Save GammaGames/d424ea1606e60cea328c9a16abf42059 to your computer and use it in GitHub Desktop.
kano wand + phillips hue
from kano_wand.kano_wand import Shop, Wand, PATTERN
from qhue import Bridge
import moosegesture as mg
import time
import random
import math
class GestureWand(Wand):
def post_connect(self):
print(self.name)
shop = Shop(wand_class=GestureWand)
wands = []
while len(wands) == 0:
print("Scanning...")
wands = shop.scan(connect=True)
for wand in wands:
wand.disconnect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment