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

Generate JSON file of events #6

Closed
mukundbhudia opened this issue Oct 11, 2021 · 0 comments · Fixed by #8
Closed

Generate JSON file of events #6

mukundbhudia opened this issue Oct 11, 2021 · 0 comments · Fixed by #8

Comments

@mukundbhudia
Copy link
Owner

Need to generate a JSON file of events stored in the calendar

This will be later used to populate a front-end.

For the .env the variable CALENDAR_JSON_SAVE_PATH can be used to determine whether or not to generate the file.

And example output could be:

[
    {
        "date": "26 June 2021",
        "time_and_place": "26 June 2021, 8pm to 12am, Wembley Stadium, Wembley, London HA9 0WS",
        "title": "Wembley Stadium event - Round of 16: Italy v Austria",
        "description": "Round of 16: 1A v 2C takes place on Saturday 26 June 2021. Kick off is at 8pm and parking restrictions will be in place until midnight."
    },
    {
        "date": "29 June 2021",
        "time_and_place": "29 June 2021, Kick off: 5pm, Wembley Stadium, Wembley, London HA9 0WS",
        "title": "Wembley Stadium event - Round of 16: England v Germany",
        "description": "Round of 16: 1D v 2F takes place on Tuesday 29 June 2021. Kick off is at 5pm and parking restrictions will be in place until midnight."
    },
    {
        "date": "06 July 2021",
        "time_and_place": "6 July 2021, 8pm to 12am, Wembley Stadium, Wembley, London HA9 0WS",
        "title": "Wembley Stadium event - UEFA Euro 2020: Italy v Spain",
        "description": "The first semi-final between Italy and Spain takes place on Tuesday 6 July 2021. Kick off is 8pm and parking restrictions will be in place until midnight."
    },
    {
        "date": "07 July 2021",
        "time_and_place": "7 July 2021, 8pm to 12am, Wembley Stadium, Wembley, London HA9 0WS",
        "title": "Wembley Stadium event - UEFA Euro 2020: England v Denmark",
        "description": "The second semi-final between England and Denmark takes place on Wednesday 7 July 2021. Kick off is 8pm and parking restrictions will be in place until midnight."
    },
    {
        "date": "17 July 2021",
        "time_and_place": "17 July 2021, Kick off: 12pm, Wembley Stadium, Wembley, London HA9 0WS",
        "title": "Wembley Stadium event - The Betfred Challenge Cup Final between Castleford Tigers and St Helens",
        "description": "The Betfred Challenge Cup Final between Castleford Tigers and St Helens will take place on Saturday 17 July 2021 at Wembley Stadium. Event day parking restrictions will be in place until midnight."
    },
    {
        "date": "07 August 2021",
        "time_and_place": "7 August 2021, 5pm to 12am",
        "title": "The FA community shield supported by McDonald's",
        "description": "The FA community shield supported by McDonald's: Manchester City v Leicester City"
    },
    {
        "date": "05 December 2021",
        "time_and_place": "5 December 2021, TBC, Wembley Stadium, Wembley, London HA9 0WS",
        "title": "Wembley Stadium event - The women's FA cup final",
        "description": "The women's FA cup final takes place on Sunday 5 December 2021. Event day parking restrictions will be in place until midnight."
    }
]
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

Successfully merging a pull request may close this issue.

1 participant