Skip to content

Instantly share code, notes, and snippets.

@smithjw

smithjw/party.sh Secret

Created November 25, 2015 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smithjw/22d6564f9e9981e5b0c6 to your computer and use it in GitHub Desktop.
Save smithjw/22d6564f9e9981e5b0c6 to your computer and use it in GitHub Desktop.
party
aplay /home/pi/ding/Celebration.wav &
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"red","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:James/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"orange","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Alexis/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"yellow","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Berty/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"cyan","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Chloe/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"green","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Katy/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"blue","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Nikkers/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"purple","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Rod/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"pink","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:label:Kitchen - 1/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"red","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Kitchen - 2/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"orange","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Kitchen - 3/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"yellow","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Kitchen - 4/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"red","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:James/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"orange","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Alexis/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"yellow","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Berty/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"cyan","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Chloe/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"green","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Katy/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"blue","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Nikkers/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"purple","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Rod/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"pink","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:label:Kitchen - 1/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"red","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Kitchen - 2/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"orange","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Kitchen - 3/effects/breathe" &
sleep .2
curl -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X POST -d '{"color":"yellow","period":2,"cycles":1,"persist":false,"power_on":true}' "https://api.lifx.com/v1/lights/label:Kitchen - 4/effects/breathe" &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment