Moved to https://gitlab.developers.cam.ac.uk/uis/devops/lecture-capture/lecture-capture-csv-scheduler
This repository contains a small utility to schedule Opencast events from an input CSV.
This utility requires at least version 1.1 of the Opencast API. This version was first released in Opencast 6.
$ pip install git+https://github.com/uisautomation/lecture-capture-csv-scheduler
$ opencast_csv_schedule --help # print usage summary
$ echo "super-secret-password" > opencast.password
$ opencast_csv_schedule \
--input=schedule.csv --base-url=https://opencast.invalid/ \
--user=some-opencast-user --password-file=opencast.password
When developing this script, it is useful to combine a virtualenv with pip's concept of an "editable" install which uses symlinks instead of copies when installing:
$ git clone [email protected]:uisautomation/lecture-capture-csv-scheduler.git
$ cd lecture-capture-csv-scheduler
$ python3 -m virtualenv ./venv
$ source ./venv/bin/activate
$ pip install -e .