Connects OctoPrint events to IFTTT
Clone or download
Latest commit 0c3b8cb Jan 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
extras initial commit Dec 28, 2018
octoprint_IFTTT fixed issue #9/#1 Jan 8, 2019
translations initial commit Dec 28, 2018
.editorconfig initial commit Dec 28, 2018
.gitignore initial commit Dec 28, 2018
MANIFEST.in initial commit Dec 28, 2018
README.md update README Jan 6, 2019
babel.cfg initial commit Dec 28, 2018
requirements.txt initial commit Dec 28, 2018
setup.py vb to 1.1.0 Jan 6, 2019

README.md

OctoPrint-IFTTT

Connects OctoPrint events to IFTTT.

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/tjjfvi/OctoPrint-IFTTT/archive/master.zip

Then follow the steps listed here.

Configuration

Makerkeys

A unique API key for IFTTT. Go here and look for the URL. The last part (after the /use/) is the makerkey. You can put multiple makerkeys, seperated by newlines, here.

Default prefixes

Default prefixes for the triggers. If you have an event MyEvent and prefixes prefix1- and prefix2-, it will, by default make the triggers prefix1-MyEvent and prefix2-MyEvent. Seperate the prefixes with newlines.

Events

Define events to send to IFTTT.

Triggers

A list of triggers to trigger on IFTTT.

Values

IFTTT Webhooks allows for a payload with three values. It will interpret this string like so:

  • If the value begins with a dot (.), it will use that prop of the event payload (e.g. .name for PrintDone)
  • If it begins with an at symbol (@):
    • path will be the result of interpreting the string with the first two characters removed as a value
    • If the second character in the value is an f it will prepend to path the base uploads folder
    • Otherwise, the second character should be a dash (-)
    • It will then upload the file at path to file.io and return a link to that file.
  • If it begins with a colon (:) it will use the string after the colon
  • Otherwise it will just send the plain text