Using IFTTT - Controlling my lights from Touch Bar.

#1

Its very easy to add a button on your Touch Bar to control your "smart" lights, or anything IFTTT can control. Im not going through all the setup unless people are interested, but here's a quick synopsis.

  1. Create your IFTTT "applet" using a Webhook control.
  2. Take note of your Webhook key {your key} in your IFTTT account, and the name you gave your applet {event}.
  3. Create your BetterTouchBar Button with the following AppleScript.

return do shell script "curl -X POST https://maker.ifttt.com/trigger/{event}/with/key/{yourKey}"

A full writeup can be found here:https://www.imore.com/how-use-ifttt-touch-bar-macbook-pro

0 Likes