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.
In order to run this demo app you will need:
- Xcode 9.2 or above
- An iPhone X
- 1 Phillips Hue Color Ambiance bulb
- The Phillips Hue iOS app
- Clone this repo
- In Xcode, open
ServerController.swift
and replacehueBridgeIP
with this IP address (see below) - In Xcode, open
ServerController.swift
and replacehueUsername
with your authenticated username (see below) - Run the app to your iPhone X
- Open the Phillip's Hue iOS app
- Go to Settings>Hue Bridges>Select your Bridge and get the IP Address
Note: If you have any trouble with this part, you can find a walkthrough on the Hue Developer Site.
- 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"}'
- Press the link button on your Hue Bridge
- Run the above command again
- Grab the
username
value from the response JSON