Created
October 31, 2015 12:50
-
-
Save tateren/6df6155b8c2459b31e47 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
CURL=/usr/bin/curl | |
IFTTT_EVENT="$1" | |
IFTTT_KEY="XXXXXXXXXXXXXXXXXXXXX" | |
IFTTT_URL="https://maker.ifttt.com/trigger/${IFTTT_EVENT}/with/key/${IFTTT_KEY}" | |
${CURL} -X POST \ | |
${IFTTT_URL} \ | |
--header "Content-Type: application/json" \ | |
--data-binary "{\"value1\": \"$2\",\"value2\": \"$3\",\"value3\": \"$4\"}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably weren't expecting this when you created this Gist 10 months ago, but if I could give you a big sloppy kiss right about now I would do! I have been trying to solve this problem for about a week, you've just help this quadriplegic more easily turn on his lights, call for help when needed and turn his music on and off. Well done you! :-)
Sincerely, thanks.