Add your Hills Hornets basketball draw to you calendar.
The way the Hills Hornets website organises the draw information makes it a hasstle to lookup your games every week. Especially if you have a number of famility member who play in different teams. This project creates a lambda function that runns each day that reads the draw for every team in the compition and creates a calendar that can be subscribed to via a URL.
The Hills website populates the draw page by calling the following API endpoints.
https://hillshornets.com.au/members/api/draw/seasons
https://hillshornets.com.au/members/api/draw/seasons/<seasonId>/divisions
https://hillshornets.com.au/members/api/draw/seasons/divisions/<divisionId>/draw
https://hillshornets.com.au/members/api/draw/seasons/divisions/<divisionId>/teams
- There is no unique Team ID exposed by the API. Teams are identified by the combination of the SeasonID, DivisionID, and Team Name. This means that of there is a redraw that moves your team to another division or a new season starts, it will ceate a new calendar with a new filename. You will need to get the new URL and re-subscribe to your calendar.