openwichita / public-meetings

A service to show all upcoming available public meetings for the City of Wichita.
1 stars 4 forks source link

Generate ical download #22

Closed Mearnest closed 7 years ago

Mearnest commented 7 years ago

The meeting list has a link for downloading an ical event. This needs to be implemented. In the meeting model, there is a to_ics function placeholder. The relevant information for an ical event needs to be included and converted into a byte string.

The prototype-web-scraping branch shows how Python does this. It does use an ical library, but you can see how the information is added starting on line 61:

https://github.com/openwichita/public-meetings/blob/prototype-web-scraping/Meeting.py

And in the files is a generated ics file:

https://github.com/openwichita/public-meetings/blob/prototype-web-scraping/files/data_science_meeting_5_1_2017.ics

web/models/meeting.ex web/templates/meeting/index.html.eex