is it possible to trigger a task from a calender event?

4,395 views
Skip to first unread message

JimS

unread,
Aug 25, 2012, 5:51:28 PM8/25/12
to tas...@googlegroups.com
Any help with this would be much appreciated, it would be fantastic to know that when I go into a meeting my phone would switch to silent.
Thanks,
Jim

moocow1452

unread,
Aug 25, 2012, 5:53:28 PM8/25/12
to tas...@googlegroups.com
Might be able to fetch your Google Calendar RSS with a GET command, and say, do stuff here, but Calendar should be under state. 

JimS

unread,
Aug 25, 2012, 6:16:44 PM8/25/12
to tas...@googlegroups.com
I'm quite new to tasker, could you break that down a bit for me, show me what that would look like.
Thanks,
Jim

easiuser

unread,
Aug 25, 2012, 6:36:23 PM8/25/12
to tas...@googlegroups.com
Create a profile with the context State->Plugin->Calendar  Select edit and enter the criteria such as Title contains: meeting.

Task is New Task->Audio Settings->Silent Mode->On

Mike Maynard

unread,
Aug 25, 2012, 6:46:43 PM8/25/12
to tas...@googlegroups.com

Ron,  what plugin does one need??

easiuser

unread,
Aug 25, 2012, 6:54:01 PM8/25/12
to tas...@googlegroups.com

JimS

unread,
Aug 27, 2012, 3:12:50 AM8/27/12
to tas...@googlegroups.com
I set the plugin up:

Profile: Calender check (142)
State: Calendar [ Configuration:My calendar ]
Enter: Anon (144)
A1: System Lock

Now when I preview the locale calender plugin it shows me the event in my calender I am trying to use (it has a green check next to it) I save it, but it still doesn't run my simple task (s ) (I've tried a few).

Please can someone help me to get this to work?

Many thanks,
Jim

Michael Yeager

unread,
Aug 27, 2012, 2:59:23 PM8/27/12
to tas...@googlegroups.com
Check out the thread Processing Google Calendar as we've done quite a bit with it. Just going into silent mode for a meeting is super easy without much work. Can get with you later if that's all you want to do...

Wietse van Buitenen

unread,
Aug 27, 2012, 3:29:57 PM8/27/12
to tas...@googlegroups.com
you should be able t do it without a plugin..
Net Profile - State - App - Calendar Entry
I use this in a few Profiles and it works great :)

Wietse van Buitenen

unread,
Aug 27, 2012, 3:30:27 PM8/27/12
to tas...@googlegroups.com
Net Profile should be New Profile..

JimS

unread,
Aug 27, 2012, 5:35:56 PM8/27/12
to tas...@googlegroups.com
That is so cool, thanks for your help with this guy's,
Jim

Michael Yeager

unread,
Aug 27, 2012, 6:06:37 PM8/27/12
to tas...@googlegroups.com

Net Profile - State - App - Calendar Entry

 

Leave the title, location and description fields blank. Set availability to no and select your calendar. The set a start task to turn silent mode on and an exit task to turn silent mode back off. Only downside is that calendar entries seem to default to busy which will silence your phone. This is a good start and will let you see how it works. There are ways to do it that are much more involved but allow you to trigger any event you want to based on calendar entries. If all you need to do is silence for a meeting, just make sure you edit your calendar entries and change the availability to match.

 

JimS

unread,
Aug 30, 2012, 6:25:04 PM8/30/12
to tas...@googlegroups.com
I have started using profiles like this with success to trigger tasks but the exit task doesn't work.

Profile: Calendar Silent (33)
State: Calendar Entry [ Title:* Location:* Description:Silent Available:Any Calendar:* ]
Enter: Calendar Silent (131)
A1: Variable Set [ Name:%TotalVolumeControl To:0 Do Maths:Off Append:Off ]
A2: Perform Task [ Name:TotalVolumeControl.v2 Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]

Exit: Calendar Vibrate (111)
A1: Variable Set [ Name:%TotalVolumeControl To:1 Do Maths:Off Append:Off ]
A2: Perform Task [ Name:TotalVolumeControl.v2 Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]


Can anybody help to get this working, it would be really good to get my phone to go onto silent for a scheduled meeting then go back to vibrate when meeting has finished.

Jim

Matt R

unread,
Aug 30, 2012, 7:03:03 PM8/30/12
to tas...@googlegroups.com
Check the run log (in Tasker, menu -> more -> run log) to see if the exit task is actually running or if something else is conflicting.
 
Matt

Wietse van Buitenen

unread,
Aug 31, 2012, 2:11:46 AM8/31/12
to tas...@googlegroups.com
or put a Notify action as first line so you see if it actually runs..

JimS

unread,
Sep 3, 2012, 3:10:45 AM9/3/12
to tas...@googlegroups.com
Hi Deb,
Glad you are enjoying tasker, it is really cool I have my phone set up to do all sorts now and I've only been using it a short while. I still haven't been able to get sound profile to change back from calender actions. Please could you copy and paste the actions you are using here (long press on profile, export, description to clipboard and then paste into this post)

Many thanks,
Jim

Deb

unread,
Sep 3, 2012, 1:24:34 PM9/3/12
to tas...@googlegroups.com

JimS - Here's the profile I use for movies.  I actually use silent mode - vibrate, instead of off. The only thing I changed below was the name of the calendar I use, since it has my full name. I have the movie listed as an apptment from x to y. I have movie in the description. It goes to vibrate mode as soon as the appt begins at x, and the minute after the appt ends at y, it goes back to silent mode on.

Profile: Go Vibrate At Movies (11)

State: Calendar Entry [ Title:* Location:* Description:movie Available:No Calendar:Google:The calendar you choose from drop down list]
Enter: Vibrate Mode For Movies (13)
A1: Silent Mode [ Mode:Vibrate ]

Exit: Audio On After Movie (12)
A1: Silent Mode [ Mode:Off ] 


This tells it explicitly what to do, rather than let it revert to previous settings.  Maybe I'll play with that to see what happens.

Deb

Wietse van Buitenen

unread,
Sep 3, 2012, 2:44:00 PM9/3/12
to tas...@googlegroups.com
Silent Mode is a Setting (it has a gear icon) which means Tasker will by default store the setting the way it is before the Profile gets active and restores it to this setting when the Profile becomes inactive (this can be enabled/disabled in the Profile Properties with restore Settings).
If this is enabled you don't actually need to set it in the Exit Task as it will be set by default..

JimS

unread,
Sep 4, 2012, 4:49:00 AM9/4/12
to tas...@googlegroups.com
Thank you for this Deb, I just tired my original profile out again as it looked the same as yours and low and behold it works now. Not sure what I was doing wrong before.
Jim

Stefano

unread,
Apr 4, 2014, 7:59:39 AM4/4/14
to tas...@googlegroups.com
Hi there,

I created a task which checks through my calendar database, find events with (mute) word in titles and create a new event in another calendar (called notification) with the start time 10-15 min before the original event (that' s because I am usually early, so if i have a meeting at 2pm, I am there at 1.45 -1.50 pm and for this reason I need my phone in silent mode at that time, not any later). Everything is working fine, but, I am not able to trig this task. The idea would be:

-) To trigger it at 0.00am for checking all the events of the coming day;
-) To trigger it every time a new even is added (for example if at 10 am someone tells me if we can arrange a meeting at 3pm, I would like to add that event, and I need tasker to create a mirror event on my notification calendar immediately after.

For the first point, no problems at all; however, I am not able to get the second point done. I am not an expert in tasker, but to me it Looks like the "calendar" event works just when the even starts, not when I literally insert the event in my calendar. I even tried to check calendar.db for modifications or updates but I am not able to trig it. Any idea, help?

thank you!

easiuser

unread,
Apr 4, 2014, 9:43:25 AM4/4/14
to tas...@googlegroups.com
Assuming you are entering the new appointments via the calendar app, just do what you do at 0:00am everytime you exit the calendar application.

Stefano

unread,
Apr 4, 2014, 10:10:50 AM4/4/14
to tas...@googlegroups.com
Well, that is what I am doing but, to be honest, it is just a waste of time and battery, since most of the time I check calendar just for reading the appointments, not for adding or updating anything else... thank you anyway

j3nn

unread,
Jun 8, 2014, 3:48:43 PM6/8/14
to tas...@googlegroups.com
Greetings and Salutations

I'm sorry that you are having trouble with your trigger, but I'm wondering if you could/ would share the task that I have quoted below. It would solve my problem beautifully.
Reply all
Reply to author
Forward
0 new messages