[Active] Noob needs help with Webhook trigger

Florian

New member
Hey guys, would like to know what is possible with the Webhook trigger and how to do it. Is it possible to link that to discord somehow or something? Discord also has webhooks and I still don't get how these work. Everything helps. Would appreciate some answers and such. Thanks :)
 

hsurB

Well-known member
Webhook is a link that when entered will work as a trigger to fire your macro.
Note that there are multiple apps that can 'enter the link' using http request action (its macrodroid also).

I am for exemple using webhooks to communicate between my devices: my 2 phones and pc.
I can remotely trigger macros on my second phone (or main one) or unlock my main phone using my pc etc.


Oh and about discord, I am not sure what what they do exactly but you probably could use send http request action to 'control' your discord using macrodroid - sending messages etc.
 
Last edited:

Florian

New member
Webhook is a link that when entered will work as a trigger to fire your macro.
Note that there are multiple apps that can 'enter the link' using http request action (its macrodroid also).

I am for exemple using webhooks to communicate between my devices: my 2 phones and pc.
I can remotely trigger macros on my second phone (or main one) or unlock my main phone using my pc etc.


Oh and about discord, I am not sure what what they do exactly but you probably could use send http request action to 'control' your discord using macrodroid - sending messages etc.
Hey, me again. I have found out how to use webhooks as triggers and there is something to save a "body" in a variable... What is that and can I change that?
 

AkashiDom

Active member
Hey, me again. I have found out how to use webhooks as triggers and there is something to save a "body" in a variable... What is that and can I change that?
Body is like additional input. It mostly happen when you use your Webhook using method POST.
 

Florian

New member
Yea, use HTTP (POST) to ur link then add something to content body.
I trigger the macro on my phone with just opening the urls on my laptop. That doesn't work then, does it? Like maybe a form there? It shows "ok", so you could add simple text there. Can't I add a input field there somehow? If not, imma see if there is something similar to MD on desktop.
 

AkashiDom

Active member
I trigger the macro on my phone with just opening the urls on my laptop. That doesn't work then, does it? Like maybe a form there? It shows "ok", so you could add simple text there. Can't I add a input field there somehow? If not, imma see if there is something similar to MD on desktop.
When it shows ok that means the trigger works
However, body will be empty because opening link using browser is HTTP (GET)

If you want to send data using http GET, use query param ask @MacroDroidDev for more info or check the wiki page
 
Top