https://github.com/jrmycanady/cronometer-export
Export data from Cronometer
https://github.com/jrmycanady/cronometer-export
Last synced: 6 months ago
JSON representation
Export data from Cronometer
- Host: GitHub
- URL: https://github.com/jrmycanady/cronometer-export
- Owner: jrmycanady
- License: gpl-2.0
- Created: 2021-07-08T14:53:28.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-11T16:24:05.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T15:56:43.636Z (about 2 years ago)
- Language: Go
- Size: 54.7 KB
- Stars: 19
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cronometer-export
cronometer-export can export user data from [Cronometer.com](https://cronometer.com). This is intended for personal
use only. All other uses should investigate the Cronometer Premium options.
## Installation
Download the appropriate executable for your operating system from the releases section.
## Basic Usage
> cronometer-export -s -3d -e 0d -u username -p password -o output_file_name.csv
## Help
```
Usage:
cronometer-export [flags]
Flags:
-e, --end-at string The end date in either RFC3339 or -d/w/m/y shorthand.
-f, --format string The output format. (raw | json) (Only available on the servings type.) (default "raw")
-h, --help help for cronometer-export
-o, --out-file string The file to output the data to. If not provided stdout will be used.
-p, --password string
-s, --start-at string The start date in either RFC3339 or -d/w/m/y shorthand.
-t, --type string The type of data to export. (servings | daily-nutrition | exercises | notes | biometrics (default "servings")
-u, --username string The username of the user to export data from.
```
## Exportable Data
cronometer-export supports the 5 major export types the web application supports. Each type can be specifed by the -t parameter.
` -t, --type string The type of data to export. (servings | daily-nutrition | exercises | notes | biometrics (default "servings")`
* Servings
* Daily Nutrition
* Exercises
* Notes
* Biometrics
## Start/End Time Frames
The start and end times support two different formats. Provide either fromat to the start-at and end-at flags and
the executable will handle it from there. All times will only utilize up to the day so hour/min/sec can be set to zero.
* [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)
* Relative Time (-#d or -#m or -#y)
## Output Location
Ouput is provided either to a file using the -o flag or to stdout.
## Output Format
By default, all output is the raw CSV format provided by the API. Some types support a json output that can be enabled via the -f flag.
`-f, --format string The output format. (raw | json) (Only available on the servings type.) (default "raw")`