• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Alarms - Two Week Schedule with weekends

Unforgiven

...eschew obfuscation...
Administrator
I purchased Tasker a while ago (thanks @codesplice) and I'm fairly certain it will do this with no problem. Also, I want to use tasker for other things so I have to get off my arse and learn how to use it. I figured I'd get some help setting up scheduled alarms for initiation.

So let me lay out the scenario.
My wife works on a two week rotation 8-8 during the week, 9-6 on Saturdays, and 9-5 on Sundays. Here schedule looks like:
Mon1 8-8
Tue1 8-8
Wed1 Off
Thur1 Off
Fri1 8-8
Sat1 9-6
Sun1 9-5
Mon2 Off
Tue2 Off
Wed2 8-8
Thur2 8-8
Fri2 Off
Sat2 Off
Sun2 Off...repeat from Mon1
I could plan a vacation 5 years from now and know that days she is working and off.
My schedule reacts to her schedule, so during the week (M-F) I go in early and work late on her days off (5-5) and I go in later and leave early (8-3) on her work days so I can make the bus.

Ultimately, I would like to run four separate sets of alarms:
  1. Weekday - her working
  2. Weekday - her not working
  3. Weekend - her working
  4. Weekend - her not working
I have the alarms set up already using the stock alarm on my Moto X, and just manually turn them on or off. I'd like to learn how to have tasker automate that.

Mind you, I purchased tasker and opened it once, so I'll need help understanding from the beginning what profiles, tasks, and scenes are.:oops:

Thanks in advance for any help.
 
You're welcome. :D

That's a good one. I'll give it some thought during the day today and try to whip something up tonight - unless someone else can beat me to it!
 
Sorry, things got crazy and I didn't have much time to experiment. I have been thinking about your problem off-and-on. I'm not sure that there's an elegant solution other than using a custom variable to record what day it is (out of the 14-day cycle) and then setting the alarm based on that (If %DAY == 1: Set Alarm for 0500, %DAY++).

There may be a better way, but that's the first thought I came up with. I'll keep chewing on it though.
 
I thought there was scripting available in it, but didn't see it in the examples.
 
Like code, if then else. If connected to wifi x then do a, else do b. Maybe the funtionality is there but not in a script interface. Like I said, I opened it twice now and figured out how to make it set an alarm on mondays.:eek:
 
It may help to know that there are two main pieces of a Tasker Profile: the Context and the Task:
  • Context: The Context describes the condition(s) that must be met in order for the Profile to run. This is the "If" part of a generic "If..Then" statement: If connected to Wifi..., If the display gets turned on..., If a certain application is in the foreground..., etc. They just don't look like If statements; the "If" is kind of understood. There are tons of different triggers that can be used for Contexts. You've got Application contexts (which fire when a certain app is in the foreground), Time contexts (which fire at a certain time - either as a one-shot like "at 10AM" or on a repeating basis like "every 15 minutes"), Day contexts (same as Time, but for Days), day Location contexts (that fire when you enter and/or leave a given location); you also have States that are continually evaluated (something like "while the battery level is <30%" or "while connected to my home wifi network") and instantaneous Events that fire once ("when the display is turned on" or "when a new app gets installed"). Contexts can also be stacked (by long-pressing on an existing Context's name) to add multiple conditions. For example, I have a "Night" profile that only activates when I am at home and the time is after 10PM.
  • Task: The Task is the Thing Which Happens once/when/while the Context is met. Tasks are actually made up of individual Actions (and other pieces, like If/Else flow control). You could have an action to mute the ringer volume, an action to dim the display brightness, and an action to disable haptic feedback all nested inside a Task called "Night time". There are way too many possible actions for me to really go into... I'd suggest taking a look at http://tasker.wikidot.com/userguide-en:help-ah-index to get some more info on what's possible.

So that's kind of where the "scripting" comes in. You can then add on more complexity with variables, flow control, profiles that enable/disable other profiles, etc.
 
So I need to use calandar somehow and have contexts for calendar events (wife working) further refined somehow for weekday (weekend / weekday) and set alarms for that?
 
I use the calendar to turn the sound off at the start and on at the end of scheduled meetings. Not all the volumes ... I leve media on so I can play a video at the meeting if needed.

If the Description field of the schedule entry contains "Sound" I don't turn the sound off.

... Thom
 
Back
Top Bottom