v0.2.0
New
intradaysubcommand — 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 --deriveflag — 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 asourcecolumn to CSV/JSON distinguishingsummaryvsderivedrows. See #5.
Changed
- OAuth scope simplified to
user.info,user.metrics,user.activity.user.sleepeventswas webhook-only (not needed for data retrieval) and has been dropped;user.infois now requested so device listing is available.
Breaking
- Users must re-run
auth loginafter upgrading to consent to the new scope set. Existing~/.config/withings-export/auth.jsonwill keep working for token refresh but won't haveuser.infocoverage until re-auth.
Upgrade:
brew upgrade withings-export
withings-export auth login