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
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With