Kwgt send variable problem

itsbasu

New member
I'm creating a widget that shows other device battery using "join app" (by Tasker) & MacroDroid got mant things right but while setting on receiver device i can't figure out something.
(On receiver device) Trigger is- Join Receive Push.
Action- KWGT send variable ((configuration- Tasker String (unable to figure out this part, in Tasker app it's just "%jointext"), Kustom Variable- batt))

Ps- it should show other device battery percentage in kwgt widget when receiving battery percentage of other device push using Join app.
 
Last edited:

Snurre

Well-known member
Im not using KWGT or Join, but if you can't get it to work then it's posible just to use MD's HTTP GET
I've got a phone in my car and use this to check battery
 

itsbasu

New member
Im not using KWGT or Join, but if you can't get it to work then it's posible just to use MD's HTTP GET
I've got a phone in my car and use this to check battery
Already getting battery percentage in receiver device as flash msg (it's easy) ..but how to divert & show it in widget using kwgt, that's my question now.
 

Dm114

Well-known member
Already getting battery percentage in receiver device as flash msg (it's easy) ..but how to divert & show it in widget using kwgt, that's my question now.
Is 'Flash msg' a Notification you can get on your device? Or do you have a mean to get it via Tasker?

Once you get it in MD you shouldn't have any trouble to pass it to KWGT.
 

itsbasu

New member
Is 'Flash msg' a Notification you can get on your device? Or do you have a mean to get it via Tasker?

Once you get it in MD you shouldn't have any trouble to pass it to KWGT.
Yup it's a notification...via Join app push
..I'm quite new to MD.. please explain how should I pass it to kwgt. I'm stuck at Kwgt Send variable. Can't figure out the "text" i have to place in "Tasker String" second screenshot.(in Tasker app- string is just "%jointext")
 

Attachments

  • Screenshot_20211223-205402_MacroDroid.jpg
    Screenshot_20211223-205402_MacroDroid.jpg
    109.2 KB · Views: 24
  • Screenshot_20211223-205411_Kustom Widget.jpg
    Screenshot_20211223-205411_Kustom Widget.jpg
    87.7 KB · Views: 24

Dm114

Well-known member
Yup it's a notification...via Join app push
..I'm quite new to MD.. please explain how should I pass it to kwgt. I'm stuck at Kwgt Send variable. Can't figure out the "text" i have to place in "Tasker String" second screenshot.(in Tasker app- string is just "%jointext")
Your macro seems to be ok if:
1⁰) The trigger really fires when a push message is received from the Join app ;
2⁰) The Tasker string is '%jointext' (with the Pct symbol %).

If it doesn't work, you could use the notification generated by Join app if any, to extract the info you need.
 

Dm114

Well-known member
Yup it's a notification...via Join app push
..I'm quite new to MD.. please explain how should I pass it to kwgt. I'm stuck at Kwgt Send variable. Can't figure out the "text" i have to place in "Tasker String" second screenshot.(in Tasker app- string is just "%jointext")
If it's notification, it becomes very easy.
1⁰) As a trigger, use 'Device events > Notification' containing a specific word such as "battery"
2⁰) Extract text you need to extract from it. It all depends on the content of the expected notification. If it concerns battery level, we could imagine it looks a bit like that: « ...battery...n%... ». Use 'Macrodroid specific > Text manipulation > Extract text' with 'Source text' = Magic text [notification], 'Text to match (regex)' = \d+% (meaning at least one digit followed by %), 'Save to variable' = any string variable you create (such as 'JoinBattLevel')
3⁰) KWGT send variable (you already used) with: 'Tasker string' = [lv=JoinBattLevel] and 'Variable Kustom' = the name you gave on the Kustom side to collect the MD string.

That's it! 😉😀

Hope it'll help...
 
Last edited:
Top