Weekday Variable (for conditional task execution)

1,232 views
Skip to first unread message

Rev

unread,
Jul 19, 2010, 5:54:59 PM7/19/10
to Tasker - Feature Requests
Hi,

so far i really like Tasker. However, i have a small request or maybe
i just didn't find what i was looking for.

In short:
I would like a variable for conditional task exection that contains
the current weekday %WEEKDAY. So it would be possible to execute a
single Task from a profile only if a special weekday matches.

Long Version / Scenario:
I have a location-Profile for my "Home".
It triggers various events like "enable WLAN, disable screen lock..."
when i get home.
Today i wanted to add an reminder task (Notify) to remember me to take
out the trash on every monday :)
I know, i could create another profile that has location AND time as
conditions, but it would be more comfortable to use my existing Home
Profile and just include this Task. So i would get a notification when
i get back from work and reach my "home location" if its a Monday.

Thx

Pent

unread,
Jul 20, 2010, 3:33:48 AM7/20/10
to Tasker - Feature Requests
Easy enough, will do.

Pent

Pent

unread,
Jul 20, 2010, 3:35:47 AM7/20/10
to Tasker - Feature Requests
Do you think a numeric context or textual would be better i.e. '1' or
'Monday' for the first weekday ?

With numeric you can do comparisons like > 1 and < 6, so I'm thinking
that's the best plan.
On the other hand, Monday/Wednesday/Thursday is also easy I guess.

Pent

Apostol Apostolov

unread,
Jul 20, 2010, 7:53:20 AM7/20/10
to Tasker - Feature Requests
Numeric will be better because it is possible to have IF conditions or
simple calculations.

Apostol Apostolov

unread,
Jul 20, 2010, 7:53:59 AM7/20/10
to Tasker - Feature Requests
Besides everyone can create a simple variable set task that converts
numbers into strings for use in other tasks, if needs' be.

On Jul 20, 10:35 am, Pent <tas...@dinglisch.net> wrote:

Pent

unread,
Jul 20, 2010, 8:41:26 AM7/20/10
to Tasker - Feature Requests
On Jul 20, 12:53 pm, Apostol Apostolov <rayner...@gmail.com> wrote:
> Numeric will be better because it is possible to have IF conditions or
> simple calculations.

You can do

If %WEEKDAY ~ Monday/Tuesday/Thursday

Just as easily and more readably.

Pent

Apostol Apostolov

unread,
Jul 20, 2010, 8:54:32 AM7/20/10
to Tasker - Feature Requests
I was unaware you can create CASE type operators! Pent, this is
urgent, we need a new, powerful WIKI for well developed and explained
manual and a wiki browser inside Tasker ;) Tasker is quickly becoming
from simple IF-THEN automator into a UI-based scripting language ;)
Manual is in dire need to be made presentable, easy to navigate and
read piece by piece rather as a laundry list manual - and wiki is best
for that. Why not develop your own MediaWiki-based wiki, or maybe a
Wikia wiki? The goal would be to have industry-grade manual that is
constantly developed and matches rules and descriptions with related
examples and screenshots.

Rev

unread,
Jul 20, 2010, 9:50:13 AM7/20/10
to Tasker - Feature Requests
Thx for the quick reply.
What about both options? %WEEKDAY, %WEEKDAYNUM ?
The "problem" with weekday names may be, that the first weekdays
varies from country to country. Some use Monday as first day, some
Sunday...

Pent

unread,
Jul 20, 2010, 11:16:55 AM7/20/10
to Tasker - Feature Requests
Apostol,

> I was unaware you can create CASE type operators! Pent, this is
> urgent, we need a new, powerful WIKI for well developed and explained
> manual

There's a section in the manual called Pattern Matching.

http://tasker.dinglisch.net/userguide_summary.html#userguide_matching.html

It's linked to from action edit help, state and event edit help.

You have to actually read the thing is all :)

> Manual is in dire need to be made presentable, easy to navigate and
> read piece by piece rather as a laundry list manual - and wiki is best
> for that. Why not develop your own MediaWiki-based wiki, or maybe a
> Wikia wiki? The goal would be to have industry-grade manual that is
> constantly developed and matches rules and descriptions with related
> examples and screenshots.

a) it's boring
b) it takes a long time
c) I'd rather add more software capability
d) once I start adding more profiles I think the examples will speak
for themselves

Pent

Pent

unread,
Jul 20, 2010, 11:17:56 AM7/20/10
to Tasker - Feature Requests
On Jul 20, 2:50 pm, Rev <marcus.fre...@googlemail.com> wrote:
> Thx for the quick reply.
> What about both options? %WEEKDAY, %WEEKDAYNUM ?
> The "problem" with weekday names may be, that the first weekdays
> varies from country to country. Some use Monday as first day, some
> Sunday...

It doesn't matter which is first if you're using names.

Monday/Sunday matches Monday or Sunday whichever order the days come
in.

Pent

Apostol Apostolov

unread,
Jul 20, 2010, 11:27:02 AM7/20/10
to task...@googlegroups.com
You're completely right you should not be bogged down by manual development. But here's where your most avid fans and supporters could help out. If you could get a Wiki platform working and support it as an administrator, users could break, cross-reference and start adding up to the manual after each new feature is introduced and explained to us, and users can then start adding up use cases, examples, etc. that illustrate the use of each task or state.

Regards,
Apostol Georgiev Apostolov - RaynerApe
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* UPDATED! Mobile +359 (0)894 369 881
* SKYPE: apoapostolov -=<>=- GTALK: rayn...@gmail.com
* TWITTER: http://twitter.com/apoapostolov (activity: low, 5-8 per day)
* FACEBOOK:http://www.facebook.com/#!/apostolapostolov (activity: high, 10-25 per day, IT-oriented)
* LINKEDIN: http://bg.linkedin.com/in/apostolapostolov
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* Masthead Studios - Lead Game Designer. We play Earthrise. (http://www.play-earthrise.com/)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* Computer Bulgaria - Author. Hardware, Mobiles and Top Games (http://www.newteck.bg/computer/)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Rev

unread,
Jul 20, 2010, 11:59:27 AM7/20/10
to Tasker - Feature Requests
Ups i meant "weekday numbers" in that context, obviously ;)
Reply all
Reply to author
Forward
0 new messages