You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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."
}
]
The text was updated successfully, but these errors were encountered:
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 variableCALENDAR_JSON_SAVE_PATH
can be used to determine whether or not to generate the file.And example output could be:
The text was updated successfully, but these errors were encountered: