A tool to import home data into InfluxDB from CSV files and health data from Health Connect SQLite exports.
- Parse CSV files with single or multi-row headers
- Import health data from Health Connect SQLite exports (heart rate, steps, sleep, weight)
- Validate CSV files before importing
- Import data into InfluxDB with efficient batch processing
- Configure via command line or configuration file
- Track import state to avoid reimporting the same data
- Dry-run mode for testing without writing to InfluxDB
cargo install --git https://github.com/valerioformato/home-db-importer
# Import financial data from CSV
home-db-importer import-funds --source data.csv --url http://localhost:8086 --org myorg --bucket mybucket --token mytoken --measurement home_data
# Import health data from Health Connect SQLite export
home-db-importer import-health-data --source health_connect_export.db --url http://localhost:8086 --bucket health_data --token your_token --state-file health_import_state.json
# Test import in dry-run mode without writing to InfluxDB
home-db-importer import-health-data --source health_connect_export.db --url http://localhost:8086 --bucket health_data --token your_token --dry-run
# Validate a CSV file
home-db-importer validate-csv --source data.csv --details
The following Health Connect data types are supported:
- Heart Rate
- Steps
- Sleep (with stage detection: AWAKE, LIGHT, DEEP, REM)
- Weight
- Total Calories Burned
- Basal Metabolic Rate
- Body Fat Percentage
- Exercise Sessions
MIT