Playing with Intent URI

sjmd

New member
I've been trying to get KWGT to send an Intent URI for MD but to no avail. I was hoping to use KWGT to build small dashboards for when writing a full app isn't really warranted.

So far, I can get KWGT to launch a shortcut which in turn will trigger a MD macro very easily. Unfortunately, there is no data passed with it so I can't treat the macro as a function where a piece of data can be used as a variable, or a dictionary lookup etc.

If I could pass an intent to MD inside an intent URI from a flow action inside KWGT when I touch a shape and send a string as an extra then happy days, but I haven't figured it out yet. I'm not even sure if the intent URI is making something inside KWGT available to sniff and doesn't send anything. It's all a bit odd.

I've proved that the macro I've setup in MD is working as I have another macro that sends one out to trigger it. The receive macro has a custom action and one extra that I'm trying to capture the string inside. Obviously the target in the send macro is set to Broadcast.

As far as the KWGT intent URI goes I've tried various attempts. The one I think gets the closest is below.

intent:#Intent;package=com.arlosoft.macrodroid;action=triggertask;S.datatest=justsometext;end

The action is just one word, but that's how I use them in macrodroid and they work fine.

Is this even possible?
 

sjmd

New member
I forgot to mention that I know there a third party apps that have URI interfaces that can act as a go between scheme to talk to, but it seems a lot for just a bit of extra data
 

DonDemon

Active member
I've been trying to get KWGT to send an Intent URI for MD but to no avail. I was hoping to use KWGT to build small dashboards for when writing a full app isn't really warranted.
Same! I asked about that in kwgt discord, and they said its possible to link kwgt with md with intents, but I still didn't configure how to do it
 

sjmd

New member
Yes, KWLP and KWGT are both made by Kustom. Quite a few more too besides for lock screens and smart watches
 

Winny57

Member
Sounds like they need to be asked again 😁
You must add via the plugin in macrodroid "send variable"
Then the same name in my case "FOOBAR2" reported in your KWGT widget
 

Attachments

  • Screenshot_20240508-100240 (1).png
    Screenshot_20240508-100240 (1).png
    241.1 KB · Views: 8
  • Screenshot_20240508-100259 (1).png
    Screenshot_20240508-100259 (1).png
    146.4 KB · Views: 8
  • Screenshot_20240508-100350 (1).png
    Screenshot_20240508-100350 (1).png
    290.8 KB · Views: 8

sjmd

New member
It depends on what you want to do, if you want to launch a macro you can use the touch action in KWGT
As mentioned right at the very beginning of the thread, I want to send data from KWGT to MD, not from MD to KWGT.

I have already played with sending data from MD to KWGT using the same method as you have shown above. I have also launched macros in MD from KWGT via simple shortcuts. All that works well.

Once again, I am exploring if I can send data via a broadcast intent (or other means) from KWGT/KWLP using the Intent URI action inside a flow. The data will be variable.
 

Endercraft

Moderator (& bug finder :D)
MacroDroid has an intent received trigger which you can use to pass data (by making use of extras).
 

sjmd

New member
Which works beautifully, but I am trying to send a broadcast intent from KWGT to MD. I have already setup a MD macro to receive the intent but I am unsure as to how to construct the intent URI inside KWGT.
 

sjmd

New member
The KWGT send variable plugin is for sending data from macrodroid/tasker to KWGT. It doesn't work the opposite way as far as I can tell
 

Winny57

Member
This also works in reverse.

Macrodroid -> KWGT

KWGT -> Macrodroid

Create a macro when launching define variable with variable data defined by the user then when clicking like in my video it asks you for the variable data
 
Top