crossfitAgenda

module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2022 License: GPL-3.0

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

Directories

Path Synopsis
handlers
http
Package http provides primitives to interact with the openapi HTTP API.
Package http provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL