Glucose Data Extractor is a Rust-based tool designed to extract glucose data from Apple Health app exports. This tool allows users to easily isolate and analyze their glucose data using their preferred analysis tools.
- Extracts glucose data from Apple Health app exports
- Outputs data in JSON format for easy analysis
- Fast and efficient processing, even for large datasets
- Flexible command-line interface with options for input and output files
-
Ensure you have Rust installed on your system. If not, you can install it from https://www.rust-lang.org/.
-
Clone this repository:
git clone https://github.com/plgonzalezrx8/stelo_extractor.git
-
Navigate to the project directory:
cd stelo_extractor
-
Build the project:
cargo build --release
-
Export your Apple Health data from your iPhone:
- Open the Health app
- Tap your profile picture
- Tap "Export All Health Data"
- Choose a location to save the export
-
Extract the exported zip file and locate the
export.xml
file. -
Run the Apple Health Glucose Data Extractor using one of the following methods:
a. Specify input and output files:
./target/release/stelo_extractor --input /path/to/export.xml --output /path/to/output.json
b. Use the current directory (assumes
export.xml
is in the current directory):./target/release/stelo_extractor --current-directory
This will look for
export.xml
in the current directory and save the output asoutput.json
in the same directory. -
Additional options:
-
Use
--help
to display the help menu with all available options:./target/release/stelo_extractor --help
-
-i, --input <FILE>
: Specify the input XML file (required if not using --current-directory)-o, --output <FILE>
: Specify the output JSON file (required if not using --current-directory)--current-directory
: Use the current directory for input (export.xml
) and output (output.json
)-h, --help
: Display help information-V, --version
: Display version information
We have several exciting features planned for future releases:
- Support for additional output formats (CSV, XLS, simplified XML)
- Graphical user interface (GUI) for easier interaction
- Cross-platform support (Windows, Linux, and macOS)
- Data visualization capabilities
- Integration with popular health and fitness apps
We welcome contributions to the Glucose Data Extractor project! If you're interested in contributing, please follow these steps:
- Fork the repository
- Create a new branch for your feature (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or suggestions, please open an issue on this repository.
Thank you for using or contributing to Glucose Data Extractor!