/fitbit-cgm-clockface

clock face that displays blood glucose information from libre2system via librelinkup

Primary LanguageTypeScriptApache License 2.0Apache-2.0

cgm clockface

Display latest glucose reading from Freestyle Libre sensors via LibreLinkUp on a Fitbit OS 4.0 device ( Versa 2) with the correct changes to package.json you may attemptbuild for other devices. only the versa 2 was tested withis code.

Installation

Connect your phone and your watch to the Fitbit developer bridge, then execute the following shell commands to build and side-load the clockface and companion:

npm install

npx fitbit
fitbit$ build
fitbit$ install

For more information on how to use the Fitbit developer bridge, see Fitbit's documentation: https://dev.fitbit.com/getting-started/

Usage

Open the Freestyle Libre app and tap "Connected Apps" from the menu, then send yourself an invitation to view your data via LibreLinkUp. Install the LibreLinkUp app on your phone, login, and accept the invitation.

Launch the Fitbit app on your phone and open the settings page for this app. Enter your Freestyle LibreLinkUp email address and password, then tap the login button.

You may need to modify the LIBRELINKUP_URL variable in companion/index.ts if you're using the servers in a different region. e.g for U.S. const LIBRELINKUP_URL = 'https://api-us.libreview.io' Tthe data is set to be read once per minute but you can use the refresh button to force an update now. ##errors if no new BG data has been recieved for 2 minutes an OLD DATA message will abe visible and the BG value will be grey. this may indicate that the sensor is not sending updated values to Librelink. check the libre phone app.

License

Copyright (C) 2024 BrentLyon. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. blood glucose values displayed on your fitbit device should not be used to make medical decisions.