Tasker/Watchmaker Help

Post your questions and help other users.

Moderator: Martin

sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Re: Tasker/Watchmaker Help

Post by sambarlick » 25 Jul 2016 09:57

These are the only things watchmaker can do.
Attachments
Screenshot_20160725-195448.png
Screenshot_20160725-195448.png (252.38 KiB) Viewed 27565 times
Screenshot_20160725-195443.png
Screenshot_20160725-195443.png (207.35 KiB) Viewed 27565 times

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Tasker/Watchmaker Help

Post by Bushmills » 25 Jul 2016 10:03

"Run Script" looks interesting - a script should be able to touch a file or display/update a notification.

sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Re: Tasker/Watchmaker Help

Post by sambarlick » 25 Jul 2016 10:05

I've been working on sending a variable to watchmaker and I've been able to get watchmaker to see the variable I'm sending but watchmaker seems to only read the variable and not the value.

I've attached the test flow I'm working on (ignore the triggers) so simply I'm entering the string "Hello World" into the variable temp. Then using the watchmaker plugin to send a tasker variable to watchmaker. I've also I attached the screenshot of what watchmaker sees.

http://automagic4android.com/flow.php?i ... e9a9e33839
Attachments
Screenshot_20160725-200240.png
Screenshot_20160725-200240.png (276.41 KiB) Viewed 27567 times

sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Re: Tasker/Watchmaker Help

Post by sambarlick » 25 Jul 2016 10:11

Bushmills wrote:"Run Script" looks interesting - a script should be able to touch a file or display/update a notification.
The problem I have now with Run script is that watchmaker uses Lua and I'm a complete novice when it comes to anything other than C.

If I write {ttemp} = "Hello World" assuming it will send a tasker variable, the script editor reports violations.

The extra t at the start is for watchmaker to recognise it as a tasker variable.

But even if I could get the Lua language correct how can automagic be triggered?

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Tasker/Watchmaker Help

Post by Bushmills » 25 Jul 2016 10:19

Trying to set lua variables is pointless, as Automagic doesn't monitor those. Enclosing them in curly brackets won't change that. And lua can't set Automagic variables, because it doesn't “see“ them - therefore is the Automagic global variable trigger pointless too.
But even if I could get the Lua language correct how can automagic be triggered?
As suggested, use script to touch a file, or write a notification - Automagic can trigger on those.

sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Re: Tasker/Watchmaker Help

Post by sambarlick » 25 Jul 2016 10:24

Yea i know that now, that's why I said ignore the triggers.

For now the only way I can trigger a flow from my watch is via the shortcuts that are manually triggered.

I'm trying to work on passing a variable to watchmaker from automagic.

sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Re: Tasker/Watchmaker Help

Post by sambarlick » 25 Jul 2016 10:26

Bushmills wrote:As suggested, use script to touch a file, or write a notification - Automagic can trigger on those.
How do I do that?

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Tasker/Watchmaker Help

Post by Bushmills » 25 Jul 2016 10:40

By using the file monitor trigger, or the status bar notification trigger. I'm not aware of their actual English names, because my device is localised differently (trigger names change with localisation).

sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Re: Tasker/Watchmaker Help

Post by sambarlick » 25 Jul 2016 10:44

I'm sorry, I'm not being clear, how do I get watchmaker to edit a file or create a notification?

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Tasker/Watchmaker Help

Post by Bushmills » 25 Jul 2016 10:51

That's best answered by somebody who knows watchmaker well enough, or lua better than I do.
My involvement with lua came to a sudden halt when I noticed that I needed external libraries for bitwise logic operators, and I haven't touched it since.

Post Reply