Skip to content

Instantly share code, notes, and snippets.

@smithjw

smithjw/party.sh Secret

Created Nov 25, 2015
Embed
What would you like to do?
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