module
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jan 15, 2023
License: GPL-3.0
Opens a new window with license information.
README
¶
Crossfit Agenda
Connect crossfit using a picture of their schedule and set it in your Google Calendar
DONE
- Download the picture from a URL resource
- Use an OCR library to get the texts
- Create a CLI to set up the days to book the days
- Register the days with the time and the exercise in your Google Calendar (or any Calendar service)
- Retry retrieve credentials if token has expired
- Handle the authorize error in Calendar and retry credentials
TODO
[Optional] try to book the dates in the app
- Cache the image and use it
- Cache the ocr result
- If an event is unbooked, delete it from the calendar
Use events
- Create external API HTTP or GRPC
Run it
Create a folder called env
and put the credentials file named crossfitagenda.json
go build -o crossfit cmd/main.go
GOOGLE_APPLICATION_CREDENTIALS=env/crossfitagenda.json ./crossfit
Click to show internal directories.
Click to hide internal directories.