A mirror of dcurooms found at https://github.com/theycallmemac/dcurooms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
theycallmemac c5b84770bf updated CHANGELOG.md 4 years ago
scripts now compatible with Python3.x closing #6 4 years ago
tests now at v0.4.0, fixed #4 4 years ago
.gitignore fixed list index error, tests added 4 years ago
CHANGELOG.md updated CHANGELOG.md 4 years ago
LICENSE Initial commit 4 years ago
README.md now at v0.4.0, fixed #4 4 years ago
__init__.py fixed list index error, tests added 4 years ago
setup.py now compatible with Python3.x closing #6 4 years ago

README.md

dcurooms

Description

This is a command line tool I hope to develop overtime. In time it will be able to support the booking of rooms on the DCU Glasnevin Campus. Along with this, it will be able to display room timetables information as well as be able to check the availability of a room in a few different ways.

Currently the dcurooms script can show you which rooms in the Henry Grattan building and the School of Computing are free and booked currently.

Installation

Clone this repo by running git clone https://github.com/theycallmemac/dcurooms.git. cd into the clone and run python setup.py install as root to install.

Dependencies

  • bs4
  • mechanize
  • requests

Usage

To check the current availabilty of labs in the DCU School of Computing run dcurooms -nc or dcurooms --now --computing.

To show the rooms which are currently available in the Henry Grattan building run dcurooms -anc or dcurooms --available --now --computing.

To display the information of a specific room in the Henry Grattan building at 16:00 on the Monday of the 4th week of the college year run dcurooms -l CG05 4 1 1600 or dcurooms --lookup CG05 4 1 1600.

To look up the info of all rooms in the School of Computing at 13:00 on the Thursday of the 10th week of the college year run dcurooms -lc 10 4 1300 or dcurooms --lookup --computing 10 4 1300.

To lookup the info of all free rooms in the Henry Grattan building at 16:00 on the Monday of the 21st week of the college year run dcurooms -lac 21 1 1600 or dcurooms --lookup --available --computing 21 4 1600.

For help run dcurooms -h and for the current version run dcurooms --version.