Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iCalendar stream for user/canteen #2

Open
nikriek opened this issue Nov 24, 2014 · 7 comments
Open

iCalendar stream for user/canteen #2

nikriek opened this issue Nov 24, 2014 · 7 comments

Comments

@nikriek
Copy link

nikriek commented Nov 24, 2014

Hi there, I already spoke to Malte about my idea to implement a calendar API for users. I thought about the following scenarios:

  1. There is a public stream for each canteen.
  2. The user can generate a link to a stream based on his canteen favorites. (auth via token)

The url should handle some parameters like "show event for all day" or "event's time based on the canteen's opening hours". A response then contains events with the parsed information for each day. I would also build a small url generator for users based on your decisions.

For the implementation I found ri_cal and/or icalendar.

Please provide me some feedback on what you want me to implement. Thanks :)

@nikriek
Copy link
Author

nikriek commented Nov 24, 2014

bildschirmfoto 2014-11-24 um 18 53 33

@cmur2
Copy link
Member

cmur2 commented Nov 25, 2014

Scenario 1 in combination with a sane default like "show event for all day" seems like the least effort... since you asked which scenario would suit you most?

Do you have any experience with any of the ical-gems regarding ease of use, robustness, development status etc.?

@nikriek
Copy link
Author

nikriek commented Nov 25, 2014

The mentioned scenario with the least effort suits best for me, I think. "All day" is light (as in my inspiration Wunderlist) and it's also quite easy to append a calendar stream to the /api/v2/canteens/:canteen_id/meals endpoint. Is this still RESTful btw?

I just played around with the gems, so no real experience. But since the icalendar gem has a lot more downloads on rubygems.org and a good reputation, I would use this one.

I can build a small prototype. How about a meetup then if one you is studying at HPI?

@jgraichen
Copy link
Member

You can also just fork and push your prototype there (and make a PR maybe).

@nikriek
Copy link
Author

nikriek commented Nov 25, 2014

Ok, what's the best way to get some data for my database?

@cmur2
Copy link
Member

cmur2 commented Nov 25, 2014

You may want to join us via IRC on Freenode #openmensa for discussing in a more chat-ty way :)

@nikriek
Copy link
Author

nikriek commented Nov 27, 2014

Can someone send me some data? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants