Live data from Hacker News

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

amoses.dev

1–10 of 90 posts

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

#3
Love the motivation! Reminds me of the first stuff I built back in my university days.

One thing from and old cranky dev that I notice: it would seem the yml you post has redundancies: either have 4 endpoints, no payload or 4 different payloads, one endpoint (the endpoint itself can tell you what you need to do) However, from the express script it looks like you arrived at this in the final solution anyway. Not sure if I missed something though, is there a reason the API needs such a shape? Cheers!

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

#5
I have a stealth startup that designs privacy first solutions to share coarse data about what is inside of rooms without disclosing secrets. This is useful for many use cases, from detecting the number of people in a room to other motion sensing devices which are critical for health and human safety. Patents are pending.

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

#6

Love the motivation! Reminds me of the first stuff I built back in my university days. One thing from and old cranky dev that I notice: it would seem the yml you post has redundancies: either have 4 endpoints, no payload or 4 different payloads, one endpoint (the endpoint itself can tell you what you need to do) However, from the express script it looks like you arrived at this in the final solution anyway. Not sure…

Hi! Author here. The yml is from a configuration in Home Assistant. Whenever it received an event from the sensors, it would fire the corresponding POST request (which you have to specify ahead of time, hence the configuration being a little redundant). The main reason for switching to the Express setup is that I was having a few random people look at the code & send their own requests to fudge what the status appeared as. I could have added some security/authentication to the endpoints, but I liked the idea of having the frontends simply querying the site (or my proxy) instead of having to cache a POST request.

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

#8

Nice project but it could be illegal. Check your jurisdiction. Source: have done similar hobby projects for fun, which turned out to be illegal.

What part of this would be illegal? It's just a zigbee door sensor. The only issue I could see is the college getting upset but if anything they'd just say 'take it down'
Post reply on HN