Skip to content

A Python utility that converts Libre Connect CSV files to YAML format for backfilling glucose data into Home Assistant.

License

Notifications You must be signed in to change notification settings

charrus/libre_export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libre-export

A Python utility that converts Libre Connect CSV files to YAML format for backfilling glucose data into Home Assistant.

Overview

This tool reads CSV files exported from Libre Connect glucose monitoring system and converts the readings into a format compatible with Home Assistant's recorder. This allows users to track and visualize their glucose data within their Home Assistant dashboard.

Installation

This project uses Poetry for dependency management:

# Clone the repository
git clone https://github.com/yourusername/libre-export.git
cd libre-export

# Install dependencies using Poetry
poetry install

Usage

  1. Place your Libre Connect CSV export in the project root directory
  2. Run the tool:
poetry run python -m libre_export

The tool will process the CSV file and output formatted data that can be imported into Home Assistant.

File Format

The tool expects a CSV file with the following columns:

  • Device
  • Serial Number
  • Device Timestamp
  • Record Type
  • Historic Glucose mmol/L
  • Scan Glucose mmol/L
  • Various insulin and carbohydrate metrics

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Charlie Rusbridger charlie@rusbridger.com

About

A Python utility that converts Libre Connect CSV files to YAML format for backfilling glucose data into Home Assistant.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages