Skip to content

Commit

Permalink
Add instructions on --interval flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ollej committed Sep 23, 2023
1 parent 76c7f86 commit e2a5c50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,16 @@ cargo run --features build-systemdata --bin systemdata > assets/inputdata.json

The `googlesheetsdata` binary generates an inputdata.json file from a Google
Sheets spreadsheet. A file called `credentials.json` is needed that contains
Google API credientials. Use the flag `--help` for more options.
Google API credientials. Use the flag `--interval N` to keep the program
running and recreate the `inputdata.json` file every N seconds. Use the flag
`--help` for more options.

The sheet needs to have a row for every fish to show. The columns need to be
`fishname`, `size`, `speed`, and `bubbles`. The `fishname` need to match the
name of a configured fish, and the other values need to be a number.

Information on how to create a `credentials.json` file can be found here:
https://developers.google.com/sheets/api/quickstart/go
https://developers.google.com/workspace/guides/configure-oauth-consent

```bash
cargo run --features build-googlesheetsdata --bin googlesheetsdata -- --spreadsheet SPREADSHEET-ID --output assets/inputdata.json
Expand Down Expand Up @@ -146,7 +148,6 @@ Options:
-h, --help Print help
```


Configuration
-------------

Expand Down

0 comments on commit e2a5c50

Please sign in to comment.