Tasker Advanced profile

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp

Tasker Advanced profile

Tasker if a must have app for android users, this will let you experience the real android power where you can automatize and modify your android OS without root (and of course it has more features when you have root priviligies).

Main reason why I started using tasker if becuase I wanted to find an easier way to manage my team and to make things with less human interaction, over here I will show and explain some Tasker profiles but of course this is just a glance to that new world and community behind that amazing app.

Tasker is the must have app that will let you experience the real Android power.

Wanatux

This is a profile that adds automatically to your google calendar an event when somebody from your team needs the day off and you need to notify another people to make sure they are on time or if you have floaters (people who are waiting for a sms to get some hours) to be aware that you have hours available for X shift.

This is the formula you will use for Google calendar events ( I found that formula here)

((86400*0)+61200-(%currtime1*60*60)-(%currtime2*60))/60-1
(This will add an event at 5PM)
((86400*0)+18000-(%currtime1*60*60)-(%currtime2*60))/60-1
(This will add an event at 5AM)
((86400*0)+30600-(%currtime1*60*60)-(%currtime2*60))/60-1
(This will add an event at 8:30AM)

The only part you need to modity is ((86400*0)+30600 which we can convert to the following formula:
((S*D)+S) which 86400 is the total seconds in a day to get that value multiple (60*60)24.
the “0” that is next to the 8600 is the day where you want to create the event “0” = same day, “1”= tomorrow and so on.
60 seconds * 60 minutes = 3600 secs in an hour * 24 = 86400, now if you want to know how many seconds is from 12AM to 8am multiple 3600 * 8 = 28,800 (for half an hour for example 8:30AM will be 8.5).

Now that we understand the formula that will be a variable that we will name “%insert_shift”.

Now lets check the tasks.

Calendar Insert [ In / For (Minutes):%insert_shift/510 Calendar:Google:NSML Calendar

Remember %insert_shift is the variable name of the formula we are using to start the event so

%insert_shift/510 will create an event of 8.5hrs in Google calendar (just multiplay 60*X the amount of hours you need that event)

Now that we understand the code this is how it will look like in our tasker this example is for people who works after 5PM.

Profile: Work Call Off PM
Event: Received Text [ Type:Any Sender: contact 1/contact 2 Content:*#calloff* ]
Enter: Call Off Schedule PM
A1: Variable Set [ Name:%data To:%SMSRB Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
A2: Variable Search Replace [ Variable:%data Search:^[^\s]+ Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In Array:%Array Replace Matches:On Replace With: ]
A3: If [ %data ~ *today* ]
A4: Variable Set [ Name:%currtime To:%TIME Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
A5: Variable Split [ Name:%currtime Splitter:. Delete Base:Off ]
A6: Variable Set [ Name:%insert_shift To:((86400*0)+61200-(%currtime1*60*60)-(%currtime2*60))/60-1 Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
A7: Calendar Insert [ In / For (Minutes):%insert_shift/510 Calendar:Google:NSML Calendar Title:%SMSRN Call Off Description:Call Off Location: Available:Off All Day:Off ]
A8: Else If [ %data ~ *tomorrow* ]
A9: Variable Set [ Name:%currtime To:%TIME Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
A10: Variable Split [ Name:%currtime Splitter:. Delete Base:Off ]
A11: Variable Set [ Name:%insert_shift To:((86400*1)+61200-(%currtime1*60*60)-(%currtime2*60))/60-1 Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
A12: Calendar Insert [ In / For (Minutes):%insert_shift/510 Calendar:Google:Office Calendar Title:%SMSRN Call Off Description:Call Off Location: Available:Off All Day:Off ]
A13: End If
A14: Send SMS [ Number:%SMSRF Message:%SMSRF the system successfully recieved your notification about your day off, we hope you feel better soon (auto SMS) Store In Messaging App:Off SIM Card: ] 

The SMS that will trigger this prople has to have the following content:
#calloff today (you can also use tomorrow as reference) so if SMS recieved has in its body the word #calloff then it will search for next word (which if today) and will store array in variable %data and if %data = today then will variable will be set and trigger flow if not then will do nothing and next flow will check if conditionals are met (%data = tomorrow then).

At the end you can add more values such as send SMS to whoever has to be aware of that person call out.

Baffometo

Baffometo

Leave a Replay

About Wanatux

Wanatux is a compilation of usefull data online that might come in handy for anybody online, besides that we also supply our own skills to whoever looks for a freelancer from graphic design to coding.

Recent Posts

Weekly Tutorial

Follow Us