Skip to content

e!COCKPIT Library for sending events to IFTTT with Webhook REST API

License

Notifications You must be signed in to change notification settings

braunku/e-IFTTT-Webhook-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

e!COCKPIT IFTTT Webhook Library

This is a library for e!COCKPIT to send webhook events to IFTTT

This compiled library once installed into e!COCKPIT using the library manager, will allow simple function block to send events to IFTTT cloud service. This library relies on cURL, there for you will need to install the cURL ipk using the PFC100/200 web based management (WBM).

Install

Use the an scp client to copy the cURL ipk file to the root folder of the PFC, then use an ssh client to install the file as shown below.

You can test this by cut/pasting your IFTTT example cURL command, with a -k added at the end to disable SSL. If you want to pass the three values, then modify the command this way.

curl -X POST -H "Content-Type: application/json" -d "{\"value1\":\"Hello \",\"value2\":\"World \",\"value3\":\"!\"}" https://maker.ifttt.com/trigger/{event}/with/key/{your key here} -k

IPK Installation IFTTT Key

Use the e!COCKPIT Library Manager to install the compiled IFTTT library. IFTTT Library Installation

How to use

  1. Create an instance of the function block called IFTTT_Send

  2. Pass the string variables for the three optional values.

  3. Copy your IFTTT Webhook key. This can be found by logging into your IFTTT acount, then look in IFTTT>Services>Webhooks>Documentation.

  4. Create a recipe in your IFTTT account using the event name you create to trigger the "then" action you desire.

example usage: Flow Example

YouTube Tutorial: https://youtu.be/cTGchqEa3AU

Authors

[Kurt Braun][3]

About

e!COCKPIT Library for sending events to IFTTT with Webhook REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published