I seek some assistance from a community member who is willing to assist me creating webhooks and PHP scripts in IPS.
I want to integrate LOQED in IPS using webhooks. I’ve successfully integrated LOQED with the IFTTT module in IPS, only passing on web request from IPS to IFTTT to LOQED and vice versa. I assume it must be possible to do exactly the same without IFTTT.
The LOQED webhook service supports three different actions; Open, Lock, and Unlock. These actions can be triggered by three different URLs (URLs have been sanatized):
Right now I’m using three different IFTTT instances in IPS, one for each action.
I was thinking about creating an integer variable with 3 possible values, Open, Lock, and Unlock. Each value would trigger the corresponding URL.
Status updates are POSTed by the LOQED webhook service. I suppose it must be possible to use a webhook in IPS. At the moment I have the following configured in IFTTT (and corresponding IFTTT instance in IPS):
https://999999.ipmagic.de/hook/IFTTT
POST
application/json
{"username":"user","password":"password","objectid":999999,"values":{"JsonPayload":"<<<{{JsonPayload}}>>>"}}
An update of the ‚JsonPayload‘ string variable triggers the following PHP script in IPS:
How can I configure webhooks and PHP scripts in IPS to integrate LOQED directly without using IFTTT?
I hope someone can put me in the right direction. Thanks!
(crosspost)
Cheers,
Dennis.
So now I still need to find a way to create a variable with three possible values (open, lock, unlock) that HTTPS GET the URLs in the 1st post and make it available in WebFront.
I did take a look at cURL briefly, but couldn’t find instructions (or php script I could use as an example). Another community member offered some help. (link)