/woohue

Python Goal Light for Philips Hue Lights using NHL API

Primary LanguagePythonMIT LicenseMIT

Woohue

Woohue is a Python program that retrieves information from the public NHL API, and triggers a goal light celebration on color capable Philips Hue lights.

Note: The NHL live score API is updated every 60 seconds, thus if you're watching live on TV the celebration could be triggered up to 59 seconds after a goal is scored. I've had excellent results while watching through a streaming app such as NBC Sports.

Installation

I am currently working on setuptools installation. In the meantime:

 $ git clone https://github.com/librien/woohue
 $ cd woohue

Recommended to create a virtualenv (>= Python 3.6)

 $ pip install -r requirements.txt

Windows users will need to manually install curses to run configuration.

 $ pip install windows-curses

Setup

Start Bridge Discovery

Automatically discover Hue bridge and color capable lights

Select Lights

Select your goal lights

Pick your team

Select your favorite team

Upon successful writing of the config file, your goal lights should activate.

Select your favorite team

Requirements

  • Add requirements

Known Issues

  • Some terminals / console emulators may have issues with the curses library (I experienced errors with Cygwin / ConEmu). PuTTY has been tested and works for Raspberry Pi SSH connection.