ics with alert?

dr jerry picture dr jerry · Feb 15, 2013 · Viewed 18.3k times · Source

Hi I just found out about the ics file format, and I'm wondering whether its possible to include one or 2 alert points in an event entry which will automatically get picked up?

code:

BEGIN:VEVENT
DTSTART;TZID=Europe/Amsterdam:20130214T190000
DTEND;TZID=Europe/Amsterdam:20130214T190000
URL:http://www.myurl.com
DTSTAMP:20130205T114500
UID:
CREATED:20130214T190000
DESCRIPTION:Wedstrijd":" 3000H5B2  CE\, Datum":" donderdag 14 februari - 19.00

And for an alert something like:

DTALERT1;Europe/Amsterdam:20130213T190000

or even nicer:

DTALERT1;DTSTART-24H    

Answer

Auberon Vacher picture Auberon Vacher · Feb 23, 2013

for more details refer to RFC5545 ALARM component, in your case the resulting icalendar file would look like:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:pyICSParser
BEGIN:VEVENT
DTSTART:20130214T190000
DTEND:20130214T190000
URL:http://www.myurl.com
DTSTAMP:20130205T114500
UID:UID
CREATED:20130214T190000
DESCRIPTION:Wedstrijd":" 3000H5B2  CE\, Datum":" donderdag 14 februari - 
 19.00
BEGIN:VALARM
TRIGGER:-PT24H
REPEAT:1
DURATION:PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR