Giter Site home page Giter Site logo

hueexpression's Introduction

Hue Expression

A demo iOS app that uses ARKit's face-tracking capabilities and the Phillip's Hue SDK to recognize your facial expressions and change the color of your Hue lights according to your expression.

Requirements

In order to run this demo app you will need:

Setup

  1. Clone this repo
  2. In Xcode, open ServerController.swift and replace hueBridgeIP with this IP address (see below)
  3. In Xcode, open ServerController.swift and replace hueUsername with your authenticated username (see below)
  4. Run the app to your iPhone X

Getting Your Bridge's IP

  1. Open the Phillip's Hue iOS app
  2. Go to Settings>Hue Bridges>Select your Bridge and get the IP Address

Getting an Authenticated Hue Username

Note: If you have any trouble with this part, you can find a walkthrough on the Hue Developer Site.

  1. Run the following command in terminal (replacing IP_ADDRESS_HERE with the IP address of your Hue bridge)
curl -X POST \
  http://<IP_ADDRESS_HERE>/api/ \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -d '{"devicetype":"hue_expressionp#iphone user"}'
  1. Press the link button on your Hue Bridge
  2. Run the above command again
  3. Grab the username value from the response JSON

Resources

hueexpression's People

Watchers

James Cloos avatar Kyle Haptonstall avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.