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
How to send variable to tasker plugin
Moderator: Martin
Re: How to send variable to tasker plugin
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
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
Re: How to send variable to tasker plugin
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"
I try {global_alarm,dateformat,hh:mm} but still show me "day hour:min"
Re: How to send variable to tasker plugin
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
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
Re: How to send variable to tasker plugin
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
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
-
- Posts: 82
- Joined: 13 Jan 2014 21:39
Re: How to send variable to tasker plugin
Bender64 - I really like the look of your widget - nicely done! Would you be willing to share it?
Thanks.
Thanks.