Building an occupancy sensor with a $5 ESP32 and a serverless DB

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • People-Counting-in-Real-Time

    People Counting in Real-Time with an IP camera.

  • 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

  • ESP32-Paxcounter

    Wifi & BLE driven passenger flow metering with cheap ESP32 boards

  • Theres this using ESP32 and LoRa, where you can order readymade hardware: https://cyberman54.github.io/ESP32-Paxcounter/

  • 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.

    InfluxDB logo
  • libblepp

    Modern clean C++ Bluetooth Low Energy on Linux without the Bluez DBUS API

  • 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

  • bluer

    BlueR — Official BlueZ Bindings for Rust

  • 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

  • book

    The Rust on ESP Book (by esp-rs)

  • 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.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts