Skip to content

fantinialex/UniBoExams-to-Google-Calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniBo Exams to Google Calendar

DISCLAIMER: The project is in beta, it has been made public only to facilitate the dissemination of these instructions among betatesters.

What to do

  1. Create a project on Google Scripts
  2. Add the following Script ID as library 1FWgHdsxStnyBOgVnQprysvsfFrBg7GPu8MyNxxyhePZtEkb27ktlCVou
  3. Write your own code, following the examples below
  4. Optionally, set the triggers to run the script automatically

Example code

function checkExams(){
	const calendar = CalendarApp.getCalendarsByName('University Exams')[0];
	const mail = "[email protected]";

	const dp = UniBoExams.getDegreeProgramme("https://corsi.unibo.it/laurea/IngegneriaInformatica/appelli");
  
	const courses = [
		dp.getCourse("Analisi matematica T-1", ["Scritto"], 2.5),
		dp.getCourse("Analisi matematica T-2", ["*"], 2)
	];

	courses.forEach(c => c.createExams(calendar, mail));
}

UniBoExams is the identifier of the library

Main methods available

DegreeProgramme

  • getCourse(name, type, duration)

Course

  • createExams(calendar, mail)
  • addManual(calendar, dates)
  • deleteAllFuture(calendar)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published