Guest User

Untitled

a guest
Nov 20th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # Add credentials and IP
  2. # Use: hue <light_number/room_number> <brightness>
  3.  
  4. hue_user=
  5. hue_ip=
  6.  
  7. hue() {
  8. curl -d "{\"bri\":$2 }" -X PUT $hue_ip/api/$hue_user/lights/$1/state
  9. }
  10.  
  11. room() {
  12. curl -X PUT -d "{\"bri\": $2}" $hue_ip/api/$hue_user/groups/$1/action
  13. }
Add Comment
Please, Sign In to add comment