Vacansee / app

Predicting campus occupancy and room availability @ RPI
https://vacansee.github.io/app
GNU General Public License v3.0
12 stars 0 forks source link

JSON API to RPI WiFi data! #65

Open olyerickson opened 4 months ago

olyerickson commented 4 months ago

Hi Team!

So, we "sort of" have an API for the campus WiFi-based occupancy predictions, ie what the StudySafe app does. Currently this is "experimental"; we're working on publishing it in a more API-list fashion.

See https://inciteprojects.idea.rpi.edu/studysafe/app/studysafe/ for the three-years-now running app...

The basic URL pattern is: https://lp01.idea.rpi.edu/shiny/erickj4/StudySafeJSON/?building=CII&day=Sunday&hour=12 NOTE: You must be on the RPI VPN for this API access

The day​ and hour​ filters are optional; if you leave either or both off, it will list. building​ must be specified; it will default to EMPAC​ if you leave off.

To get a list of the available buildings just append with list​, ie: https://lp01.idea.rpi.edu/shiny/erickj4/StudySafeJSON/?list=TRUE

The service is providing JSON wrapped in HTML; you will need to do some hacking to get at the embedded JSON. We're working on providing this "for real."

TALK to Maryellen Marino (one of your RCOS mentors) about how to pull this JSON out...

Please let me know if you have questions!

John PS: StudySafe is at: https://inciteprojects.idea.rpi.edu/studysafe/app/studysafe/

maryellenmarino commented 4 months ago

Hi! Feel free to reach out to me here or @maryellenmarino on Discord for help parsing the JSON (or any other questions).

paulbruzzi commented 4 months ago

Thank you guys so much, we are so excited to start using the data.