Connects OctoPrint events to IFTTT.
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.
A unique API key for IFTTT. Go here and click Documentation
. Look at the URL it sends you to; the last part (after the /use/
) is the makerkey. You can put multiple makerkeys, seperated by newlines, here.
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.
Define events to send to IFTTT.
A list of triggers to trigger on IFTTT.
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
forPrintDone
) - 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 topath
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 - If it begins with a dollar sign (
$
), it will:- If the second character is a
t
:- Let
time
be the result of interpreting the string with the first three characters removed as a value. - If the third character is
:
, it will formattime
inH:MM
format (e.g.1:02
). - If the third character is
$
, it will formattime
inH:MM:SS
format (e.g.1:02:34
) - If the third character is
h
, it will formattime
in Hhformat (e.g.
1h`) - If the third character is
m
, it will formattime
inHh Mm
format (e.g.1h 2m
) - If the third character is
s
, it will formattime
inHh Mm Ss
format (e.g.1h 2m 34s
)
- Let
- If the second character is a
- Otherwise, it will just send the plain text