Hacker News new | ask | show | jobs
by alistairjcbrown 3937 days ago
Right - but if you're bolting on a Raspberry Pi, there's no way for it to know "live usage of WiFi" - only the router knows that
2 comments

I think the point being, why even use the Raspberry Pi in the first place given that most routers (even a lot of consumer ones) maintain a list of currently connected users.
Do many routers make that data easily accessible for automated use? From my experience, it requires work to get at that data.
It depends on your definition of easily accessible. For example, on my TP-Link W8961N you can use Python's Requests library, Beautiful Soup and HTTP Basic Auth to retrieve and parse the client list.
Seeing as how rarely router firmware is upgraded (and even then, surely less likely the UI!) - I think you're pretty safe automating a scrape of the HTML table.
Don't most routers support SNMP? Seems like another good vector for data.