Skip to content

Node library for finding available rooms at ICICS UBC

Notifications You must be signed in to change notification settings

falkirks/icics-rooms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icics-rooms

Node library for finding available rooms at ICICS UBC. It can only list the bookings for today, because accessing the full calender requires authentication and that is a mess to deal with.

Installation

$ npm i icics-rooms

Usage

const rooms = require('icics-rooms');

let today = rooms.getAllRooms();
for(var room = 0; room < today.length; room++){
	console.log("This room has the name " + today[room].room);
	for(var booking = 0; booking < today[room].bookings.length; booking++){
		const bookingData = today[room].bookings[booking];
		console.log("It has a booking " 
						+ "called " + bookingData.name 
						+ " from  " + bookingData.startTime 
						+ " until " + bookingData.endTime);
	}
}

About

Node library for finding available rooms at ICICS UBC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published