This is a simple python 2.7 script for pulling data from an Android phone running LibreLink (US version) for Freestyle Libre sensor to CSV files on your PC/Mac (only tested on Mac). It does not require a rooted Android phone. LibraLink stores data in SQL database files. The script downloads the data from the phone, extracts the data, reads the SQL database for historicReadings
, notes
, and then merges them into a single CSV sorted by timestampUTC.
- Install Android Debugger (ADB) by Installing Android Studio
- Put your Android phone into developer mode, and connect to your PC/Mac via USB cable.
- Open a terminal, and run
adb devices
to verify your computer can access the phone. You may need to confirm permission on your phone. - Run
python extract.py
. You will have to approve the backup operation to allow the script to copy the database files from your phone. - You can now load the created
.csv
files in your favorite data analysis/visualization tool.merged.csv
is just the combined data.