Skip to content

v0.2.0

Choose a tag to compare

@DTTerastar DTTerastar released this 21 Apr 02:09
4e87534

New

  • intraday subcommand — exports minute-level samples (heart rate, HRV rmssd/sdnn1, SpO2, steps, distance) from /v2/measure?action=getintradayactivity, auto-chunking into Withings' 24h window cap. See #4.
  • sleep --derive flag — for nights with no Withings sleep summary, polyfills start/end from intraday heart-rate samples using a quiet-window heuristic (HR ≤ 80 mean, tolerates bathroom-visit step samples and watch-off-for-charging gaps up to 90 min). Adds a source column to CSV/JSON distinguishing summary vs derived rows. See #5.

Changed

  • OAuth scope simplified to user.info,user.metrics,user.activity. user.sleepevents was webhook-only (not needed for data retrieval) and has been dropped; user.info is now requested so device listing is available.

Breaking

  • Users must re-run auth login after upgrading to consent to the new scope set. Existing ~/.config/withings-export/auth.json will keep working for token refresh but won't have user.info coverage until re-auth.

Upgrade:

brew upgrade withings-export
withings-export auth login