Calendar look-ahead

396 views
Skip to first unread message

strictlyrude27

unread,
Sep 5, 2012, 1:51:26 AM9/5/12
to tas...@googlegroups.com
Hey guys, I've been out of the Tasker scene for a while but now I'm back :)

Is it possible for Tasker to look ahead on a given calendar? Like, I can check if an event matches keywords for the day and does stuff accordingly.

Pent

unread,
Sep 5, 2012, 1:59:12 AM9/5/12
to Tasker
> Is it possible for Tasker to look ahead on a given calendar? Like, I can
> check if an event matches keywords for the day and does stuff accordingly.

Only by making a little loop for the day that starts at 12 midnight
and checks e.g. every 10 minutes:

Variable Clear %HaveCalendarEvent
Variable Set, %checktime, %TIMES
Misc / Test, Calendar Title, %checktime -> %title
If %title Matches xyz
Variable Set, %HaveCalendarEvent, 1
Stop
EndIf
Variable Add, %checktime, 600 <--- advance 10 minutes
Goto 2 If %checktime < %TIMES + 86400

(untested)

Pent

Clayton Chu

unread,
Sep 5, 2012, 2:01:19 AM9/5/12
to tas...@googlegroups.com

Eh, good enough for me. What of all-day events?

Sent using Gmail for Android

Jakub

unread,
Sep 5, 2012, 2:25:57 AM9/5/12
to tas...@googlegroups.com
There is another way to do that but you must have internet connection. I use it in my task which sent SMS to clients on 9:30 AM when calendar appoinment has word private and has telephone number. I must notice that the idea and below text is from Chris.

======================================================================
1. HTTP Get 
        Server:Port 
www.google.com/calendar/feeds/Username%40gmail.com/private-*****************/full?singleevents=true&futureevents=true&orderby=starttime&sortorder=ascending&max-results=1 
        Mime Type text/xml 

(This is your private Google Calendar feed and ofcourse Username and 
the ****'s are replaced by your unique value. To get this URL go to 
Calendar settings, Calendars, and click on the calendar you want- on 
the bottom you will find your private XML address You must replace the 
"basic" at the end of the URL with 
"full 
singleevents=true&futureevents=true&orderby=starttime&sortorder=ascending&max- 
results=1" 
because you only want the next event and you want them sorted a 
specific way etc.(You can of course tweak this as you wish))  
======================================================================

Michael Yeager

unread,
Sep 6, 2012, 4:49:13 PM9/6/12
to tas...@googlegroups.com
We just had a group project to do this a feww weeks ago, the message thread was titled "Read Google Calendar" if I remember correctly. It got pretty entailed and I'm still tweaking all day events but it works well. There are several example profiles posted to the thread that will give you a basis to work off of. I have mine reading the calendar every morning and sending several text messages based on the days events to various people.

Alex Peters

unread,
Nov 15, 2012, 9:14:33 AM11/15/12
to tas...@googlegroups.com
For anyone else interested in the thread mentioned in the last message, (I think) it's titled "Processing Google Calendar Data" and can be found here:


In summary, that thread almost exclusively covers the method of pulling and parsing data from Google via HTTP.  If you wish to bypass use of the internet for this task, that thread won't be of much value to you.
Reply all
Reply to author
Forward
0 new messages