/auto-dibs

Automated script to make study room reservations at UCSD. Built w/ CasperJS

Primary LanguageJavaScript

Auto DiBS

A script for automatically making study room reservations at Geisel or Biomedical Library. Built using CasperJS / PhantomJS.

Caveats: must know the room # you want to reserve in advance

Usage:

The script takes 5 arguments:

  • Library card number
  • Room number
  • Date (Currently only supports the values: 'tomorrow', 'tmr', 'today')
  • Time (ex. 10pm, 10:30pm, 10am)
  • UCSD email
$ casperjs reservoir.js [lib card number] [room_number] [date] [time] [ucsd.edu email]

Further Explorations:

  • Wrap the script around a Messenger / [other chat] Bot to chatify room reservations
  • Book any room available at the specified time

TODO

  • Dealing with invalid arguments
  • Add more date support
  • Batch booking
    • Monopolizing rooms not allowed on DIBS system unless using different lib-cards
  • Book rooms in between class gaps
  • Room booking length change to 3 hours
  • CRON job