Created
August 20, 2017 02:33
-
-
Save EbenezerGH/8320181ad3a87fe61633b440e295d97b to your computer and use it in GitHub Desktop.
few commands for arduino,hue communication.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reference Links: | |
https://www.developers.meethue.com/documentation/getting-started | |
# Upon entry | |
url: /api | |
{"devicetype":"my_hue_app#android ebenezer"} | |
method: POST | |
# Authenticated Hue ID: (ID token changes each reset) | |
qtiZQ6RLayFCNVdwWsjxch33N4XqoPjZw422DWba | |
# Get a listing of all lights | |
url: http://192.168.1.6/api/qtiZQ6RLayFCNVdwWsjxch33N4XqoPjZw422DWba/lights | |
method: GET | |
# Call a specific Light | |
url: http://192.168.1.6/api/qtiZQ6RLayFCNVdwWsjxch33N4XqoPjZw422DWba/lights/[light number] | |
method: GET | |
# Turn Light on/off | |
url: http://192.168.1.6/api/qtiZQ6RLayFCNVdwWsjxch33N4XqoPjZw422DWba/lights/[light number]]/state | |
body: {"on":[false or true]]} | |
method: put | |
# Change Hue Light Saturation and Brightness (max for sat & bri is 254, measure ofhue is from 0 to 65535) | |
url: url: http://192.168.1.6/api/qtiZQ6RLayFCNVdwWsjxch33N4XqoPjZw422DWba/lights/[light number]]/state | |
body: {"on":true, "sat":254, "bri":254,"hue":10000} |
IVr65gbuDmvX29cMwwlKLnodMVtRpsefVnNVyb2N
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://192.168.1.6/debug/clip.html