Skip to content
sedgett edited this page Mar 30, 2018 · 3 revisions

Welcome to the OctoPrint_IFTTTmaker wiki!

Why?

I originally started the plugin to use IFTTT to control a power outlet in order to have the printer power off after the print was completed.

Recipes / Applets Ideas

  • On op-PrintDone notify using the ios or android notification hook.
  • On op-PrintDone shutoff your wemo outlet
  • On op-PrintStarted turn on a hue lamp; on op-PrintDone turn it off
  • On op-PrintDone log to a google spreadsheet
  • On op-PrintDone send a tweet

Setting up IFTTT Webhooks

  1. Open an IFTTT account if you don't have one
  2. Goto https://ifttt.com/services/maker_webhooks/settings
  3. Click Connect
  4. You should see a URL: https://maker.ifttt.com/use/`XXXXXXXXXXXX`
  5. Instead of a bunch of Xs you will see your maker key
  6. You can now create recipies using the webhook connector

Creating an example recipe

  1. Goto https://ifttt.com/create
  2. Click +this and search for webhooks
  3. Select Receive a web request
  4. For Event Name enter op-PrintDone (or any other trigger from the plugin)
  5. Click create trigger
  6. Click +that
  7. Search for Notifications
  8. Select Send a notification from IFTTT app
  9. Change the text to {{EventName}} {{Value1}} finished ({{Value2}}) (Value 1 is the name of the file and Value 2 is the elapsed time.)
  10. Click Create Action

Troubleshooting

Here are a few tips for trouble shooting:

  • The op-ClientOpened event is triggered every time you connect to octoprint via the browser. You can re-trigger this by refreshing the browser. (Easiest was to test event triggers)
  • Visit https://ifttt.com/activity to see what is happening from the ifttt side
  • To see the logs from octoprint try "tail -f /home/pi/.octoprint/logs/octoprint.log | grep IFTTT"
Clone this wiki locally