pipedream icon indicating copy to clipboard operation
pipedream copied to clipboard

[APP] iCal Public Link

Open vunguyenhung opened this issue 1 year ago • 1 comments

Name of app / service iCal

This is not tied to to a specific service. Sources in this app should accept a public url serving an ical file (for example https://mergecal.org/calendars/f7285c8b-5a1d-4956-8f4e-d97ac1693e77.ical)

The app should be a placeholder similar to RSS.

Is lack of support preventing you from building workflows, or do you have a workaround? Yes

Are there specific actions, or triggers, you'd like to see for this app? Please let us know here or use the Action and Trigger issue templates to open requests for each!

  • New Event added
  • Event updated

vunguyenhung avatar Aug 18 '24 05:08 vunguyenhung

Pipedream has a simular trigger but its specific for google calendar https://github.com/PipedreamHQ/pipedream/blob/master/components/google_calendar/sources/new-or-updated-event-instant/new-or-updated-event-instant.mjs

I think the same concept can be applied more broadly to any calendar feed

abe-101 avatar Aug 18 '24 05:08 abe-101

A base integration accessing a publicaly available iCal file and returning its contents in JSON format has been released. https://pipedream.com/apps/ical

App developers should get to developer related sources soon.

sergio-eliot-rodriguez avatar Sep 13 '24 23:09 sergio-eliot-rodriguez

Can I make a suggestion? the python example on site (https://pipedream.com/apps/ical) returns an error that is because you cannot simply convert ical into json

you need to make use of a library like https://github.com/collective/icalendar

a better example my be

import requests
from icalendar import Calendar

def handler(pd: "pipedream"):
  r = requests.get(f'{pd.inputs["ical"]["$auth"]["url"]}')
  cal = Calendar.from_ical(r.text)  
  # Export the data for use in future steps

abe-101 avatar Sep 18 '24 00:09 abe-101

there is an open issue regarding adding suport for json https://github.com/collective/icalendar/issues/703

abe-101 avatar Sep 18 '24 00:09 abe-101

@abe-101 thanks for your suggestion!

andrewjschuang avatar Sep 19 '24 13:09 andrewjschuang

thanks @abe-101 and @andrewjschuang i have flagged this to Product

sergio-eliot-rodriguez avatar Sep 20 '24 22:09 sergio-eliot-rodriguez