https://github.com/tidepool-org/diadata
Diabetes data generator for testing
https://github.com/tidepool-org/diadata
Last synced: 4 months ago
JSON representation
Diabetes data generator for testing
- Host: GitHub
- URL: https://github.com/tidepool-org/diadata
- Owner: tidepool-org
- Created: 2023-04-06T14:03:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-28T21:12:32.000Z (over 1 year ago)
- Last Synced: 2024-05-01T11:40:31.781Z (12 months ago)
- Language: JavaScript
- Size: 2.98 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Diabetes Data Generator CLI
The Diabetes Data Generator CLI is a command line application that generates synthetic diabetes data, with customizable parameters. The output data is generated in JSON format that conforms to the Tidepool data model and can be readily uploaded via the Tidepool API (https://tidepool.stoplight.io/.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Options](#options)
- [Example](#example)
- [Contributing](#contributing)
- [License](#license)## Installation
First, you need to clone the repository:
Have you tried github desktop? https://desktop.github.com/
Next, install the dependencies:
```nodejs
npm install
```## Usage
To use the CLI, use the following command syntax:
```node.js
node generateCGM.js --cgmUse --days --fingersticks --bgRange --service
```## Options
Here's a list of available options you can use with the command:
- `--cgmUse, -use` : Percentage of CGM usage (0-100)
- `--days, -d` : Number of days to generate data for
- `--fingersticks, -f` : Whether the user also uses a bg meter (true/false)
- `--bgRange, -range` : CGM and/or BGM range skew (high/mid/low)
- `--service, -s` : Service used to upload data (Jellyfish or Platform)All options are required.
## Example
Here's an example of how you can use the command:
```bash
node index.js --cgmUse 70 --days 30 --fingersticks true --bgRange mid --service exampleService
```## Contributing
Contributions are always welcome! Feel free to open a pull request.