Giter Club home page Giter Club logo

campus-cuckoo's Introduction

campus-cuckoo

A client-sided web app for the discovery of vacant classrooms on busy campuses.

Inspiration

There have been many times in the past that, following a class, I have been unable to find an open table or remember which classrooms are empty and for how long. Furthermore, group projects and other small team activities often could benefit from open spaces to work, without the hassle of reserving rooms directly.

What it does

campus-cuckoo is the interface to kilobytes of scraped data regarding which rooms on campus are occupied either by ongoing classes or extracurricular scheduled events.

How I built it

Virginia Tech's Classroom A/V Services offers a wonderful yet lacking front-end for seeing the schedule of practically every public room on campus. While it does offer an in-depth view of activities, it can only do so one classroom at a time. To put it in perspective, there are 140 separate buildings representing a total of 1188 classrooms (this includes "classrooms" such as the infamous "Animal Judging Pavilion" and "Wood Processing Lab", but nevertheless it is a sight to behold).

This data-collection aspect of this hack is powered by a series of Python scripts that utilize requests and BeautifulSoup to probe and scrape the schedules for every single one of these rooms (sorry!). From there, the data is JSON encoded and trivially parsed in the browser.

Challenges I ran into

Before coming upon the A/V services' website, I had originally scraped the course timings from the university timetable. Inevitably, this did not accurately represent the current status of each room by the fact that reservations are much more flexible.

I also had expected to run into issues with the size of the data, and especially the fact that it was going to be thrown at every browser that visits the website. Fortunately though, this was not an issue.

License

campus-cuckoo is released under the MIT license. See LICENSE for more information

campus-cuckoo's People

Contributors

branw avatar

Watchers

James Cloos avatar  avatar

campus-cuckoo's Issues

TODO

  • Display more attributes (desk types, etc.)
  • Sort results
  • Only show most relevant things, hiding rest being a "show more" button
  • Allow attributes to be filtered easily
  • Allow multiple day selection
  • Allow specific date selections (or at least week-by-week movement)
  • Suggest nearby buildings
  • Show "traffic" by identifying hot spots on campus
  • Show congestion on a room-by-room and time basis
  • Show occupancy details for individual rooms and when it will next be used
  • Add ~15 minute buffer around classes and events
  • Include building hours and access
  • Support multiple schools!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.