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.

3 jaren geleden
3 jaren geleden
2 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # dcurooms
  2. <p align="center">
  3. <img width="460" height="300" src="https://github.com/theycallmemac/dcurooms/blob/master/dcurooms-logo.png?raw=true"/>
  4. </p>
  5. ![TravisCI Status](https://travis-ci.org/theycallmemac/dcurooms.svg?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/d41179565d12397e7438/maintainability)](https://codeclimate.com/github/theycallmemac/dcurooms/maintainability) [![GitHub license](https://img.shields.io/github/license/theycallmemac/dcurooms.svg)](https://github.com/theycallmemac/dcurooms/blob/master/LICENSE)
  6. ### Description
  7. 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.
  8. Currently the dcurooms script can show you which rooms in the Henry Grattan building and the School of Computing are free and booked currently.
  9. ---
  10. ### Installation
  11. - #### On your own machine:
  12. - Clone this repo by running:
  13. ```git clone https://github.com/theycallmemac/dcurooms.git```
  14. - cd into the clone and run ```python setup.py install``` as root to install.
  15. - #### On Redbrick:
  16. - You'll want to log in to:
  17. ```your-username@pygmalion.redbrick.dcu.ie```
  18. - Clone this repo into your home directory by running:
  19. ```git clone https://github.com/theycallmemac/dcurooms.git ~/```
  20. - cd in the clone and run:
  21. ```pip3 install -r requirements.txt```
  22. - After this you can run:
  23. ```alias dcurooms="python3 ~/dcurooms/scripts/dcurooms"```
  24. You can run this on your command line, or alternatively add it to ~/.zshrc
  25. ---
  26. ### Usage
  27. Buildings are referenced using their assigned building letters. The School of Computing is given the letter "L" and the Henry Grattan is given the letter "C". Don't ask me why it's like that, it's a very odd naming convention.
  28. - #### Booking
  29. - To book L125 in the School of Computing on the 7/2/2018 from 16:00 to 17:00, run:
  30. ```dcurooms -b L125 7/2/2018 1600 1700```.
  31. - To book CG04 in the Henry Grattan on the 5/2/2018 from 18:00 to 20:00, run ```dcurooms -b CG04 5/2/2018 1800 2000```.
  32. - #### Now
  33. - To check the current availabilty of labs in the DCU School of Computing run ```dcurooms -nL``` or ```dcurooms --now --computing```.
  34. - To show the rooms which are currently available in the Henry Grattan building run ```dcurooms -anC``` or ```dcurooms --available --now --grattan```.
  35. - #### Lookup
  36. - 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```.
  37. - 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 -lL 10 4 1300``` or ```dcurooms --lookup --computing 10 4 1300```
  38. - 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 --grattan 21 4 1600```.
  39. - #### Help and Version
  40. - For help run ```dcurooms -h``` and for the current version run ```dcurooms --version```.
  41. ---
  42. ### Dependencies
  43. - bs4
  44. - MechanicalSoup
  45. - requests