My first "MacroDroid Web Controller" macro (HowTo)

HCC

Member
MacroDroid Web Controller (MDWC) thread:

Hi,
I visited
https://macrodroid-wc.web.app/
and I installed "MacroDroid Web Controller" on two smartphones.

On smartphone 1 I entered the "webhook Id" from smartphone 2 and
on smartphone 2 I entered the "webhook Id" from smartphone 1.

With success.

Then I visited the "Actions" page on https://macrodroid-wc.web.app .
The website says "no actions saved".

-How do i add an action? (I would like to have a play pause function
to start / stop the vlc player on smartphone 2 with smartphone 1).
 
Last edited:

HCC

Member
Do I get the webhook ID on the target smartphone ?
 

Attachments

  • webhook-id.jpg
    webhook-id.jpg
    45.7 KB · Views: 13

FrameXX

Well-known member
Do I get the webhook ID on the target smartphone ?
Oh Sorry! This should have been clarified. You are interested in the webhook ID of the device (the target device) you are going to control from the website. I will try to make it more clear.
 

FrameXX

Well-known member
-How do i add an action? (I would like to have a play pause function
to start / stop the vlc player on smartphone 2 with smartphone 1).

Seems like the UI is not user friendly enough 😅. There's a round floating button in the bottom right corner of the screen. What could that be for? Maybe I should try clicking that?
 
Last edited:

HCC

Member
When entering the "Webhook Id" I get a notification on the target phone and then I confirm the message by pressing "CONFIRM".
-Then: Under "Actions I choose "Set Volume" and when I send the action by pressing the white
floating button in the right corner I get an error message in the browser ...
"There are no configured connections to trigger actions on"

And: The Macrodroid System Log" is showing
"HTTP Request failed: https://ntfy.sh/macrodrois-wc-ryluruku" ( path not found )
error.
 

Attachments

  • NoConfiguredConnections.jpg
    NoConfiguredConnections.jpg
    49.6 KB · Views: 14
  • HttpRequestFailed.jpg
    HttpRequestFailed.jpg
    134.9 KB · Views: 12

FrameXX

Well-known member
1.
YOU JUST LEAKED YOUR WEBHOOK ID TOGETHER WITH CONNECTION IDS in the screenshot of the system log. What does that mean? I or anyone else could now remotely trigger any of the actions MacroDroid Web Controller offers. Please reset your webhook ID in MacroDroid settings.

2.
Again looking at your screenshot I see "MDWC companion4". I hope you don't have 4 duplicates of the macro enabled simultaneously as that could cause issues. Only have 1 companion macro running at a time.

3.
The "There are no configured connections to trigger actions on" error means you have no successfully configured connections. When you confirm the connection on your phone by clicking the "CONFIRM" button the response is send to the website and the website notifies you that the connection was created successufully and closes the connection configuration screen. But that did not happen because your device wasn't able to send the response as to be seen in the system Log.

The SSLHandshakeException is not problem of the website, but problem of your device. Could you please try to simply visit https://ntfy.sh/ from a browser on the phone you are trying to control to see if it even loads for you?

How old is the device you are trying to control, specifically what Android version is it running? I know that some older versions (5 and below I think) have already problems with website certificates.
 
Last edited:

HCC

Member
1.
After I sent the screenshot I reset the "webhook Id" (2-3 times). The "webhook Id" in the screenshot is no longer the current.

2.
I only have 1 macro running. I had to rename the macro to be able to save the macro on my smartphone (if I don't rename it, the smartphone would forget the macro)

3.
>> by clicking the "CONFIRM" button the response is send to the website and the website notifies you that the connection was created successufully
When I click "CONFIRM" the notification disappears. -But there is no reaction (I think that's the problem)

>>The SSLHandshakeException is not problem of the website, but problem of your device.
I agree.

>> ... what Android version is it running? I know that some older versions (5 and below I think) have already problems with website certificates.

One smartphone is "Samsung Galaxy A5" (Android 7) and the other smartphone is "Nokia 6.1 Plus" (Android 10).
When the Android 7 device is the "target device", I get the "SSLHandshakeException". When the Android 10 device is the "target device", it works (I can send Actions and I don't get the "SSLHandshakeException" error).
 

FrameXX

Well-known member
When I click "CONFIRM" the notification disappears. -But there is no reaction (I think that's the problem)
When you click CONFIRM the HTTP request fails to send which is the culprit. I unfortunately can't help with broken or outdated certificates on your Samsung phone.
 

FrameXX

Well-known member
In the HTTP Request action there is an allow all certificates checkbox, try that.
Great idea. The HTTP Request action in question is the one in the "MDWC - Send confirmation" action block and "MDWC - Send response" action block.

1835.png
 
Top