Cal-CS-61A-Staff / oh-queue

Web-based queue for office hours
MIT License
19 stars 18 forks source link

Allow OH queue to automatically infer location using GPS #153

Open gmittal opened 5 years ago

gmittal commented 5 years ago

This might be difficult in places like Soda or Cory, but it could definitely be helpful for differentiating between Cory/Soda/Morgan and might be helpful.

cycomachead commented 5 years ago

For any devices on the campus network you can probably use IP blocks. It may depend on the location and how they are assigned though.

chrononyan commented 5 years ago

Since our main deployments are hosted in the cloud, we can only rely on public IP addresses. AirBears2/eduroam clients typically show up somewhere in the 136.152.0.0/16 space after NAT, but there doesn't seem to be a published correlation of IP sub-blocks and locations. The best we can do with IP is distinguish on/off-campus (VPNs aside), which is not granular enough for automatic room detection when signing up, and only of limited use for blocking remote signups.

cycomachead commented 5 years ago

Oh darn, you're right. There used to be a list of IPs by building or region but that might have gone away with Airbears2. :/ (Well the trade-off is worth it!)