/unizar-calendar

Schedule generator for Unizar classes

Primary LanguageGoMIT LicenseMIT

unizar-calendar

Tests GoReportCard Docs

Usage

You can interact with the CLI by running the executable from a terminal. If you want to check the available options, you can use the flag -h.

$ ./unizar-calendar -h

In case you generate for Google Calendar, make sure to create a new calendar with the correct timezone before importing. To import a csv file as a calendar, check this guide.

Compile

Compilation is automatic thanks to Go modules. That means you have to enable modules support by setting the environment variable GO111MODULE=on.

go build

Requirements

  • Go 1.14 (or higher).
  • Go modules enabled.

If you are going to use the webdata module or pkg/gcal, you need the following:

  • Project with Google Calendar API site enabled.
  • Create a Service Account.
  • Download JSON credentials of Service Account.
  • Set the path to the JSON file in the GOOGLE_APPLICATION_CREDENTIALS environment variable.