cmengler / fitbit-app-versa4

Unofficial approach for sideloading an app onto Fitbit Versa 4 (and possibly Sense 2) devices
MIT License
36 stars 5 forks source link

Cannot see the device as a host! #4

Closed wiledal closed 1 year ago

wiledal commented 1 year ago

I just got my Versa 4 and was super stoked to use the SDK to built my own watch faces. Was crushed when I found out they don't support Versa 4 - what a weird move from Fitbit (I guess Google?).

I'm trying the guidelines laid out in this article but I cannot see my Versa 4 as a host, though I see it in my list of connected USB devices.

Screenshot 2023-08-25 at 16 56 10

Any ideas? Thanks for doing this btw. I hope I get it working.

wiledal commented 1 year ago

Okay, so I dug into the https://github.com/Fitbit/developer-bridge repo and it all looks like it should be working. Instead of pulling from npm, I tried installing from source, and voila - I see my device! Unclear why it doesn't work from npm, but this workaround is fine.

wiledal commented 1 year ago

Ah I'm stupid, I just noticed this repo uses pre-releases of the fitbit sdk. Makes me even more sad that they discontinued this. Thanks so much for this!

I put this quick watchface together to test it out!

PXL_20230825_170448636

jkmartindale commented 1 year ago

How do you install from source?

wiledal commented 1 year ago

@jkmartindale If you pull this repo and use it as a starting point, follow all the instructions, everything should work as expected.

Custom watch faces are technically not supported tho, so the watch gets into a weird state when you do it.

I ended up using FitFace instead: https://fitface.xyz/. Install once, design in a simple web interface.

jkmartindale commented 1 year ago

Ah yeah I figured it out. I got a bit confused and thought this was related to a libusb error I was getting on Windows but that ended up being something separate. If anyone else comes across this, I used https://visualgdb.com/UsbDriverTool/

Thanks for the heads up about the weird state from custom watch faces. I wasn't able to swap to a first-party watch face from my dev watch face without a factory reset, so I guess that's "normal" and not just a one-off thing.

lardahle commented 1 day ago

@jkmartindale howdy! Was curious what driver type you ended up getting to work? Im trying to sideload on my Sense 2 and can't get it to show up in the hosts for the life of me; I've tried the USBDriverTool mentioned with all available driver types to no avail but am unaware if any additional steps were required.

jkmartindale commented 1 day ago

@jkmartindale howdy! Was curious what driver type you ended up getting to work? Im trying to sideload on my Sense 2 and can't get it to show up in the hosts for the life of me; I've tried the USBDriverTool mentioned with all available driver types to no avail but am unaware if any additional steps were required.

I used a LibUSB driver I'm pretty sure. Can't remember what additional steps there were (if any) because I haven't touched Fitbit dev for over a year.

lardahle commented 13 hours ago

@jkmartindale howdy! Was curious what driver type you ended up getting to work? Im trying to sideload on my Sense 2 and can't get it to show up in the hosts for the life of me; I've tried the USBDriverTool mentioned with all available driver types to no avail but am unaware if any additional steps were required.

I used a LibUSB driver I'm pretty sure. Can't remember what additional steps there were (if any) because I haven't touched Fitbit dev for over a year.

Thank you for the quick response regardless! I will keep at it with that in mind.