How to send variable to tasker plugin

Post your questions and help other users.

Moderator: Martin

Post Reply
Giovanni
Posts: 5
Joined: 01 Aug 2015 07:38

How to send variable to tasker plugin

Post by Giovanni » 26 Feb 2016 12:27

I'm using a Watchmaker tasker plugin and I have to enter the value of the next alarm in a tasker variable "%alarm". Unfortunately I made many attempts but can not get the expected result.

Someone better than me can give me a hint?

John

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: How to send variable to tasker plugin

Post by Martin » 26 Feb 2016 20:29

Hi,

I did not use WatchMaker myself but when the app asks to enter a variable (for example in action Plugin: WM Send Variable), you can probably enter the variable like usual in Automagic using curly braces.
Following flow might work:
-action Init Variable Next Alarm: variable next_alarm
-action Plugin: WM Send Variable {next_alarm} ensure that replace variables/modify configuration is activated

I'm not sure how the variable has to be used in Watchmaker.

Regards,
Martin

Bender64
Posts: 20
Joined: 25 Feb 2016 15:47

Re: How to send variable to tasker plugin

Post by Bender64 » 01 Mar 2016 07:03

Hi Martin, what format i must use to show alarm time in widget but only time ? Now it show me "day hour:min"
I try {global_alarm,dateformat,hh:mm} but still show me "day hour:min"

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: How to send variable to tasker plugin

Post by Martin » 01 Mar 2016 12:54

Hi,

Please use an action Notification on Screen: {triggertime,dateformat,hh:mm} to test if the date formatting in Automagic works or if the plugin somehow modifies the date. Did you enter the text {global_alarm,dateformat,hh:mm} in Automagic or did you enter this in Watchmaker?

Note that lower case hh will show the 12-hour format so either change to HH:mm to use the 24-hour format or use hh:mm a to add the AM/PM marker (see Date Format Pattern).

Regards,
Martin

Bender64
Posts: 20
Joined: 25 Feb 2016 15:47

Re: How to send variable to tasker plugin

Post by Bender64 » 01 Mar 2016 14:17

I enter the text {global_alarm,dateformat,hh:mm} in Automagic, just write in this topic, do not want make new for only format advice.
I test Notification on Screen: {triggertime,dateformat,hh:mm} and it is ok.

So i again check all varriables and make condition - expression, var : global_alarm == null and it is working now. If alarm not set - off, if allarm on, change background to red and show me time of next alarm.
Finaly it is all 100 % working thx for your help this is my widget ;)

Image

skiptannen
Posts: 82
Joined: 13 Jan 2014 21:39

Re: How to send variable to tasker plugin

Post by skiptannen » 04 Apr 2017 07:49

Bender64 - I really like the look of your widget - nicely done! Would you be willing to share it?

Thanks.

Post Reply