Sign inSign up

dnorhoj/lectiocal

By dnorhoj

•Updated almost 4 years ago

Python script for synchronizing your lectio schedule with any standard CalDAV server.

Image
0

789

dnorhoj/lectiocal repository overview

⁠LectioCal

License GitHub Pipenv locked Python version Codacy grade

This small script lets you synchronize your lectio.dk schedule with any standard CalDAV server. Check out the source at https://github.com/dnorhoj/lectiocal⁠.

⁠Environment variables

Create a file called .env and fill out these variables:

LECTIO_INST_ID=123
LECTIO_USERNAME=exam123p
LECTIO_PASSWORD=eX4mp13

CALDAV_URL=https://example.com
[email protected]
CALDAV_PASSWORD=example

⁠Team translations

Optionally, you can set up team translations.

To do this, you can create a file or mount it via docker compose (see Docker compose⁠).

Here you can define case insensitive name as key, which will be searched for, the search is case insensitive and does not need a full match, to succeed.

⁠Example configuration
{
  "da": "Dansk",
  "ma": "Math",
  "en": "Engelsk"
}

⁠Running

⁠Docker run

You can use the following command to start the docker image:

docker run -d \
  --name lectiocal \
  --restart always \
  --env-file .env \
  dnorhoj/lectiocal:latest
⁠Docker compose

Alternatively, you can set it up with the following docker compose template:

services:
  lectiocal:
    image: dnorhoj/lectiocal:latest
    restart: always
    env_file:
      - .env
    volumes:
      # Optionally you can include a `team_translations.json` file.
      - "./team_translations.json:/app/team_translations.json"

⁠License

This project uses the GNU Lesser General Public License v3.0 license.

You can read more in LICENSE⁠.

Tag summary

Content type

Image

Digest

sha256:6b2b75fd8…

Size

64.4 MB

Last updated

almost 4 years ago

docker pull dnorhoj/lectiocal