Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Add credentials and IP
- # Use: hue <light_number/room_number> <brightness>
- hue_user=
- hue_ip=
- hue() {
- curl -d "{\"bri\":$2 }" -X PUT $hue_ip/api/$hue_user/lights/$1/state
- }
- room() {
- curl -X PUT -d "{\"bri\": $2}" $hue_ip/api/$hue_user/groups/$1/action
- }
Add Comment
Please, Sign In to add comment