Read Xiaomi Mi Scale (MIBFS) with the Web Bluetooth Scanning API and store results in Supabase, secured by Supabase Auth and RLS.
- Install Docker
- Install the Supabase CLI
# start supabase locally and apply the setup migrations
supabase start
# install dependencies
npm install
# serve with hot reload at localhost:1234
npm run dev
# build for production
npm run build
All the hard work around reading the Bluetooth data has been done by Henry Lim in https://github.com/limhenry/web-bluetooth-mi-scale. Also read this article for detailed explanation on how things work.
@wiecosystem: https://github.com/wiecosystem/Bluetooth