-
Notifications
You must be signed in to change notification settings - Fork 6
Home
sedgett edited this page Mar 30, 2018
·
3 revisions
Welcome to the OctoPrint_IFTTTmaker wiki!
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.
- 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
- Open an IFTTT account if you don't have one
- Goto https://ifttt.com/services/maker_webhooks/settings
- Click Connect
- You should see a URL: https://maker.ifttt.com/use/`XXXXXXXXXXXX`
- Instead of a bunch of Xs you will see your maker key
- You can now create recipies using the webhook connector
- Goto https://ifttt.com/create
- Click
+this
and search for webhooks - Select
Receive a web request
- For
Event Name
enter op-PrintDone (or any other trigger from the plugin) - Click
create trigger
- Click
+that
- Search for
Notifications
- Select
Send a notification from IFTTT app
- Change the text to
{{EventName}} {{Value1}} finished ({{Value2}})
(Value 1 is the name of the file and Value 2 is the elapsed time.) - Click
Create Action
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"