hackerspacesg / hackerspace.sg

Hackerspace.sg 2.0 using Punch
https://hackerspace.sg/
17 stars 25 forks source link

http://hackerspace.sg/events generator from Google Calendar's ICS #67

Open kaihendry opened 10 years ago

kaihendry commented 10 years ago

We have fairly good archives of past events, at least WHEN they happened.

This is from Google takeout: http://s.natalian.org/2014-01-06/hsg-event-archive.ics

We need to generate something like:

Ideally we can show a neat history of a certain number (a graph?) and skills passing through our doors. This is what sponsors want to see.

kaihendry commented 10 years ago

I have been investigating parsing ICS and I ran into some issues with ical.js https://github.com/peterbraden/ical.js/issues/29

notthetup commented 10 years ago

How about using https://github.com/cheeaun/life for this? Maybe an ics -> life translator would be a great open source project?

kaihendry commented 10 years ago

I don't like it because:

It might look impressive though. I prefer we get the stuff on http://hackerspace.sg/events/ first. Maybe we can come up with a http://hackerspace.sg/events.json from which a "Life" plot can be made.

notthetup commented 10 years ago

OK. Agreed with your reasons. So what's the best format? Like a rolling index (blog)?

kaihendry commented 10 years ago

Yes, like a blog. I'm inclined to quickly write a ICS parser in shell since I can't be bothered to work out wtf is going wrong with https://github.com/peterbraden/ical.js/issues/29 Then creating boiler plate files and dirs with nodejs is also I imagine a bit of pain too.

notthetup commented 10 years ago

Write a blogging engin in bash?? :P

chernjie commented 10 years ago

I have a great idea, why don't we use WordPress?

Cheers, Chern Jie

On Thu, Mar 20, 2014 at 1:21 PM, Chinmay Pendharkar < notifications@github.com> wrote:

Write a blogging engin in bash?? :P

Reply to this email directly or view it on GitHubhttps://github.com/hackerspacesg/hackerspace.sg/issues/67#issuecomment-38136155 .

gibtang commented 10 years ago

Joomla?

On Thu, Mar 20, 2014 at 2:19 PM, chernjie notifications@github.com wrote:

I have a great idea, why don't we use WordPress?

Cheers, Chern Jie

On Thu, Mar 20, 2014 at 1:21 PM, Chinmay Pendharkar < notifications@github.com> wrote:

Write a blogging engin in bash?? :P

Reply to this email directly or view it on GitHub< https://github.com/hackerspacesg/hackerspace.sg/issues/67#issuecomment-38136155

.

Reply to this email directly or view it on GitHubhttps://github.com/hackerspacesg/hackerspace.sg/issues/67#issuecomment-38138301 .

robertsky commented 10 years ago

I support WordPress. For obvious reasons. :P

chernjie commented 10 years ago

I managed to over come the issue with https://github.com/peterbraden/ical.js/issues/29 by manually cloning the latest code from https://github.com/peterbraden/ical.js into our node_modules directory. Also submitted a ticket.

kaihendry commented 10 years ago

So what do you mean by "over come"? Are you generating the JSON/mdwn needed for "/events/YYYY-MM-DD"? If so, where is it?

chernjie commented 10 years ago

ical.js had a bug where if there is a nested BEGIN/END, it will break. The issue is actually fixed in their main branch, however it has not been pushed to npm registry. Now with this bug out of the way, you can generate the JSON/mdwn you desire

kaihendry commented 10 years ago

@chernjie Can you verify https://github.com/peterbraden/ical.js/issues/29 is fixed and close it?

chernjie commented 10 years ago

verified

kaihendry commented 9 years ago

I would be more motivated to write this if my pull requests were merged.