I recently discovered that Fitbit One syncing is now achievable on Linux, thanks to a wonderful tool called
Galileo. Here's a brief tutorial demonstrating my Raspberry Pi powered nightly syncing setup.
First, install python-usb and python-pip like so:
Code: Select all
sudo apt-get install python-usb python-pip
Then, you need to fetch Galileo, which is the tool that provides syncing functionality. It's as simple as so:
Running galileo requires sudo, but we can get around that limitation by adding a simple udev rule. Create and add the following to /etc/udev/rules.d/99-fitbit.rules
Code: Select all
SUBSYSTEM=="usb", ATTR{idVendor}=="2687", ATTR{idProduct}=="fb01", SYMLINK+="fitbit", MODE="0666"
At this point, you should be in a good position to test Galileo. Plug in the Fitbit's USB bluetooth module and then run "galileo" as a normal user. You should see something like the following:
Code: Select all
1 trackers found, 0 skipped, 1 successfully synchronized
Now this is all great, but what I want is to be able to automate this process using cron. Running "crontab -e" and appending the following line at the bottom of the script will set everything up:
And that's it. The Raspberry Pi file server in my bedroom should now automatically sync my Fitbit too every night at 03:00. Zero effort required
