User Tools

Site Tools


philips_hue_tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
philips_hue_tutorial [2017/01/04 03:16] dwallacephilips_hue_tutorial [2017/01/04 09:58] (current) dwallace
Line 8: Line 8:
 \\ \\
 \\ \\  \\ \\ 
-{{  }}+{{ youtube>p0e1fbwhxSo?large }}
 \\ \\  \\ \\ 
  
Line 21: Line 21:
 ===== Downloads ===== ===== Downloads =====
  
 +First, make sure that you have installed and configured Android Studio as described in the [[nest_tutorial#downloads|Nest Control Tutorial]]. You should have done this already if you are following this tutorial series in the proper order.
  
 +The other download that we will need is the [[https://github.com/PhilipsHue/PhilipsHueSDK-Java-MultiPlatform-Android|Philips Hue SDK]], hosted on GitHub. Please download this before proceeding with the tutorial.
  
 +===== Setting up the SDK in Android Studio =====
 +
 +Now, we need to import the SDK project into Android Studio. Please follow the same steps as the [[nest_tutorial#setting_up_the_android_studio_project|Nest Control Tutorial]], and just import the Philips Hue project instead of the Nest SDK project. Don't worry about granting authentication tokens, as the Hue SDK does not require this.
 +
 +Once you have imported the project, do a clean build to ensure that no errors occur. If so, you should be ready to deploy your app.
 +
 +===== Deployment ======
 +
 +Now, we will deploy our app with the same method used in the [[nest_tutorial#deployment|Nest Control Tutorial]]. Make sure the both Developer Mode and USB Debugging are enabled in order for this to work. Once you have successfully installed the app onto your device, you should be ready to test with the Hue lights.
 +
 +===== Testing =====
 +
 +Once you have deployed your app, you are ready to start testing with your Hue bridge and Hue lights. To do this, simply connect to the same WiFi network as the Hue bridge, and start the app. The app will then walk you through the process of pairing the Hue bridge to the app. After this process is done, your app will be paired with that Hue bridge as long as you are connected to the network. 
 +
 +Now, simply use the Random Lights button to change the color of the Hue lights at random. This is ajust a simple sample app that demonstrates the basic functionality of the Hue API. From here, we can then develop our own app to suit our needs. To do this, follow the steps outlined on the [[https://developers.meethue.com/documentation/java-multi-platform-and-android-sdk|Java SDK]] page. Alternatively, you could use the sample code as a starting point for your own app, as it is freely open to build upon.
 +
 +
 +For questions, clarifications, etc, Email: <[email protected]>
philips_hue_tutorial.1483528592.txt.gz · Last modified: 2017/01/04 03:16 by dwallace