Re: how can i display events from a specific calendar in case of multiple current calendars?

1,614 views
Skip to first unread message

UncleMike

unread,
May 23, 2013, 9:38:15 AM5/23/13
to tas...@googlegroups.com
What you've done with that context is restrict which events will trigger the context based on which calendar the event appears on (I'm sure you know that, but that's the lead in to my next statement).  However, that has no effect on which data appears in %CALTITLE, %CALDESCR or %CALLOC (as I think you've already discovered).  To do what you're looking for, you'll need to use the Test action to get the information you want.  Something like this:

A1: Test [ Type:Calendar Calendar Data:%TIMES Store Result In:%calendar ] 
A2: Test [ Type:Calendar Title Data:%TIMES Store Result In:%title ] 
A3: Test [ Type:Calendar Description Data:%TIMES Store Result In:%description ] 
A4: Test [ Type:Calendar Location Data:%TIMEZ Store Result In:%location ] 
A5: For [ Variable:%index Items:%calendar(#?*bob*) ] 
A6: Notify Vibrate [ Title:%title(%index), %description(%index), %location(%index) Text: Icon:null Number:0 Pattern: Priority:3 ] 
A7: End For 

Basically...

  1. get the names of the calendars for all events occurring now (%TIMES) and store them in an array named %calendar.  If multiple events appear on the same calendar, that calendar name will be listed multiple times, once for each event.
  2. get the titles for all events occurring now and store them in an array named %title
  3. get the descriptions for all events occurring now and store them in an array named %description
  4. get the locations for all events occurring now and store them in an array named %location
  5. for each of the above events where the calendar name matches *bob*, use Notify Vibrate and display the title, description and location of the event


On Thursday, May 23, 2013 6:41:33 AM UTC-4, orelbenny wrote:
hey all!
apologise in advance for the question, i'm a bit new to tasker.
i'm running tasker 4.0 on nexus 4.

i read at http://tasker.dinglisch.net/userguide/en/variables.html that in case of multiple current calendar, tasker will display the shortest one (on the variables %CALTITLE / %CALDESCR / %CALLOC).
does anyone know how to display events from a specific calendar instead of the shortest one in case of multiple calendars?

already managed to choose the specific calendar context through "+ -> STATE -> APP -> CALENDAR ENTRY -> CALENDAR". now i just want to display the calendar's specific details by using "ALERT ->NOTIFY VIBRATE"...
thanks in advance!!

orelbenny

unread,
May 24, 2013, 6:45:21 AM5/24/13
to tas...@googlegroups.com
works like a charm!! :)
thank you so much for the quick and detailed response!


UncleMike

unread,
May 24, 2013, 2:05:49 PM5/24/13
to tas...@googlegroups.com
You're welcome.  I'm glad it worked.
Message has been deleted

Jean Bouchard

unread,
Jul 16, 2015, 7:09:23 AM7/16/15
to tas...@googlegroups.com
Hello, can you help me? How retrieved the names of the calendar and store it in calendar% ??

Rich D

unread,
Jul 16, 2015, 9:15:35 AM7/16/15
to Tasker Google Groups Post


> Hello, can you help me? How retrieved the names of the calendar and store it in calendar% ??
>

You need to add more details in your question.  Please take the time and try to use the proper terminology.  IE. The exact name of actions and exactly what data you are looking for.

If you are new to tasker then view the beginner video @ menu /info /guides.  Try to build a profile and when you get stuck post a "detailed" question here with your exported descriptions.

To post your profile or task here...  Long press on the profile or task name / ( 3 dot menu with 4.0+ ) export / export "DESCRIPTION" to clipboard (not XML)

Any linked tasks will be exported with the profile they are linked to..

To be able to export, The beginner mode needs to be off and the profile needs to be named by you (Not the Tasker listed name.  Tasker will list your profile with the context name if you have not given it one).

Reply all
Reply to author
Forward
0 new messages