Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ics with alert?

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    
like image 516
dr jerry Avatar asked Feb 15 '13 10:02

dr jerry


2 Answers

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
like image 91
Auberon Vacher Avatar answered Sep 28 '22 22:09

Auberon Vacher


This still works in 2021 November:

BEGIN:VALARM
X-WR-ALARMUID:12E16C3A-108C-1639-AABD-AF32053AC32E
UID:10E16C3A-128C-1639-AABD-AF32053AC32E
TRIGGER:-PT5M
DESCRIPTION:Reminder
ACTION:DISPLAY
END:VALARM

You can add this block right before END:VEVENT

The unique alarm UIDs are required.

like image 24
CatalinBerta Avatar answered Sep 28 '22 22:09

CatalinBerta