Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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

This comment has been minimized.

Copy link

robotsandcake commented Sep 3, 2016

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
You can’t perform that action at this time.