icalendar

Serving an iCalendar file in ASPNET MVC with authentication

北慕城南 提交于 2019-12-08 03:08:13
问题 I'm trying to serve an iCalendar file (.ics) in my MVC application. So far it's working fine. I have an iPhone subscribing to the URL for the calendar but now I need to serve a personalised calendar to each user. When subscribing to the calendar on the iPhone I can enter a username and password, but I don't know how to access these in my MVC app. Where can I find details of how the authentication works, and how to implement it? 回答1: It turns out that Basic Authentication is what is required.

RegEx: can't figure out the expression to match lines with individual events and match only those containing certain word

耗尽温柔 提交于 2019-12-07 15:15:58
问题 I am trying to clean up and merge some older calendar files (x.ics), using Sublime Text as editor. Opening the files gives a long file like below. I would like to delete (i.e. replace by nothing) all the entries (VEVENTs) in the file mentioning Birthday in the SUMMARY and keep all other entries, so I am using Regular Expressions as an approach. I managed to match the lines from BEGIN:VEVENT to END:VEVENT, however I can't manage to setup an expression to filter only the matches/VEVENTs with

How can I open calendar .ics files in ios?

旧时模样 提交于 2019-12-07 14:55:49
问题 I am trying to download and open .ics file in my app. I found few question, and here's some code I am using // NSString *path = [[NSBundle mainBundle] pathForResource:@"http://www.nmsd.wednet.edu//site/handlers/icalfeed.ashx?MIID=607" ofType:@"ics"]; NSURL *url = [NSURL fileURLWithPath:@"http://www.nmsd.wednet.edu//site/handlers/icalfeed.ashx?MIID=607"]; UIDocumentInteractionController *dc = [UIDocumentInteractionController interactionControllerWithURL:url]; dc.delegate = self; [dc

how do the X-APPLE extensions work in icalendars?

£可爱£侵袭症+ 提交于 2019-12-07 08:20:27
问题 Currently I'm working on a icalendar for the calendar app of apple. When i dived deeper in the icalendars i found some X- extensions. Does someone know how the X-APPLE-STRUCTURED-LOCATION , X-APPLE-TRAVEL-DURATION AND X-APPLE-TRAVEL-START work? Here are some exemples: BEGIN:VCALENDAR CALSCALE:GREGORIAN VERSION:2.0 METHOD:PUBLISH X-WR-CALNAME:test 2 X-WR-TIMEZONE:Europe/Amsterdam X-APPLE-CALENDAR-COLOR:#FF2968 BEGIN:VEVENT TRANSP:OPAQUE DTEND:20150617T193000Z UID:test@webscoding.nl DTSTAMP

data:text/calendar not recognized by Internet Explorer

大兔子大兔子 提交于 2019-12-07 06:15:53
问题 I'm trying to create an ics file on the fly using only JavaScript without an intermediate save. I'm restricted to JavaScript and no save because of the platform this will eventually be running on. I'm a novice JavaScript programmer, but I've cobbled together something that works (almost) by a lot of searching on the web. What I've come up with works in Chrome, Firefox, and even Opera, but it doesn't work in Internet Explorer. In all other browsers I get an ics file created and downloaded, but

Writing .ics iCal file using java

*爱你&永不变心* 提交于 2019-12-07 04:19:11
问题 I am attempting to implement my own iCal creator using java and for some reason I can't get my .ics file to be recognized. I was wondering what I am doing wrong I can get output that looks exactly like the example from wikipedia. What is the difference between the .ics file and the once that my program has generated. Their Example: BEGIN:VCALENDAR VERSION:2.0 PRODID:-//hacksw/handcal//NONSGML v1.0//EN BEGIN:VEVENT UID:uid1@example.com DTSTAMP:19970714T170000Z ORGANIZER;CN=John Doe:MAILTO:john

Scheduling a monthly event “Every Nth Weekday” using RFC 5545 recurrence rule

a 夏天 提交于 2019-12-07 02:24:22
问题 I'm trying to replicate some scheduling functionality in Google Calendar in C# using the RFC5545 recurrence rule. There are two options for scheduling monthly with Google calendar, either by every Nth day month, ie: Every 10th day of the month every 1 months , this will obviously occur regardless of the week day. My recurrence rule for this is: FREQ=MONTHLY;BYMONTHDAY=10 The other option is to repeat the event on every Nth weekday, ie: " Every second Sunday every one months , this is the one

ICS in Outlook being sent as a .msg file

◇◆丶佛笑我妖孽 提交于 2019-12-07 00:33:39
问题 I have an application, it is creating an ICS similar to the following: BEGIN:VCALENDAR VERSION:2.0 METHOD:REQUEST BEGIN:VEVENT ATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:test1234@gmail.com ORGANIZER:MAILTO:test1234@org.com DTSTART:20100803T190000Z DTEND:20100803T200000Z LOCATION:Go to http://100.200.0.55/Login/ParticipantLogIn.asp and enter Conference ID: 0000 SEQUENCE:0 UID:352C75A6-0117-4B3A-AFE6-7B18649CD45A DTSTAMP:20100803T184455Z DESCRIPTION:TO ACCESS THE WEB CONFERENCE:\n\n Click

D-Day Calendar has wrong dates when importing from google calendar?

这一生的挚爱 提交于 2019-12-06 16:55:07
I am using D-Day calendar and I am not sure but I got a weird problem. I basically have this for my code iCalendar iCal = iCalendar.LoadFromStream(file.InputStream); foreach (Event evt in iCal.Events) { DateTime start = evt.DTStart.Date; DateTime end = evt.DTEnd.Date; // loop through it and get values. } Yet when I import a calendar from google calendar the end date is messed up on some of the stuff I am importing. Like for instance I have this Title: should not show When: Sun, March 21(all day). Yet when I import it in. I says the start date is the 21st yet the end date is the 22nd when it

parse dates with icalendar and compare to python datetime

吃可爱长大的小学妹 提交于 2019-12-06 16:35:29
I have an .ics file from which I would like to extract all of the events that occur on today's day. I think I'm having trouble converting the icalendar DTSTART and DTEND to python datetimes. I've tried to follow the documentation at icalendar.readthedocs.org . The list I'm getting is empty, which should not be the case. This is my code: import urllib2 import json from datetime import datetime from icalendar import Calendar, Event, vDatetime def getTodayEvents(icsFile): cal = Calendar.from_ical(icsFile) today = datetime.now().date() entries = [] for event in cal.walk('VEVENT'): dtstart = event[