icalendar

How can I have UIDocumentInteractionController show Calendar as an option for opening a .ics file?

女生的网名这么多〃 提交于 2020-01-02 07:10:29
问题 I am intercepting a type of URL in the webview I use in my app in order to download the file that it links to instead of just trying to open it in the webview. The link is to a .ics file. So I download that file into the temporary directory and then bring up the file in a UIDocumentInteractionController instance, but Calendar is not shown as one of the apps to open that .ics file in, just Mail, DropBox and "Copy". As you can see in the commented out line in the code below I've tried making

Generating an iCalender VTIMEZONE Component from PHP's Timezone Value

心不动则不痛 提交于 2020-01-01 10:05:13
问题 I am adding a feature to my event calendar application to provide iCalendar (ics) file downloads for the events. I want to generate the VTIMEZONE Component, but all I have is the PHP's Timezone value from date_default_timezone_get(). Here's an example of a VTIMEZONE Component for Eastern Time (US & Canada) that was generated by Outlook: BEGIN:VTIMEZONE TZID:Eastern Time (US & Canada) BEGIN:STANDARD DTSTART:16011104T020000 RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11 TZOFFSETFROM:-0400 TZOFFSETTO:

SED delete specific lines between two patterns?

时光毁灭记忆、已成空白 提交于 2020-01-01 03:49:10
问题 I am trying to filter an *.ics file using sed . The *.ics file looks like this: [...] BEGIN:VEVENT UID:0xfoo SUMMARY:foo DTSTART:20131212T090000 DTEND:20131212T100000 SEQUENCE:0 DTSTAMP:20131212T100000 LOCATION:foo CATEGORIES:foo DESCRIPTION:foo CLASS:PUBLIC END:VEVENT [...] I want to delete lines starting e.g. with UID or SEQUENCE , but only if they are between BEGIN:VEVENT and END:VEVENT I tried to delete these lines with: sed '/^BEGIN:VEVENT/,/^END:VEVENT/ /^UID/d' But it will only return

Is there a way to programmatically import ICS into Google Calendar?

我是研究僧i 提交于 2019-12-31 08:43:08
问题 I don't see any obvious way to import ICS files into Google Calendar from the API docs here: http://code.google.com/apis/calendar/developers_guide_protocol.html And I'd greatly prefer not to have to parse them myself just to send the appointments into GCal. I'm looking for a programmatic solution, not something like import plugins for Thunderbird, Outlook, etc. Third party APIs to do the ICS parsing are acceptable, in any language. Any ideas? 回答1: I have created a simple open source .net

Import iCal (ics) with fullcalendar?

杀马特。学长 韩版系。学妹 提交于 2019-12-30 04:06:21
问题 What would need to be done in order to load .ics files with fullcalendar? I cannot use php or .net unfortunately. 回答1: what you would need is to write your own extension to fullcalendar (similar to the gcal.js which is provided with fullcalendar) something you could call ical.js You should know that writting an complete ical parser can be quite draining so you may want to consider sticking with google calendar for your back-end unless you have a compeling reason. Should you go down the road

Add Calendar event to Android from web .vcs download

天大地大妈咪最大 提交于 2019-12-28 03:32:30
问题 my current problem is the following; I am creating a website with two files for download( .vcs and .ics) that will add an event to the device calendar once clicked on the respective link. For the .ics in the iPhone I have no problem. My issue is that when downloading the .vcs file in Android it just opens a blank page showing the .vcs file content but is not downloading it neither recognizing the file as a calendar event. I think as per what I read before in SO (and I was searching for that

Rendering an iCal .ics file using Django: fixing incorrect newlines

杀马特。学长 韩版系。学妹 提交于 2019-12-25 13:18:21
问题 I'm using Django's render_to_response to create an .ics file on the fly for people to download. The raw content of this .ics file is fine, and validates when I use this tool. However, when I upload the file that is generated, I get this error: Your calendar is using an invalid newline format. Make sure to use \r\n to end lines rather than just \n (RFC 2445 §4.1). Is there any way to get render_to_response to generate this page with \r\n as newlines, instead of just \n ? I've got the feeling

Rendering an iCal .ics file using Django: fixing incorrect newlines

风流意气都作罢 提交于 2019-12-25 13:18:07
问题 I'm using Django's render_to_response to create an .ics file on the fly for people to download. The raw content of this .ics file is fine, and validates when I use this tool. However, when I upload the file that is generated, I get this error: Your calendar is using an invalid newline format. Make sure to use \r\n to end lines rather than just \n (RFC 2445 §4.1). Is there any way to get render_to_response to generate this page with \r\n as newlines, instead of just \n ? I've got the feeling

Including a LOCATION field in an .ics calendar file stops Calendar on MacOS El Capitan communicating with Exchange Server

好久不见. 提交于 2019-12-25 09:47:52
问题 This question relates to a question I asked previously (Importing .ics into Calendar on Mac (El Capitan) breaks connection to Exchange Server). I have written a Python script to generate an .ics file that can be used to transfer calendar events into an Exchange calendar in the Calendar app on MacOSX (El Capitan). The .ics file produced validates using http://severinghaus.org/projects/icv/. The events are imported into a separate calendar rather than into the default Exchange calendar and

Save event as ICalendar using Javascript

巧了我就是萌 提交于 2019-12-25 09:19:17
问题 Hi guys anyone of you know how to save an event as google calendar or ICal? Scenario is I have the start and end date and the title of the event. If I click on the button it should save or open a browser via google calendar and save that event. I tried the jquery.icalendar but no luck its only for Jquery V1.1.1. Right now I'm using jQuery v3.2.1 anyone of you have an idea on how to do this without using the jquery.icalendar if possible as its outdated already. Edit: Would like to achieve