Calendar Insert w/Reminder?

367 views
Skip to first unread message

Tony B.

unread,
Mar 30, 2015, 2:42:56 PM3/30/15
to tas...@googlegroups.com
How exactly am I supposed to do this? The entries get put in, but there is no way to specify a reminder.

Marta Hintz

unread,
Mar 30, 2015, 4:54:55 PM3/30/15
to tas...@googlegroups.com
huh? add a bit more detail so you may get better support.

Tony B.

unread,
Mar 30, 2015, 5:45:22 PM3/30/15
to tas...@googlegroups.com

When I add a calendar entry from Tasker, there is no 'reminder' set. That means I get no notification that there is a calendar event going on.

On Mar 30, 2015 4:55 PM, "Marta Hintz" <lar...@gmail.com> wrote:
huh?  add a bit more detail so you may get better support.

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/7FBtCBmQSN0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Tony B.

unread,
Mar 31, 2015, 10:52:30 AM3/31/15
to tas...@googlegroups.com

Nobody?

Rich D

unread,
Mar 31, 2015, 12:32:05 PM3/31/15
to Tasker Google Groups Post


> When I add a calendar entry from Tasker, there is no 'reminder' set. That means I get no notification that there is a calendar event going on.

AFAIK this has always been the case. I did a quick search and did not find any requests or posts about it. You could try a more thorough search of this group and post this as a feature request.  It would be nice to have.

Adam W

unread,
Apr 3, 2015, 11:10:53 PM4/3/15
to tas...@googlegroups.com
This may be a terrible solution, but ot works for me. I have a project that handles scheduling. It converts date and time entries to seconds for comparison with the current date. Every morning it runs through the data pairs (event description and seconds) and determines which event is soonest to occur. If it is greater than 24 hours it disables all profiles except the nightly reminder. If it is greater than 1 hour it enables the hourly check (same task as the morning one). Essentially, the more nore near an event, the more often it checks. Every event triggers 4 reminders. 1 Day. 12 hours. 1 hour. And on event. I am thinking about adding GPS to it so it can look at my location and relative destination and dynamically inform me based on how long it would take to arrive.

Maybe I overthought it, but I long ago decided that Tasker's built-in date-time capabilities are lightyears ahead of Google Calender... in fact they seem to be more reliable too. Especially Google Now reminders. Many a pizza have burnt thanks to Google Now. Tasker never lets me down :)

Best of luck however you proceed.

Odysseos

unread,
Apr 4, 2015, 5:24:07 AM4/4/15
to tas...@googlegroups.com
Just now I'm working about a calendar project. Starting by an interesting post of Ruslan Alcotana (here is the link to the post : https://groups.google.com/forum/#!topic/tasker/lqlCpcLf-J4), I found a way to create an Intent with several extras that allows to create a calendar entry where I can indicate e.g. title, description, start time, ending time, availability, privacy, event location, access level, repeat rules, reminder set and more other. A useful start point is the developer page here: http://developer.android.com/reference/android/provider/CalendarContract.EventsColumns.html
What you have to do is to set several Java functions in Tasker like:
1) create a new Intent
2) add a setType
3) add several extras
When you have done, you must add 2 other Java actions to add Flags (due an issue in Tasker) and a start activity action.
 Here is a description of my task, you can use it as astarting point:

Calendar Intent (432)
A1: Java Function [ Return:calIntent Class Or Object:Intent Function:new
{Intent} (String) Param:android.intent.action.EDIT Param: Param: Param: Param: ]
A2: Java Function [ Return: Class Or Object:calIntent Function:setType
{Intent} (String) Param:vnd.android.cursor.item/event Param: Param: Param: Param: ]
A3: Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, long) Param:beginTime Param:%datains Param: Param: Param: Continue Task After Error:On ]
A4: Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, boolean) Param:allDay Param:false Param: Param: Param: ]
A5: Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, String) Param:title Param:Here the event title Param: Param: Param: ]
A6: Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, String) Param:description Param:Here the event description Param: Param: Param: ]
A7: Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, int) Param:availability Param:1 Param: Param: Param: Continue Task After Error:On ]
A8: [X] Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, int) Param:hasAlarm Param:1 Param: Param: Param: ]
A9: Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, int) Param:method Param:1 Param: Param: Param: ]
A10: [X] Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, int) Param:minutes Param:-1 Param: Param: Param: ]
A11: [X] Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, int) Param:displayColor Param:3 Param: Param: Param: ]
A12: [X] Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, String) Param:rrule Param:FREQ=WEEKLY Param: Param: Param: ]
A13: [X] Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, String) Param:rdate Param:3 Param: Param: Param: ]
A14: [X] Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, String) Param:duration Param:16102015 Param: Param: Param: ]
A15: [X] Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, long) Param:notifyTime Param:%alarm Param: Param: Param: ]
A16: Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, long) Param:alarmTime Param:%datains Param: Param: Param: ]
A17: Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, int) Param:accessLevel Param:2 Param: Param: Param: ]
A18: [X] Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, int) Param:eventStatus Param:1 Param: Param: Param: ]
A19: Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, String) Param:eventLocation Param:Somewhere Param: Param: Param: ]
A20: Java Function [ Return: Class Or Object:calIntent Function:putExtra
{Intent} (String, long) Param:endTime Param:%end Param: Param: Param: ]
A21: Java Function [ Return: Class Or Object:calIntent Function:addFlags
{Intent} (int) Param:calIntent.FLAG_ACTIVITY_FORWARD_RESULT Param: Param: Param: Param: Continue Task After Error:On ]
A22: Java Function [ Return: Class Or Object:calIntent Function:addFlags
{Intent} (int) Param:calIntent.FLAG_ACTIVITY_NEW_TASK Param: Param: Param: Param: Continue Task After Error:On ]
A23: Java Function [ Return: Class Or Object:CONTEXT Function:startActivity
{} (Intent) Param:calIntent Param: Param: Param: Param: ]

Tony B.

unread,
Apr 4, 2015, 9:28:58 AM4/4/15
to tas...@googlegroups.com

With a task this complicated, it would be better if you could show me the XML.

Would you mind?

--

Ludovico D'Argenio

unread,
Apr 4, 2015, 9:57:45 AM4/4/15
to tas...@googlegroups.com

Hello.  This task is still "work in progress".  I'm testing it to found flaws.  However,  you can set reminders either with "hasAlarm"  extra and setting it to the value 1 (Action 8 in the task),  either with the "method"  extra which accepts several values. I made many tests on it and I can ensure that works. Must be noticed that the reminder will be "visible"  after the event has been synced, that happens after few minutes  from its creation. Anyway, I'll post a working XML as soon as possible...

Tony B.

unread,
Apr 4, 2015, 2:21:44 PM4/4/15
to tas...@googlegroups.com

Thank you. Very much appreciated.

Reply all
Reply to author
Forward
0 new messages