This is a webapp to serve the upcoming soccer schedule for your favorite team or competition as an ics calendar.
Live at footcal.cbdm.app and you can check the service status at status.cbdm.app
If you need help using it, check the help page in footcal.cbdm.app/help
- Select a team that you want a calendar
- Get your calendar in iCalendar format
- Input calendar URL into preferred app (e.g., Google Calendar)
Take a look at the issues page for contribution ideas. But please feel free to contribute new ideas too!
How to contribute:
- Fork this repository
- Clone the fork
- Make changes and commit them
- Push your changes
- Create a pull request
Please reach out if you need help or have questions.
- Clone this repo
- Install docker
- Navigate into the
testdb
folder and rundocker-compose up
-- this will setup a simple database with some data for you to use - Install the requirements with
pip3 -r requirements.txt
- Get a key for the api-sports service and update it in the
auth.py
script by either (i) creating the appropriate env variable (preferred!) or (ii) replacing theXxXx...
with your own key. If you go with (ii), please do NOT commit/push your key! - Run the
app.py
script withpython3 footcal/app.py
- You should be able to access the app in
localhost:5000
, and the database inlocalhost:40001
Note that step 5 might not be needed if you're not trying to do something with fetching/updating data, as we only talk to api-sports to update local information. If you don't need that, you can use the sample data (step 3) and either live with the errors or change the cache.py:query
method to never return None.