Auto sync to Fitbit?

Posted on
  • tl;dr: Don't have a Bangle.js (yet) and want to know if it'll be possible to auto add step activity to Fitbit account via Fitbit API

    I'm interested in Bangle.js cuz I'm a web dev and a super customizable wearable sounds like fun. I am privacy conscious which also makes Bangle.js and Gadgetbridge appealing, but unfortunately my job uses Virgin Pulse to let employees earn money for health expenses, and it has several integration options for automatically getting your steps and whatnot. I am not going to manually add steps to Virgin Pulse, so I'm using the Fitbit integration.

    I'd like to make sure it's possible to automatically add steps to Fitbit before I buy a bangle.js. So far I was thinking I'd make a bangle.js app and basically use Bangle.on('health', function(info) { ... }); so whenever that event happens, I'd do Fitbit's Create Activity Log and pass in info.steps. I might also try to do something with info.bpm to determine whether the activity is closer to walking or running but we'll see. I've played around with the Espruino IDE but haven't seen a way to simulate having Bangle.js Gadgetbridge to use its internet capabilities in order to test this. Maybe it's there and I just missed it, I don't know. Any help is appreciated.

  • From fitbit docs:

    Using HTTPS

    Fitbit requires Transport Layer Security protocol - TLSv1.2 for the subscriber endpoints. TLS+SNI is not supported. Self-signed certificates and all versions of SSL are also not supported.

    From Espruino docs:

    Right now you must use HTTPS (HTTP is not supported).

    Which makes it seem to me like it could very well work. Don't know if the requirements listed on fitbit are too narrow or not.

    I suspect you will have a better answer from someone else soon.

  • Yes, it should be possible to do with the HTTPS requests from the watch as @Ganblejs says, although it might be a bit of a faff to get it authenticated (entering verification codes/etc).

    Or if you could build it into the Gadgetbridge Android app itself, that might be something that would then be useful to anyone with one of the hundreds of supported watches that are out there... And I don't see any reason why that couldn't be done pretty easily.

  • @Gordon hmm well you might be right about adding this kinda thing to Gadgetbridge, but I have years of experience with js and no experience with Android app dev, so... 🫤

    Anyway thanks all, I'll be ordering a bangle.js today 😊

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Auto sync to Fitbit?

Posted by Avatar for ballyhoo @ballyhoo

Actions