Get sleep scores by date from the Oura API.
% oura-cli --help
Usage: oura-cli [COMMAND]
Commands:
configure
show
score
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
% oura-cli configure --help
Usage: oura-cli configure --oura-token <OURA_TOKEN>
Options:
-o, --oura-token <OURA_TOKEN>
-h, --help Print help
% oura-cli show --help
Usage: oura-cli show
Options:
-h, --help Print help
% oura-cli score --help
Usage: oura-cli score [OPTIONS] --start-date <START_DATE> --end-date <END_DATE>
Options:
-s, --start-date <START_DATE>
-e, --end-date <END_DATE>
-o, --output-format <OUTPUT_FORMAT> [default: text]
-h, --help Print help
% oura-cli configure --oura-token EXAMPLETOKEN
Oura token has been configured.
% oura-cli show
Oura token: EXAMPLETOKEN
% oura-cli score -s "2024-06-01" -e "2024-06-02"
Date: "2024-06-01", Sleep score: 67
Date: "2024-06-02", Sleep score: 59
% oura-cli score -s "2024-06-01" -e "2024-06-02" -o json
[{"date":"2024-06-01","score":67},{"date":"2024-06-02","score":59}]