- Install dependencies
- Download
huelocalsdk.jar
andhuesdkresources.jar
from http://www.developers.meethue.com/documentation/java-multi-platform-and-android-sdk - Install the Hue SDK jars into your local repository:
- mvn install:install-file -Dfile=huelocalsdk.jar -DgroupId=com.philips -DartifactId=huelocalsdk -Dversion=1.11.2 -Dpackaging=jar
- mvn install:install-file -Dfile=huesdkresources.jar -DgroupId=com.philips -DartifactId=huesdkresources -Dversion=1.11.2 -Dpackaging=jar
- Optionally download the
huelocalsdk-javadoc.jar
andhuesdkresources-javadoc.jar
from Philips and install them into the local repository as well- mvn install:install-file -DgroupId=com.philips -DartifactId=huelocalsdk -Dversion=1.11.2 -Dfile=huelocalsdk-javadoc.jar -Dpackaging=jar -Dclassifier=javadoc
- mvn install:install-file -DgroupId=com.philips -DartifactId=huesdkresources -Dversion=1.11.2 -Dfile=huesdkresources-javadoc.jar -Dpackaging=jar -Dclassifier=javadoc
- Download
- Run
mvn clean install
to build the application - Run the SimpleHueTester to get a username and bridge IP to add to your configuration properties
- Run the application using
mvn exec:java -Dexec.args=/path/to/configuration/app.properties
- app.broker.url
- app.client.username
- app.client.password
- app.client.client_id
- app.broker.topic
- com.ibm.ssl.protocol
- com.ibm.ssl.trustStore
- com.ibm.ssl.trustStorePassword
- hue.last_connected_ip
- hue.username