Skip to content

ncsa/vacation_calendar_sync

This branch is 77 commits ahead of PhongT16/outlook_calendar_report_generator:main.

Folders and files

NameName
Last commit message
Last commit date
May 24, 2023
Dec 7, 2022
Aug 4, 2023
Apr 25, 2024
Dec 2, 2024
Dec 2, 2024
Aug 11, 2023
Dec 2, 2024
Jun 20, 2024
Aug 16, 2023
Aug 16, 2023
Jul 27, 2023
Jul 20, 2023
Jun 6, 2023
Jun 20, 2024

Repository files navigation

Vacation Calendar Sync

  • Generate a report of members are are "away" based on their Outlook Calendar within a start-end timeframe.
  • Update shared calendar to synchronize with members' calendars with events that are "away".

Configuration File Setup

Microsoft Azure Project Config (/root/vacation_calendar_sync_config.yaml)

Look at sample_config.yaml

Pull Image

docker pull ghcr.io/ncsa/vacation_calendar_sync:production

Build Container

docker run -it --name ncsa_vacation_calendar_sync --mount type=bind,source=$HOME,dst=/home ghcr.io/ncsa/vacation_calendar_sync:production

Once the container is created, entrypoint will execute the entrypoint.sh file, which effectively runs the program with python3 OutlookCalendar -s mode. To override this default command run:

docker run -it --name ncsa_vacation_calendar_sync --entrypoint /bin/bash --mount type=bind,source=$HOME,dst=/home ghcr.io/ncsa/vacation_calendar_sync:production

This will take you inside the container where you can run the commands listed below

Quick Start

The commnad below will generate a report to console of events that occurs between the start and end date.

python3 OutlookCalendar.py [optional flags] [year]-[month]-[day] [year]-[month]-[day]

Example: python3 OutlookCalendar.py -m 2022-10-26 2022-10-29

Example: python3 OutlookCalendar.py -s

Example: python3 OutlookCalendar.py -g

Optional flags include:

-s : Retrieves members' calendar events and synchronize them to the shared calendar

-g : Generate a report of the shared calendar

-d : Dumps the json data of member's events occuring between the start and end date

-m : Manually update the shared calendar with start and end time with format YYYY-MM-DD

-h : Display the help screen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Languages

  • Python 96.7%
  • Shell 1.9%
  • Dockerfile 1.4%