Giter Site home page Giter Site logo

mukundbhudia / wembley-events Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 1.4 MB

Wembley Stadium & Arena calendar generator.

Home Page: https://mukundbhudia.github.io/wembley-events/wembley-events.ics

Rust 100.00%
events wembley stadium rust calander tokio scraper

wembley-events's Introduction

wembley-events

GitHub tag (latest by date) Release Rust Trigger calendar generation on a CRON Schedule

Know when Wembley Stadium events are happening ahead of time. This project generates a calendar file on all the upcoming events at Wembley Stadium.

  • Don't get caught out in the traffic.
  • Don't struggle with parking.
  • Don't waste precious time.

The calendar is updated regularly and is always available to subscribe to/download here: https://mukundbhudia.github.io/wembley-events/wembley-events.ics.

In addition to the calendar, this project can also generate a JSON file containing the events available to download here: https://mukundbhudia.github.io/wembley-events/wembley-events.json.

The wembley-events-web project uses the events generated using this project to provide useful a frontend for the calendar.

GitHub Actions runs this project and uploads the calendar file to GitHub pages on a twice daily basis.

Feel free to subscribe to the calendar using your favourite calendar app. The file output conforms to the iCalendar specification.

Pre-requisites

Development

  • Copy the .env.example file to .env and edit the values to suit.
  • Within the repo directory run cargo r.
    • This will generate a calendar file to the path defined in CALENDAR_SAVE_PATH.
    • Setting a path for CALENDAR_JSON_SAVE_PATH will create a JSON file of events with the same name.

Production

  • Copy the .env.example file to .env and edit the values to suit.
  • To make a production build, within the repo directory run cargo b --release.
  • To run the release build, within the project directory run target/release/wembley-events just as in development.

Testing

  • To run all your tests, within the repo directory run cargo t. This will run all tests in the /tests directory.
  • To run ignored tests, within the repo directory run cargo t -- --ignored.

Resources & Thanks

wembley-events's People

Contributors

dependabot[bot] avatar mukundbhudia avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wembley-events's Issues

History of the Events Disappears

Hey Mukund,

I love this Calendar addon; it is so good and helpful for me, who lives in Wembley.

I appreciate the work you put into this.

Feature I think would be good

This is nice to have, but the history of the events disappears after they occur. Like, If I view last week or the weeks previous, I can no longer see what events happened on those days.

Could we have the ability to see past event, please?

Kind regards,
Kabilan T

Generate JSON file of events

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."
    }
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.