Skip to content

isaksengeir/cliNRIS

Repository files navigation

cliNRIS

Tools for NRIS (RT - soon Service Desk @ gitlab) Support roster and Google calendar management

Run RT_support/install.sh for setting up python3 virtual environment with dependencies given in RT_support/requirements.txt.

RT_support contains a small collection of simple command line interfaces (CLI's):

  • make_roster for automatic generation of a roster from a list of staff (.csv) over a given period of time.
  • rt_stats to print statistics from rt.uninet (.csv).
The following CLIs require Google services:
  • add_shift to add RT support staff to a given week shift, or several from a pre-created roster file.
  • swap_shifts to swap RT support staff between two existing shifts/events.
  • respond_event for responding to an event invitation, or changing the respons status.
  • event_reminder to send email notification to attendee(s) in an event.
  • delete_event to remove/delete an existing event.
  • print_events to print out calendar events for a given week or time ahead.
  • edit_events to edit existing events (attendees/summary).

Using the calendar CLI's

In order to use the calendar CLI's, you need to be added to the existing RT roster UiT API workspace by sending a request to <geir.isaksen(at)nris.no>. Creation of a new Google Cloud Platform (GCP) project and enabling the workspace API is explained in more detail here. Note that the metacenter.no organization only has a limited number of allowed workspaces, so please consult before and if creating a new workspace.

Once you have access to the RT roster management API workspace, you need to download the OAuth client ID credentials called "rt_uit_rost" (under APIs & Services/Credentials) and save this in your local RT_support directory as client_secret.json.

About

RT support roster and Google calendar services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published