Time Events Weekend vs Weekdays

487 views
Skip to first unread message

Rich Belthoff

unread,
Aug 8, 2014, 12:02:43 PM8/8/14
to tas...@googlegroups.com
I know there are a few posts on this and there's something in the online manual but I just want to make sure I understand this correctly. 

I want to trigger Silent at 2130 Sunday thru Thurs and 2230 on Fri & Saturday. Then, turn it off, Monday thru Friday at 6 am and 7 am on Saturday and Sunday. I'm pretty sure I can't set up two profiles for this with something like 2130 to 0600 and 2230 to 0700, right? I need several profiles, and maybe four? I'm using enter and exit tasks to turn silent on off

Maybe something like this:

Sun-Thurs 2130 to 0000 turn it on
Fri & Sat 2230 to 0000 turn to it on
Mon to Fri 0000 to 0600 to turn it off
Sat & Sun 0000 to 0700 to turn it on.

But won't the exit task run at 0000? But then will the enter task run at 0000 as well? They could cancel themselves out? Or cross over each other? Maybe it's 11:59:59 for one and 00:00:00 for the other? Can't image anyone would ever call in that second gap. ;-)

Maybe I shouldn't use an exit task? Maybe I should just set up profiles to turn it on at the designated time and then turn it off at the designated times? Maybe that's easier? 

Just seemed like doing 2130 to 0600 is a neater way of doing it.

And if I missed a discussion here in my search that answers all of this, please just point me to it. ;-)

Thanks!

Matt R

unread,
Aug 8, 2014, 12:21:22 PM8/8/14
to tas...@googlegroups.com
You can check the time in the exit task and do nothing if the time is midnight.  Or get rid of the exit tasks (you shouldn't need them).  You could get down to three profiles by doing everyday 2230 to 0600 profile and then a Sun - Thurs 2130 to 2230 profile and a Sat & Sun 0600 to 0700 profile.  Or you could use a variable time context.  I haven't used those before, but you should be able to use a variable in place of the start and end times (say %Start and %End) and then in the enter task change the %End variable if needed and in the exit task change the %Start variable to the next start time.

Matt

Rich Belthoff

unread,
Aug 8, 2014, 1:22:29 PM8/8/14
to tas...@googlegroups.com
Thanks for the ideas. I forgot that Tasker will reset the sound volumes when the profile ends. I might just still keep the exit profiles to ensure that the sound changes. I've had issues where it didn't set correctly depending upon the order in which I listed the sound volumes to change (not sure if that's Tasker or Galaxy S4, although I suspect the latter). The three profiles sound great. I will try them. I also will try to variables you suggest. Sounds like a neat way to do this.

Rich

larryc

unread,
Aug 10, 2014, 12:35:20 PM8/10/14
to tas...@googlegroups.com
Great suggestion!

I used vars called "Bedtime" and "Waketime", and update both in the exit task. Just use "If %DAYW ~ Friday OR %DAYW ~ Saturday" to set the values for the weekend. Can't change anything in the start task without resetting the profile.

larryc

unread,
Aug 10, 2014, 10:30:34 PM8/10/14
to tas...@googlegroups.com
Update: using the exit task was problematic. Depending on original and changed setting, the profile would restart immediately.

I added a second profile that runs at midday just to update the start and end times.

Matt R

unread,
Aug 11, 2014, 12:47:37 AM8/11/14
to tas...@googlegroups.com
That's why I suggested changing the start time in the exit task and the end time in the enter task.

Matt

Reply all
Reply to author
Forward
0 new messages