• v0.2.1 a3b2bbb34e

    Sitbit v0.2.1 Pre-release

    stefan released this 2026-11-01 09:12:01 +01:00 | 27 commits to main since this release

    First public build: the phone app arrives. Your data finally has a second place to be ignored in.

    Not tested on real hardware together yet: firmware and app are built and unit-tested, the Bluetooth link between them has only met in theory. Expect a hotfix.

    Firmware 0.2.1-couch (M5StickC Plus / Plus2)

    • New in 0.2.1: Salad is on the menu. Senpai takes it personally (8 s of rage, also for app-logged meals named salad/Salat)

    • Bluetooth sync with the app (NimBLE, JSON-lines protocol, see docs/ble-protocol.md)

    • Pairing via QR code: Settings → Phone app (hold A); hold A there again = new key, all phones forgotten

    • The radio is only on in sync windows: QR screen open, 60 s after boot, 20 s at :00 and :30

    • 60 days of history and the last 100 meals are kept for the app

    • Clock and time zone (incl. daylight saving) set from the phone

    • Lab: BLE scanner moved to NimBLE (flash usage 61 % → 46 %)

    • New achievement: E.T. Phone Home

    Android app 0.2.1 (Android 8+)

    • Pair by scanning the stick's QR code, no Android pairing dialogs
    • Today / History (charts, meal log) / Food / Device (all settings, alarms, WiFi, messages)
    • Background sync: the phone's Bluetooth chip watches for the stick even with the app closed and syncs when it shows up
    • Changes made in the app wait for the next sync window

    Install

    App: download sitbit-0.2.1.apk on the phone, open it, allow "Install unknown apps" once.

    Firmware, either:

    • From the repo: cd firmware && pio run -t upload
    • Or with esptool, without PlatformIO (complete image incl. bootloader):
      pip install esptool
      esptool.py --chip esp32 --baud 1500000 write_flash 0x0 sitbit-firmware-0.2.1-full.bin
      
      sitbit-firmware-0.2.1-app.bin is the bare app (offset 0x10000), for updates over an existing install.

    Check downloads against SHA256SUMS (sha256sum -c SHA256SUMS).

    Downloads