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

[Page] Events, when no upcoming events #39

Open
megamos opened this issue Sep 15, 2017 · 12 comments
Open

[Page] Events, when no upcoming events #39

megamos opened this issue Sep 15, 2017 · 12 comments

Comments

@megamos
Copy link
Collaborator

megamos commented Sep 15, 2017

Currently there is no text/info at all when there is no upcoming event.
Lets add something. Like info about things that occur regularly, such as codhubs.

Or maybe a whole new section on the events page about our CodeHubs?
(Everybody doesn't use facebook.)

@jherrlin
Copy link
Member

Maybe we should try to get these events from FB, would that be possible?

@ritzelpaket
Copy link

ritzelpaket commented Sep 22, 2017

Yes. I'll write a script for the job. Should be included in Django as a schedules job.

How must the data be prepared? JSON? How will the data be stored in Django?

@jhe10709
Copy link
Contributor

I think we could use http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html for this. We have a model for events here https://github.com/Kodkollektivet/kodkollektivet.se/blob/master/kodkollektivet/kodkollektivet/models.py#L38 , guess it would make sense to use that. Or what do you think?

@jhe10709
Copy link
Contributor

@ritzelpaket is the script in Python?

@ritzelpaket
Copy link

The script will be written in Python. I will write the script and fetch some data. Then I will have a look if it fits the model. Maybe we need to add some fields to the model, if it is not too much work.

@jhe10709
Copy link
Contributor

Modifying the model is no problem and easy to do! I think it can be really easy to save it to the DB if you have a json object with key names that representing the model.

@jhe10709
Copy link
Contributor

@ritzelpaket hows it going with this? should we make some effort together?

@ritzelpaket
Copy link

Yes! Did you come forward with your guile implementation? Or should we finally write it in python? I will try to fix the fb dev account this week.

@jhe10709
Copy link
Contributor

At the moment I am working on a Guile implementation but its not done, wanna help out on that or should we go for a Python implementation? I got some help from my colleagues with Facebooks Graph API.

@ritzelpaket
Copy link

The python script to fetch caldav events is working now. We can successfully build event objects in JSON now. How and were should we store them then?

@ritzelpaket
Copy link

ritzelpaket commented Nov 14, 2017

I really like this calendar library: https://fullcalendar.io/. Could be used to display events on the desktop version. I think mobile should be a different library, because I think it is not responsive. Or maybe the list view for mobile.

@AhmadVakil
Copy link

@ritzelpaket The JSON export will be finished soon and then we can save them into any database. We can get it done soon.

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