Description
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/