hasadna / Open-Knesset

A project aimed at making the Israeli Knesset more transparent. Python and Django based
http://oknesset.org/
BSD 3-Clause "New" or "Revised" License
106 stars 175 forks source link

Support a Person's calendar #279

Open daonb opened 9 years ago

daonb commented 9 years ago

Folliwng discussion with Tomer Avital, we want to offer the MKs the ability to publish their shared calendar in Open Knesset. We can assume the MKs are using google calendar and the URL of the calendar will be entered through the admin interface. We need to store the URL and display the calender on the MKs page.

OriHoch commented 9 years ago

we already have this issue :

183

also, somewhat related to this: #184

OriHoch commented 9 years ago

do you have some examples of mks google calendar urls?

last time I looked into it I couldn't find any...

daonb commented 9 years ago

This monday I spoke with Stav Shafir and she promised she will share her calendar, so that's one. we will have more...

OriHoch commented 9 years ago

The movement for freedom of information published some calendars.. but all in PDF :( http://www.meida.org.il/?p=5028 OCR anyone?

daonb commented 9 years ago

No need for OCR. We scheduled a meeting in the Knesset on the 10/12 to train MKs on how to publish their calendars using google.

On 13 November 2014 10:08, Ori Hoch notifications@github.com wrote:

The movement for freedom of information published some calendars.. but all in PDF :( http://www.meida.org.il/?p=5028 OCR anyone?

— Reply to this email directly or view it on GitHub https://github.com/hasadna/Open-Knesset/issues/279#issuecomment-62854854 .

"כְּרֹעֶה, עֶדְרוֹ יִרְעֶה, בִּזְרֹעוֹ יְקַבֵּץ טְלָאִים, וּבְחֵיקוֹ יִשָּׂא; עָלוֹת, יְנַהֵל." (ישעיהו הנביא http://www.sefaria.org/Isaiah.40.11). http://yeda.us/daonb

OriHoch commented 9 years ago

I'm working on it - this is the plan:

  1. Add an option to add the calendar URL for an MK - DONE (#284)
  2. write a scraping process that takes all the events from the calendar into our DB - DONE (#284)
  3. show the events on oknesset
OriHoch commented 9 years ago

need to get the event color as well

OriHoch commented 9 years ago

regarding event color - it seems there is a bug in google's api, it doesn't return the color for public events.. https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3684

daonb commented 9 years ago

great timing! I've added a comment to the issue asking them to speed things up - https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3684

On 6 December 2014 at 22:28, Ori Hoch notifications@github.com wrote:

regarding event color - it seems there is a bug in google's api, it doesn't return the color for public events.. https://groups.google.com/forum/#!topic/google-calendar-api/r17_Q3kpvVM

— Reply to this email directly or view it on GitHub https://github.com/hasadna/Open-Knesset/issues/279#issuecomment-65912537 .

"כְּרֹעֶה, עֶדְרוֹ יִרְעֶה, בִּזְרֹעוֹ יְקַבֵּץ טְלָאִים, וּבְחֵיקוֹ יִשָּׂא; עָלוֹת, יְנַהֵל." (ישעיהו הנביא http://www.sefaria.org/Isaiah.40.11). http://yeda.us/daonb

OriHoch commented 9 years ago

Looks like google do not consider this as a bug. So, I suggest not relying on event colors at the moment.