Live data from Hacker News

Overengineering a way to know if people are in my university's CS lab

amoses.dev

81–90 of 90 posts

Re: Overengineering a way to know if people are in my university's CS lab

#81

When I was in the CS department at NMSU, the Computer Science building was open to the public 24-hours a day. I suppose that's not commonly the case nowadays.

FWIW the building from the article is open to visitors during extended working hours.

Source: Currently in the building.

Re: Overengineering a way to know if people are in my university's CS lab

#82
post #4

I swear to God that all of these CS labs at different unis look the same. I am getting flashbacks of labs in Toronto that looked exactly like pictures in the post

2nd law at work. Just like all cups filled with ice cubes look different, but all cups half-filled with liquid water look the same. ;-)

Re: Overengineering a way to know if people are in my university's CS lab

#83
post #75

Another solution in the age of portable electronic devices: detect presence based on active DHCP leases. You can let then people register themselves by MAC on some web portal so they can be visible by name if they're comfortable with that.

Or Bluetooth. There are some problems (like MAC randomization) to get a real tracking with BLE, but to have a rough estimation, it's a good technique. And you can do it with just an ESP32.

Hmmm... interesting. How would that work? Just count the number of BT signals in a room?

How many BT devices is the average student or faculty member toting around with them at a given point?

Could conceivably be 4+ with some combination of: phone, smartwatch, tablet, BT speaker, game device, etc.

Re: Overengineering a way to know if people are in my university's CS lab

#84

Earlier quoted context omitted.

Or Bluetooth. There are some problems (like MAC randomization) to get a real tracking with BLE, but to have a rough estimation, it's a good technique. And you can do it with just an ESP32.

Hmmm... interesting. How would that work? Just count the number of BT signals in a room? How many BT devices is the average student or faculty member toting around with them at a given point? Could conceivably be 4+ with some combination of: phone, smartwatch, tablet, BT speaker, game device, etc.

The idea is to scan every minutes for BLE MAC Addresses and send to a backend. On the backend you can identify what is the manufacturer of every MAC addresses and make some correlation. A very simple idea is to filter only the phone MAC addresses and use as presence counter estimator; it's a bit unlikely that a university student will have more than one phone.

A better method would try to correlate not random MAC addresses (headphones, BLE trackers, wearebles, etc) that are frequently together and mark as a single person.

Re: Overengineering a way to know if people are in my university's CS lab

#86
post #32

Scotch tape. Those poor students couldn't afford duct tape!

These are CS students, not MEs. Which is to say, heathens who have yet to accept our lord and savior Duct into their hearts. (And its latter day saint WD-40)

I thought wd-40 had been cast down in favor of silicon spray?

Re: Overengineering a way to know if people are in my university's CS lab

#88
post #63

Earlier quoted context omitted.

You can read and write HA entities via HTTP API so I think you could have done this with nothing but HA, but either way it's a fun project :) One of my more fun HA project was scraping my snow removal service's tractor tracking API and passing the result for the closest tractor into HA so I can be notified (by voice with Alexa and/or push notification) when there's one nearby in case I need to move the car.

Do you mean outside of the API that I talk about in the article? If I exposed the HA API via the frontend, users would be able to just take the bearer token and do whatever they wanted with it (even deleting the entities used for the doors). That's why the express server is sitting in the middle to only expose the relevant information (proxying w/ the bearer token, which the end users have no access to)

I meant via webhook triggers as those don't require auth:

https://www.home-assistant.io/docs/automation/trigger/#webho...

I guess you'd still want a proxy or firewall so not sure it ends up being much less complex, but it should be doable.

Re: Overengineering a way to know if people are in my university's CS lab

#89
post #32

Earlier quoted context omitted.

These are CS students, not MEs. Which is to say, heathens who have yet to accept our lord and savior Duct into their hearts. (And its latter day saint WD-40)

I thought wd-40 had been cast down in favor of silicon spray?

Blasphemy. Next you'll be preaching about graphite powder instead of diesel in hinges!
Post reply on HN