Skip to content

valerioformato/home-db-importer

Repository files navigation

Home DB Importer

Rust CI Security Audit

A tool to import home data into InfluxDB from CSV files and health data from Health Connect SQLite exports.

Features

  • 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

Installation

cargo install --git https://github.com/valerioformato/home-db-importer

Usage

Importing Financial Data

# 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

Importing Health 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

Validating CSV Files

# Validate a CSV file
home-db-importer validate-csv --source data.csv --details

Supported Health Data Types

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

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy