Skip to content

Geek-a-Byte/clock-face-for-fitbit-versa-2

Repository files navigation

clock-face-for-fitbit-versa-2

Step 1 : Connect your smartwatch and mobile with fitbit studio

  • go to account from android app, click on versa 2 from synced devices make sure you have set up your wifi on your versa beforehand
  • go to developer menu and push the connect button
  • go to the fitbit simulator and select your phone from 'select your simulator section'
  • don't forget to turn on developer bridge from your versa 2 settings, you need to wait for a while to pair up your phone app with your versa 2

at last you may see the following results in your simulator console

image

step 2

npx create-fitbit-app <project-name>
cd <project-name>

step 3: change in package.json file

  • sdk version to 4.1.0
  • build targets to "mira" only

step 4: change the index.view to index.gui and widgest.defs to widgets.gui

step 5

npm install
npx fitbit-build
npx fitbit
fitbit$ install
fitbit$ bi
  • now login with your creds
  • follow this now

Issues

problem 1 : if you had continued with fitbit studio instead of cli

image

image

problem 2 : if you had continued with fitbit studio instead of cli

image

  • solution - this is where the main problem started.. 🤦 I need to shift to CLI mode for development
  • explanation : my fitbit versa 2 has an in built sdk version of 4.1 which is not compatible with 4.3 which I started the project with in fitbit studio. and sigh there is no option for degrading the sdk version in fitbit studio so I have to go for cli mode to build the clock face.

problem 3 : you need nodejs version 14.19.0 to work with the commands of fitbit cli guide

  • started following the cli guide, where they forgot to mention that you need node js version 14.19.0 to be installed as prerequisite which costed me at least 10 hours of test and trials of web solutions, thanks to a complete stranger at discord group discussion you'll need chocolatey to download nodejs specific version for windows
  • chocolatey nodejs
  • I'll remember this - image

About

playing with my smartwatch - phase 1, still working on it

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published