Skip to content

Instantly share code, notes, and snippets.

@tateren
Created October 31, 2015 12:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tateren/6df6155b8c2459b31e47 to your computer and use it in GitHub Desktop.
Save tateren/6df6155b8c2459b31e47 to your computer and use it in GitHub Desktop.
#!/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\"}"
@robotsandcake
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment