Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
And with more of these, you could track where everyone is all the time!
Here's a camera based video people counter.[1] This is a bit less intrusive.
[1] https://github.com/saimj7/People-Counting-in-Real-Time
Theres this using ESP32 and LoRa, where you can order readymade hardware: https://cyberman54.github.io/ESP32-Paxcounter/
Bluetooth is fun.
A while ago I was playing around with libble++[0] to read the data from some cheap temp/humidity sensors which broadcast their data as an advertising packet. Pretty simple, considering.
Did some other playing to turn my laptop into a BLE beacon (which worked pretty well with some random app on my phone) and also tried (IIRC successfully) to emulate one of those apple airtags though that code is lost somewhere on said laptop.
A quick glance at my temperature reading code and I'd say that counting the number of seen advertisements would be trivial using that library, I'm currently letting it do all the real work and just filtering the results to the devices I'm interested in.
[0] https://github.com/edrosten/libblepp
I don't know the author's code but mine was at the same level as home assistant's. I believe I was using Bluer (BlueZ) [1] and afaik the problem is that the dependency needs an armv7 version of DBUS when it compiles which my non-armv7 laptop did not provide.
If I do the home assistant route and just copy my source code over to the raspi and build the binary there it all compiles+runs fine. Except for the part where I can't compile it locally and so I don't know of a build issue until its been transferred + built.
[1]: https://github.com/bluez/bluer