Skip to content

Commit

Permalink
feat: enhanced lookup behaviour (#270)
Browse files Browse the repository at this point in the history
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
andrewmackrodt and jef committed Sep 25, 2020
1 parent 7ef9d93 commit b868d1a
Show file tree
Hide file tree
Showing 17 changed files with 788 additions and 70 deletions.
2 changes: 2 additions & 0 deletions .env-example
Expand Up @@ -20,6 +20,8 @@ PUSHBULLET=""
PUSHOVER_TOKEN=""
PUSHOVER_USER=""
PUSHOVER_PRIORITY=""
PAGE_BACKOFF_MIN=""
PAGE_BACKOFF_MAX=""
PAGE_SLEEP_MIN=""
PAGE_SLEEP_MAX=""
SHOW_ONLY_BRANDS=""
Expand Down
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -56,6 +56,10 @@ At any point you want the program to stop, use <kbd>Ctrl</kbd> + <kbd>C</kbd>.

> :point_right: Please visit the [wiki](https://github.com/jef/nvidia-snatcher/wiki) if you need more help with installation.
### Developer notes

The command `npm run dev` can be used instead of `npm run start` to automatically restart the project when filesystem changes are detected in the `src/` folder or `.env` file.

### Customization

To customize `nvidia-snatcher`, make a copy of `.env-example` as `.env` and make any changes to your liking. _All environment variables are **optional**._
Expand Down Expand Up @@ -83,6 +87,8 @@ Here is a list of variables that you can use to customize your newly copied `.en
| `PUSHOVER_TOKEN` | Pushover access token | Generate at https://pushover.net/apps/build | |
| `PUSHOVER_USER` | Pushover username | |
| `PUSHOVER_PRIORITY` | Pushover message priority |
| `PAGE_BACKOFF_MIN` | Minimum backoff time between retrying requests for the same store when a forbidden response is received | Default: `10000` |
| `PAGE_BACKOFF_MAX` | Maximum backoff time between retrying requests for the same store when a forbidden response is received | Default: `3600000` |
| `PAGE_SLEEP_MIN` | Minimum sleep time between queries of the same store | In milliseconds, default: `5000` |
| `PAGE_SLEEP_MAX` | Maximum sleep time between queries of the same store | In milliseconds, default: `10000` |
| `SCREENSHOT` | Capture screenshot of page if a card is found | Default: `true` |
Expand Down
8 changes: 8 additions & 0 deletions nodemon.json
@@ -0,0 +1,8 @@
{
"exec": "ts-node --files ./src/index",
"ext": "ts",
"watch": [
"src/",
".env"
]
}

0 comments on commit b868d1a

Please sign in to comment.