From 5db83484f301d48509205d9d0b5146c5d7114d26 Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Thu, 5 Nov 2020 23:23:35 -0500 Subject: [PATCH] fix: environment variables to match ryzen cpus Signed-off-by: Jef LeCompte --- .env-example | 8 ++++---- README.md | 16 ++++------------ src/config.ts | 8 ++++---- 3 files changed, 12 insertions(+), 20 deletions(-) diff --git a/.env-example b/.env-example index 14af8e7aa3..c7fdce02df 100644 --- a/.env-example +++ b/.env-example @@ -17,10 +17,10 @@ LOW_BANDWIDTH= MAX_PRICE_SERIES_3070= MAX_PRICE_SERIES_3080= MAX_PRICE_SERIES_3090= -MAX_PRICE_SERIES_5950x= -MAX_PRICE_SERIES_5900x= -MAX_PRICE_SERIES_5800x= -MAX_PRICE_SERIES_5600x= +MAX_PRICE_SERIES_RYZEN5600= +MAX_PRICE_SERIES_RYZEN5800= +MAX_PRICE_SERIES_RYZEN5900= +MAX_PRICE_SERIES_RYZEN5950= MICROCENTER_LOCATION= MQTT_BROKER_ADDRESS= MQTT_BROKER_PORT= diff --git a/README.md b/README.md index d8e987e520..07e6bc0d9f 100644 --- a/README.md +++ b/README.md @@ -99,10 +99,10 @@ environment variables are **optional**._ | `MAX_PRICE_SERIES_3070` | Maximum price allowed for a match, applies 3070 series cards (does not apply to these sites: Nvidia, Asus, EVGA) | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - Cards above `1234` will be skipped. | | `MAX_PRICE_SERIES_3080` | Maximum price allowed for a match, applies 3080 series cards (does not apply to these sites: Nvidia, Asus, EVGA) | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - Cards above `1234` will be skipped. | | `MAX_PRICE_SERIES_3090` | Maximum price allowed for a match, applies 3090 series cards (does not apply to these sites: Nvidia, Asus, EVGA) | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - Cards above `1234` will be skipped. | -| `MAX_PRICE_SERIES_5950` | Maximum price allowed for a match, applies AMD 5950 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. | -| `MAX_PRICE_SERIES_5900` | Maximum price allowed for a match, applies AMD 5900 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. | -| `MAX_PRICE_SERIES_5800` | Maximum price allowed for a match, applies AMD 5800 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. | -| `MAX_PRICE_SERIES_5600` | Maximum price allowed for a match, applies AMD 5600 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. | +| `MAX_PRICE_SERIES_RYZEN5600` | Maximum price allowed for a match, applies AMD 5600 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. | +| `MAX_PRICE_SERIES_RYZEN5800` | Maximum price allowed for a match, applies AMD 5800 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. | +| `MAX_PRICE_SERIES_RYZEN5900` | Maximum price allowed for a match, applies AMD 5900 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. | +| `MAX_PRICE_SERIES_RYZEN5950` | Maximum price allowed for a match, applies AMD 5950 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. | | `MICROCENTER_LOCATION` | Specific MicroCenter location(s) to search | Comma separated, e.g.: `marietta,duluth`, default: `web` | | `NVIDIA_ADD_TO_CART_ATTEMPTS` | The maximum number of times the `nvidia-api` add to cart feature will be attempted before failing | Default: `10` | | `NVIDIA_SESSION_TTL` | The time in milliseconds to keep the cart active while using `nvidia-api` | Default: `60000` | @@ -433,16 +433,8 @@ environment variables are **optional**._ | `TWITCH_CHANNEL` | Twitch channel | | - - - - - - - - ## FAQ **Q: What's Node.js and how do I install it?** Visit [their website](https://nodejs.org/en/) and download and install diff --git a/src/config.ts b/src/config.ts index fc4b460b38..b83b45360c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -251,10 +251,10 @@ const store = { 3070: envOrNumber(process.env.MAX_PRICE_SERIES_3070), 3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080), 3090: envOrNumber(process.env.MAX_PRICE_SERIES_3090), - ryzen5600: envOrNumber(process.env.MAX_PRICE_SERIES_5600x), - ryzen5800: envOrNumber(process.env.MAX_PRICE_SERIES_5800x), - ryzen5900: envOrNumber(process.env.MAX_PRICE_SERIES_5900x), - ryzen5950: envOrNumber(process.env.MAX_PRICE_SERIES_5950x), + ryzen5600: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5600), + ryzen5800: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5800), + ryzen5900: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5900), + ryzen5950: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5950), 'test:series': -1 } },