crunchie84 / samantha-hue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

samantha-hue

This repository contains a prototype for a smart room setup created during a one day hackathon hosted by the Girls in Tech. In the future you want to ask questions to your home and receive feedback. By the use of the Philips Hue lightbulbs we can use the lights in your home as visualiser for information.

This demo uses the speech recognition api in Chrome to recognize when you request the weather in a city (in dutch 'Hoe is het weer in XXXX'). It will retrieve the weather information from OpenWeatherMap and display it on the lightbulbs:

  • Sunny - Yellow lights
  • Cloudy - Grey / bluehish
  • Rainy - Blue with flashes of white/greyish

Usage

If you have the Philips Hue hackaton kit at your disposal follow the connection guide first. Otherwise readup how to connect your Hue bridge locally on your network here. If required update the bridge IP address and user in the /js/weather.js file.

create a local server at the location of the index file with: python -m SimpleHTTPServer 8080

open index.html in your browser from a local webserver (for isntance, use the python oneliner python -m SimpleHTTPServer 8080 . to run one in the source folder)

Say "Hoe is het weer in Barcelona" with your best dutch accent.

Demo

This is a short demo of the output for sunny Barcelona: Youtube

Changes

The openweathermap api has changed, so you need to create an account and add the appid as a querystring into the request

License

MIT

About

License:MIT License


Languages

Language:JavaScript 99.9%Language:HTML 0.1%