Author Topic: Webhook Triggers  (Read 129 times)

HeneryH

  • Full Member
  • ***
  • Posts: 229
Webhook Triggers
« on: February 15, 2020, 01:30:16 PM »
I am thinking that I saw something about maybe a new node type in recent versions of Gateway but I can't seem to find anything anywhere.

Can the new version of Pi Gateway react to any web hooks?

I currently have a hack where I have a totally separate app that listens for external triggers and then sends messages to the gateway.  I could do away with that whole app if I can program the main gateway to accept web triggers.

Any thoughts?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6279
  • Country: us
    • LowPowerLab
Re: Webhook Triggers
« Reply #1 on: February 18, 2020, 09:31:51 AM »
Web triggers, web hooks. Not sure if I (and readers) understand the same thing by this terminology.
But I am guessing the secure HTTP request feature would be able to do what you want. I believe you started a separate thread about that where I went into details how to call it from a different place. How you consume the data of that request is up to you (ie add data to a (new) node, or interpret it in some special way).

HeneryH

  • Full Member
  • ***
  • Posts: 229
Re: Webhook Triggers
« Reply #2 on: February 18, 2020, 01:45:54 PM »
I'll go back and look into the post history.  I had done most of this work a while back and am just revisiting it now.

The goal is to emulate a button press when a "internet input" happens.  With some type of secret key to validate.


Looks like this might be it - https://lowpowerlab.com/forum/pi-gateway/gateway-v9-httpendpoint-api/