Sync your fitbit one/force/flex/zip from Ubuntu with galileo

Thanks to Benoit Allard, there is now a way to sync the newer fitbit devices from within Ubuntu!  I’ve packaged it up and put it in my PPA, so now it’s easier than ever to sync your Fitbit.  To install (make sure the USB dongle is plugged in):

 

The sync should now happen in the background, and will sync automatically every 15 minutes.

Posted in Uncategorized Tagged , , .

45 Comments

  1. Garrett Nay April 28, 2014 at 5:21 pm #

    Thank you for this! I had no idea that people were still working on Fitbit sync for Linux.

  2. Adrian May 5, 2014 at 4:04 am #

    Finally I found this solution. I am new in linux and this solution make me can breath now. :)

  3. felipe June 16, 2014 at 6:48 pm #

    Will I be able to make it work with Galileo and only Galileo?
    I don’t have a windows/linux box available or a compatible phone.

    I have Galileo running (thanks), but it reports:
    Skipped because recently synchronised
    Or if I run it with the –force:
    Synchronisation failed: no tracker

  4. felipe June 17, 2014 at 1:39 am #

    Hi again,
    Benoît Allard has confirmed I need to sync first using the win/mac client, or wait for Galileo v0.5 as it should be able to also take care of the pairing.

  5. Alan Jackson June 30, 2014 at 1:16 pm #

    Works beautifully!

    Thanks,
    Alan Jackson

  6. bodo July 13, 2014 at 1:39 am #

    sudo apt-get install galileo
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package galileo

    any idea what the problem is?? Sure would like to get this working.

  7. cwayne July 14, 2014 at 5:46 pm #

    bodo what version of Ubuntu are you running?

  8. chris zombie July 27, 2014 at 8:47 pm #

    Having the same problem as bodo.
    i’m running 12.04 LTS

  9. chris July 28, 2014 at 12:50 am #

    having the same problem as bodo.
    I’m running 12.04 LTS

    HELP PLEASE.

  10. xxx July 29, 2014 at 8:06 am #

    I have the same problem as bodo, running 12.04

  11. thoms July 31, 2014 at 10:32 am #

    Hi cwayne

    Thanks for your solution, but I get the same problem as bodo. Running Ubuntu 12.04 LTS

  12. pete-r August 2, 2014 at 12:16 pm #

    Hi, I see bodo didn’t reply, however I’m getting the same issue… running Ubuntu 12.04 64-bit on a mac book air

  13. Andrea August 5, 2014 at 9:31 am #

    The original website https://bitbucket.org/benallard/galileo doesn’t say anything about how to setup the dongle/device the first time. Does galileo assume that you have already paired the device/dongle using the Mac/Win client? I’m using the 0.5dev version, but still it doesn’t offer first time setup.

  14. Nick August 19, 2014 at 8:56 am #

    I am having the same problem as bodo. I’m running:

    > lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 12.04.5 LTS
    Release: 12.04
    Codename: precise

    Any ideas? galileo doesn’t seem to be listed in the ppa…

  15. Cary August 31, 2014 at 2:54 pm #

    I get the same ‘Unable to locate package galileo’ message. I am running ubuntu 13.10 (Saucy).

  16. aaron September 15, 2014 at 12:01 am #

    Same error as bodo.
    Running ubuntu 11.10 on an ancient HP tc1100 (only used as a music server at this point).
    I am not sure if it will run anything more recent.

  17. Aaron Klenke September 16, 2014 at 5:48 pm #

    I am seeign the same thing as bodo.
    Running Ubuntu 11.10 on an old Compaq tc1100

  18. sublimese September 29, 2014 at 1:05 am #

    I have the same issue.
    E: unable to locate package galileo

    Ubuntu version is 12.04

    Cannot update to newer version of ubuntu (its running xbmc on a appletv1)

  19. amc October 6, 2014 at 9:03 pm #

    So glad to find this option, but I’m having some troubles.

    So, I have an all Windows XP machine that I used to set up my Fitbit Flex. Got that all started, no problem. Then I went to install galileo so I could sync through the laptop I normally use.

    I added the repository, updated, but I got the “Unable to locate package galileo” error. I was able to install the app using pip install, and manually adding some of the dependencies.

    So, got all that sorted out and synced my Flex through galileo. Hurray! Unfortunately, the only way I can sync it is manually. If I’m reading correctly, it should be syncing every 15 minutes automatically (assuming the Fitbit is within range of the dongle).

    Can you help me figure out how to get it running automatically? That would be awesome.

    By the way, I’m running a fairly clean install of Ubuntu 12.04 on a Lenovo laptop. I have galileo 0.4.1 installed.

  20. William Holmes October 9, 2014 at 9:04 pm #

    Same result as bobo:
    sudo apt-get install galileo
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package galileo

    Linux Mint 13 LTS (based on Precise)

    I, too, would like to get this working.

    Thanks,
    Will

  21. Paul October 13, 2014 at 10:26 pm #

    Love this addition to the Ubuntu universe. one more step to a windows free environment. Two quick questions, 1. does it support two fitbit’s? myself and my wife have just gotten one each and I was hoping to have them both sync from the same computer. 2. does it sync automatically for both? right now it is not syncing either automatically, it may have been something I did, I am not sure.

    Thank you for your excellent work on this issue.

  22. dbrackett November 8, 2014 at 8:37 pm #

    I am running ubuntu 10.04 LTS

  23. dbrackett November 8, 2014 at 8:41 pm #

    These are the problems that I ran into while trying to put it on my ubuntu 10.04

    W: Failed to fetch http://ppa.launchpad.net/cwayne18/fitbit/ubuntu/dists/lucid/main/binary-amd64/Packages.gz 404 Not Found

    E: Some index files failed to download, they have been ignored, or old ones used instead.
    daniel@Brackett-Baladou:~$ sudo apt-get install galileo
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Couldn’t find package galileo

  24. cwayne November 24, 2014 at 1:50 am #

    Sorry it’s taken me so long, I hadn’t been keeping up with comments here, but this should now be fixed

  25. Aaron November 24, 2014 at 12:46 pm #

    Thanks!!

  26. Jack Kessler November 28, 2014 at 5:31 pm #

    I tried the steps above and got “enter password for user1″. Neither my user1 password nor my administrator password works. Suggestions?

  27. Jack Kessler November 28, 2014 at 5:32 pm #

    Ubuntu 14.04

  28. Scott Bagetis December 7, 2014 at 1:06 pm #

    I tried installing galileo into ubuntu 12.04 and 14.04 and got the following installation error:

    galileo : Depends: lsb-base (>= 4.1+Debian11ubuntu7) but 4.1+Debian11ubuntu6 is to be installed
    E: Unable to correct problems, you have held broken packages.

    I’ve already tried: “sudo apt-get -f install galileo” as suggested on the Ubuntu forum.

    Any suggestions would be welcomed.

    Thank you in advance.

  29. Jeff Hatfield December 8, 2014 at 9:19 pm #

    Same error as Scott Bagetis got:

    galileo : Depends: lsb-base (>= 4.1+Debian11ubuntu7) but 4.1+Debian11ubuntu6 is to be installed
    E: Unable to correct problems, you have held broken packages.

    Trying to install on Ubuntu 14.04 (64 bit).

    Any help or suggestions would be appreciated.

    • cwayne December 8, 2014 at 9:26 pm #

      @Jeff and Scott,

      I’m looking into this now, sorry for the trouble!

      • Jeff Hatfield December 13, 2014 at 11:18 pm #

        How’s it going? Any progress?

        • cwayne December 30, 2014 at 7:07 pm #

          I believe I’ve got it fixed, any luck?

          • Scott Bagetis January 3, 2015 at 9:08 pm #

            I believe you have got it fixed. I installed in a netboot running ubuntu 14.04LTS. Installation completed succesfully without any errors. I verified that the fitbit is syncing periodically (~20 min ?), and daemon is started on power-up. Thanks for your effort.

    • amarv December 18, 2014 at 11:45 am #

      I also encountered this problem while attempting to install. Will be keeping an eye out for updates.

  30. Torsten December 30, 2014 at 12:14 pm #

    Hi,
    I installed galileo on Mint 17.1 but it’s not synchronizing. In syslog I can find following
    init: galileo main process (32289) terminated with status 1
    init: galileo main process ended, respawning
    init: galileo main process (32298) terminated with status 1
    init: galileo main process ended, respawning

    I do not found any log.
    Do I have to configure something? How to do this?
    Please help.

  31. susja January 10, 2015 at 12:17 am #

    I tried to insall galileo in order to sync my Fitbit with Ubuntu 12.04.
    Installation was errors and I tried to uninsall it. Now I’m stuck and can’t neither uninsall or install. I’ve got this error when try to un-install:
    **
    sudo apt-get remove galileo
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following packages will be REMOVED:
    galileo
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 205 kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database … 321770 files and directories currently installed.)
    Removing galileo …
    invoke-rc.d: unknown initscript, /etc/init.d/galileo not found.
    dpkg: error processing galileo (–remove):
    subprocess installed pre-removal script returned error exit status 100
    No apport report written because MaxReports is reached already
    invoke-rc.d: unknown initscript, /etc/init.d/galileo not found.
    dpkg: error while cleaning up:
    subprocess installed post-installation script returned error exit status 100
    Errors were encountered while processing:
    galileo
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    **
    Could someone please help me uninstall or install properly galileo?
    Thanks in advance

  32. iteachhpe February 20, 2015 at 9:33 pm #

    I’m trying to set up my Fitbit Charge on Ubuntu, running 14.04. I’ve read so much info and instructions, but am not getting anywhere. I’ve loaded galileo successfully, but when I go to the “fitbit” home page to set up, I download the win file but it doesn’t run/set up. Bear with my lack of technology prowess as I’m probably doing something wrong. I’ve used the terminal for the ppa cwayne 18 instructions, read the article Matt Fischer wrote on accomplishments, tried unsuccessfully to load accomplishments on my computer.
    I need some help, please. Any suggestions? I’ve spent easily 20+ hours trying to figure this out. Thank you, in advance, for any help!

  33. Horacio March 21, 2015 at 9:15 pm #

    @ Chris

    The file /etc/init.d/galileo is missing

    When I tried installing under ubuntu 12.04, apt-get install failed with the error message shown below. (This is the message shown the second time I tried installing it, but the first time the message was essentially the same, I just didn’t copy it that time.)

    I considered copying another file from /etc/init.d corresponding to another package and modifying it for galileo, but there are too many differences between the examples correspoindng to different packages to know exactly what to do.

    Could you provide the missing file? I could put it by hand in /etc/init.d and try again.

    Thanks!

    root@marcopolo:~# apt-get install galileo
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    galileo is already the newest version.
    The following packages were automatically installed and are no longer required:
    linux-headers-3.2.0-75 python-gpgme linux-headers-3.2.0-75-generic
    Use ‘apt-get autoremove’ to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Setting up galileo (0.5devubuntu8) …
    invoke-rc.d: unknown initscript, /etc/init.d/galileo not found.
    dpkg: error processing galileo (–configure):
    subprocess installed post-installation script returned error exit status 100
    Errors were encountered while processing:
    galileo
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  34. shuumai March 22, 2015 at 5:49 pm #

    Worked for me! Not at first tho. I used the command “sudo galileo –force” with the dongle plugged in a USB 2 port and it worked. Before that I was getting error messages.

    • shuumai March 23, 2015 at 6:04 pm #

      It’s sync’ing automatically now!

  35. Joe March 29, 2015 at 2:37 pm #

    I tried the galileo package per instructions on Ubuntu 14.04 LTS with a Fitbit ChargeHR and the galileo daemon runs in the process list, but I see no way to make it or any Fitbit device actually/properly connect over bluetooth with no way to query for and supply a proper bluetooth connect code. Defaults of 0000 and 1234 do not work. The Android Fitbit app – when you set up a new device – supplies the code for you (example 0712) but minus this ability, I don’t see how the Ubuntu based app will ever work? Help ? Thanks. PS: I relaize the Charge and ChargeHR are not on the galileo support list, but I think the underlying problem may be app related – just not working right. Example, I tried the following:

    root@ubuntume:~# galileo interactive

    -> Send on the control channel
    <- Receive once on the control channel
    Send on the control channel
    ? Print possible commands
    AL terminate airLink
    D getDump
    L ceaseLink
    R uploadResponse
    al initialise airLink
    c Connect
    d Discovery
    l establishLink
    tx toggle Tx Pipe
    x Quit
    Note:
    – You can enter multiple commands separated by ‘;’
    – To establish a link with the tracker, enter the following command:
    c ; d ; l ; tx 1 ; al

    > d
    No connection, connect (c) first
    > l
    No trackers, run a discovery (d) first
    > d
    No connection, connect (c) first
    > tx 1
    No connection, connect (c) first
    > al
    No tracker, establish a Link (l) first
    > x
    Bye !

    Not much luck here. Seems like much better support of this galileo app is needed, such as missing dependency setup or packages or whatnot, before this is going to work.

  36. Joe March 29, 2015 at 7:39 pm #

    Update to my previous post. I realized my Nexus Android device was bluetooth links to my ChargeHR and shut off the Android completely. I then inserted the dongle (USB device that coems with the Fitbit) and ran the following with some success:

    root@ubuntu14:~# galileo –force
    2015-03-29 15:29:04,840:WARNING: Message ‘TerminateLink’ (received) is not ‘CancelDiscovery’ (expected)
    2015-03-29 15:29:04,840:ERROR: Dirty state, not able to start synchronisation.

    root@ubuntume:~# galileo interactive

    -> Send on the control channel
    <- Receive once on the control channel
    Send on the control channel
    ? Print possible commands
    AL terminate airLink
    D getDump
    L ceaseLink
    R uploadResponse
    al initialise airLink
    c Connect
    d Discovery
    l establishLink
    tx toggle Tx Pipe
    x Quit
    Note:
    – You can enter multiple commands separated by ‘;’
    – To establish a link with the tracker, enter the following command:
    c ; d ; l ; tx 1 ; al

    > c ; d ; l ; tx 1 ; al
    Ok
    Ok
    Ok
    Ok
    >

    When I said partial success, tthe above looked good, but the following errored out:

    root@ubuntume:~# galileo –no-force
    2015-03-29 15:36:47,232:ERROR: Unexpected message: None != 06 ( 06 00 00 00 C8 00 ) – 8
    2015-03-29 15:36:47,233:WARNING: Unable to connect with tracker F5A9C00D38C9. Skipping
    Tracker: F5A9C00D38C9: Unable to establish a connection.

    root@ubuntume:~# galileo –force
    2015-03-29 15:37:04,110:ERROR: Dirty state, not able to start synchronisation.

    • Horacio March 30, 2015 at 2:44 am #

      @shuumai: Thanks! I thought that galileo hadn’t installed, but I tried “sudo galileo” (I did not need to use -force) and I got:
      $ Tracker: F4C…: Synchronisation successful
      I went to the fitbit dashboard and indeed it showed that it had synchronized

      @Joe: my fitbit is a ChargeHR and syncing with galileo is working, so it is supported at least to some degree. (I run ubuntu12.04, though).
      Have you ever sucessfully synced your fitbit using your android device? As far as I understand, galileo cannot yet do the initial “pairing” for the tracker, so you need to do at least one sync using an android/windows/mac device before galileo can work.

      • Joe April 2, 2015 at 10:32 pm #

        Hello Horacio,

        Yes, I am currently syncing my ChargeHR with my Android Nexus on Android v5. Get nice graphs for the Heartbeat and interesting sleep graphics. :)

        Would be nice to get it working on Ubuntu too.

  37. Robin April 7, 2015 at 5:12 am #

    Could someone give me some pointers to instructions for the very first steps: how do I best connect my Fitbit (One) to my laptop (which has Bluetooth 4.0 and Ubuntu 14.04) the first time. I see one post way back in 2014 in this thread which still has no answer to this question… maybe I’ll be luckier? :)

One Trackback

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">