Skip to content
This repository has been archived by the owner on Apr 14, 2018. It is now read-only.

Syncing multiple fitbits with 1 station #41

Open
RuudBurger opened this issue Aug 14, 2012 · 5 comments
Open

Syncing multiple fitbits with 1 station #41

RuudBurger opened this issue Aug 14, 2012 · 5 comments

Comments

@RuudBurger
Copy link

I'm wondering if this is possible. The sync is working for me, but it randomly picks 1 of the 2 fitbits (one for me, one for my girlfriend).
I have 2 'docks' so starting the client with some parameter is fine for me too, just need it to work with 2 fitbits.

Thanks, for the help!

@qdot
Copy link
Member

qdot commented Aug 14, 2012

This shouldn't actually be a problem, assuming we slept the fitbits after syncing which I still need to merge the pull request on. Basically, the issue is that the trackers never sleep, so any time libfitbit polls, it'll talk to whichever tracker replies first, meaning it's a race between your two trackers. I'll try to merge the sleep stuff ASAP, which means that once one tracker talks to libfitbit, it'll sleep for 15 minutes and give the other tracker a chance to sync. will leave this open until that's done.

@RuudBurger
Copy link
Author

Cool, thanks for the quick reply.
I had it running for a few hours now, and indeed it does sync them both. But not like expected and kinda random ;)

Is it ok to use 2 docks btw? Or is it possible that both are used and the data is synced twice to the server or something.

@qdot
Copy link
Member

qdot commented Aug 14, 2012

2 docks won't actually help the problem. Like I said, libfitbit just communicates with whoever it can talk to first. So it's a race to whichever beacon talks back, hence the randomness. The sleep solution I mentioned should help.

@RuudBurger
Copy link
Author

Yeah I understand, but they are both connected to the server (so both fitbits can charge at the same time).
Just wondering that it wouldn't hurt. libfitbit only uses 1 of the dock, not both, to synch 2 fitbits (randomly).

@qdot
Copy link
Member

qdot commented Aug 14, 2012

Oh, yeah, we just connect to the first base we find. Shouldn't hurt anything to have multiples connected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants