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

Sri Lanka Holiday Calendar Feed #14

Open
pathumego opened this issue Feb 27, 2015 · 29 comments
Open

Sri Lanka Holiday Calendar Feed #14

pathumego opened this issue Feb 27, 2015 · 29 comments

Comments

@pathumego
Copy link
Member

This is a really small project, but will be really really useful.. a Public Google Calendar could be used I guess.

Or can this be on GitHub pages and serve the iCal (https://github.com/budparr/jekyll-calendar)

@pasindud
Copy link
Contributor

Yea this should be interesting mini project

@pathumego
Copy link
Member Author

i will do the input if someone can set up the site :)

@pasindud
Copy link
Contributor

I'll setup the site
https://github.com/CodeLanka/sri-lanka-calendar

@dhammikamare
Copy link

@pasindud
Copy link
Contributor

@dhammika-marasinghe can you make a small script that fetch data from that xml and writes to https://github.com/budparr/jekyll-calendar/blob/master/_data/events.yaml

@ishan-marikar
Copy link
Member

This might be of interest to you: https://db.tt/5S4dVa54 .. I use it with my outlook.

@ishan-marikar
Copy link
Member

I'll do a bit of research on the structure of ical files and then try my hand at coding a parser for it.

@ishan-marikar
Copy link
Member

Well, instead of parsing it, I just converted it into a csv file and then converted that into JSON/XML.

@pasindud
Copy link
Contributor

That works too, the JSON schema must be bit agile, can guys post a example JSON with one event and the metadata.

@ishan-marikar
Copy link
Member

[
    {
         "title"  : "National Day",
         "description" : "Independence day of Sri Lanka",
         "start-date" : "2015-02-04",
         "end-date" : "2015-02-04",
         "type" : [
              "Mercantile",
              "Bank"
          ]
    }
] 

What about this?

EDIT: Included start/end data and type

@pasindud
Copy link
Contributor

Start date end Date ( for incase )
Type - Mercantile || Bank (important)

I think this is ok for a base
👍

@pathumego
Copy link
Member Author

Hi Guys!

I think rather than maintaining a Google calendar its better to have this
on GH with GH pages serving the website and the iCal feed, if possible.
That way anyone can fork the repo add a calendar days and send a PR. Or can
use issues.

And options to modify the feed to include the needed days would be awesome.

  • Holidays Public
  • Holidays Bank
  • Holidays Merc.

Other educational and recreational calendars

  • Important National Days / Weeks
  • Important birthdays
  • History

These can be important for apps and blogs.

@pasindud
Copy link
Contributor

The only reason for Google Calendar is to allow non tech people to contribute too, and google kind dose the work of generating xml, json and Ical

@pasindud
Copy link
Contributor

@pasindud
Copy link
Contributor

pasindud commented Mar 1, 2015

@pathumego
Copy link
Member Author

ok I agree, how about rest of the suggestions?

Options to modify the feed to include the needed days would be awesome.

- Holidays Public
- Holidays Bank
- Holidays Merc.

Other educational and recreational calendars

- Important National Days / Weeks
- Important birthdays
- History

@ishan-marikar
Copy link
Member

@pathumego @pasindud What about an API that basically does that?
Something like:

../calendar?calendar_type=history&holiday_type=public&from=01011992&to=31122015

(Show all public holidays from the History calendar within the range of 01st of January, 1992 until 31st December, 2015)

@pasindud
Copy link
Contributor

pasindud commented Mar 1, 2015

Lets keep holidays file and history as two (separation of concerns)

/history 

from
to
/holiday

from
to
holiday_type

API should also have paging to deal with large set of data.

@ishan-marikar
Copy link
Member

calendar/holidays/?from=01011992&to=31122015
calendar/history/?from=01011992&to=31122015

@pathumego
Copy link
Member Author

@pasindud @ishan-marikar guys Im not very well informed about technology, but I can comment on the users angle or UX of the project :)

@pathumego
Copy link
Member Author

ok so to be clear I think there should be 3 kinds (or even more custom kinds?) of events on the non-holiday section as mentioned above.

@pasindud
Copy link
Contributor

pasindud commented Mar 2, 2015

you mean something called "other calendar", where stuff that is not a holiday or history goes to ?. if so Good Idea works well 👍

@pathumego
Copy link
Member Author

well, not really, The definition/contents of 'history' is not clear here i guess.

What is clear (and a separate calendar for sure) is - Important National Days / Weeks calendar.( ie: National Dengue Day week, Scouts Job Week)

Rest could be other calendar/ calendars as @pasindud suggests

@pasindud
Copy link
Contributor

pasindud commented Mar 4, 2015

Let's maybe work on the holiday and history first to see how this works out.

@pasindud
Copy link
Contributor

pasindud commented Mar 6, 2015

@dhammika-marasinghe @ishan-marikar can you guys look into the tech side of this think u have a commit access to the repo's, if not let me know

@prasadsw
Copy link

prasadsw commented May 1, 2015

@pasindud What's the status of this project? do we have a proper iCal calendar in place? are we regularly updating it?

@pathumego
Copy link
Member Author

@pahans @pasindud What do we do about this?

@pasindud
Copy link
Contributor

pasindud commented Jun 2, 2015

I think @ishan-marikar was going to do something about this

@ishan-marikar
Copy link
Member

Yes, I was going to do something about this, but I don't really know what I should do. .___.

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

No branches or pull requests

5 participants