Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for 4090 series (US - b&h/newegg/bestbuy) #3085

Merged
merged 2 commits into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/reference/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
| `MAX_PRICE_SERIES_3080` | Maximum price allowed for a match, applies 3080 series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_3080TI` | Maximum price allowed for a match, applies 3080 Ti series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_3090` | Maximum price allowed for a match, applies 3090 series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_4090` | Maximum price allowed for a match, applies 4090 series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_CORSAIR_SF` | Maximum price allowed for a match, applies to Corsair PSUs |
| `MAX_PRICE_SERIES_DARKHERO` | Maximum price allowed for a match, applies to ASUS Dark Hero motherboards |
| `MAX_PRICE_SERIES_RYZEN5600` | Maximum price allowed for a match, applies AMD 5600 series cpus |
Expand Down Expand Up @@ -262,6 +263,7 @@ Used with the `SHOW_ONLY_SERIES` variable.
| Nvidia RTX 3080 | `3080` |
| Nvidia RTX 3080 Ti | `3080ti` |
| Nvidia RTX 3090 | `3090` |
| Nvidia RTX 3090 | `4090` |
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| Nvidia RTX 3090 | `4090` |
| Nvidia RTX 4090 | `4090` |

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you update this @mrmos, we can merge this in! Thanks for your contribution :)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I'm going to go ahead and merge this then update myself.

Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks jef!

| Corsair SFX PSU | `sf` |
| Crosshair VIII | `darkhero` |
| Sony PS5 | `sonyps5c` |
Expand All @@ -272,7 +274,7 @@ Used with the `SHOW_ONLY_SERIES` variable.
## Nvidia Store Reference

???+ note
Use the Nvidia Store to check stock for Founders Edition cards only (3060 Ti/3070/3080/3080 Ti/3090). For USA use `bestbuy` instead.
Use the Nvidia Store to check stock for Founders Edition cards only (3060 Ti/3070/3080/3080 Ti/3090/4090). For USA use `bestbuy` instead.

???+ info
Use the `STORE` variable for your chosen country. For example, to check for a FE card in Belgium you would use the `nvidia-fr` store.
Expand Down
1 change: 1 addition & 0 deletions docs/reference/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Refer to https://github.com/node-apn/node-apn for config options.
| `DISCORD_NOTIFY_GROUP_3080` | Discord group to notify on 3080 stock |
| `DISCORD_NOTIFY_GROUP_3080TI` | Discord group to notify on 3080 Ti stock |
| `DISCORD_NOTIFY_GROUP_3090` | Discord group to notify on 3090 stock |
| `DISCORD_NOTIFY_GROUP_4090` | Discord group to notify on 4090 stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5600` | Discord group to notify on 5600X stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5800` | Discord group to notify on 5800X stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5900` | Discord group to notify on 5900X stock |
Expand Down
2 changes: 2 additions & 0 deletions dotenv-example
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ DISCORD_NOTIFY_GROUP_3070TI=
DISCORD_NOTIFY_GROUP_3080=
DISCORD_NOTIFY_GROUP_3080TI=
DISCORD_NOTIFY_GROUP_3090=
DISCORD_NOTIFY_GROUP_4090=
DISCORD_NOTIFY_GROUP_CORSAIR_SF=
DISCORD_NOTIFY_GROUP_RX6800=
DISCORD_NOTIFY_GROUP_RX6800XT=
Expand Down Expand Up @@ -60,6 +61,7 @@ MAX_PRICE_SERIES_3070TI=
MAX_PRICE_SERIES_3080=
MAX_PRICE_SERIES_3080TI=
MAX_PRICE_SERIES_3090=
MAX_PRICE_SERIES_4090=
MAX_PRICE_SERIES_CORSAIR_SF=
MAX_PRICE_SERIES_RX6800=
MAX_PRICE_SERIES_RX6800XT=
Expand Down
2 changes: 2 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ const notifications = {
3080: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3080),
'3080ti': envOrArray(process.env.DISCORD_NOTIFY_GROUP_3080TI),
3090: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3090),
4090: envOrArray(process.env.DISCORD_NOTIFY_GROUP_4090),
'captcha-deterrent': [],
darkhero: envOrArray(process.env.DISCORD_NOTIFY_GROUP_DARKHERO),
rx6700xt: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RX6700XT),
Expand Down Expand Up @@ -414,6 +415,7 @@ const store = {
3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080),
'3080ti': envOrNumber(process.env.MAX_PRICE_SERIES_3080TI),
3090: envOrNumber(process.env.MAX_PRICE_SERIES_3090),
4090: envOrNumber(process.env.MAX_PRICE_SERIES_4090),
'captcha-deterrent': 0,
darkhero: envOrNumber(process.env.MAX_PRICE_SERIES_DARKHERO),
rx6700xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6700XT),
Expand Down
97 changes: 96 additions & 1 deletion src/store/model/bandh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ export const BAndH: Store = {
series: '3060ti',
url: 'https://www.bhphotovideo.com/c/product/1606946-REG/gigabyte_gv_n306tgamingoc_pro_8gd_rtx_3060_ti_gaming.html',
},

{
brand: 'msi',
model: 'gaming x trio',
Expand Down Expand Up @@ -254,6 +253,102 @@ export const BAndH: Store = {
series: '3090',
url: 'https://www.bhphotovideo.com/c/product/1614302-REG/asus_rog_strix_rtx3090_o24g_white_rog_strix_geforce_rtx.html',
},
{
brand: 'zotac',
model: 'trinity oc',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1730538-REG/zotac_zt_d40900j_10p_geforce_rtx_4090_trinity.html',
},
{
brand: 'zotac',
model: 'trinity',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1730540-REG/zotac_zt_d40900d_10p_geforce_rtx_4090_trinity.html',
},
{
brand: 'zotac',
model: 'amp extreme airo',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1730539-REG/zotac_zt_d40900b_10p_geforce_rtx_4090_amp.html',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729221-REG/gigabyte_gv_n4090gaming_oc_24gd_geforce_rtx_4090_gaming.html',
},
{
brand: 'gigabyte',
model: 'windforce',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729222-REG/gigabyte_gv_n4090wf3_24gd_geforce_rtx_4090_windforce.html',
},
{
brand: 'asus',
model: 'strix oc',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729257-REG/asus_rog_strix_rtx4090_o24g_gaming_geforce_rtx_4090_rog.html',
},
{
brand: 'asus',
model: 'tuf',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1730937-REG/asus_tuf_rtx4090_24g_gaming_geforce_rtx_4090_tuf.html',
},
{
brand: 'asus',
model: 'tuf oc',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729258-REG/asus_tuf_rtx4090_o24g_gaming_geforce_rtx_4090_tuf.html',
},
{
brand: 'asus',
model: 'strix oc',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729257-REG/asus_rog_strix_rtx4090_o24g_gaming_geforce_rtx_4090_rog.html',
},
{
brand: 'gigabyte',
model: 'windforce',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729222-REG/gigabyte_gv_n4090wf3_24gd_geforce_rtx_4090_windforce.html',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729221-REG/gigabyte_gv_n4090gaming_oc_24gd_geforce_rtx_4090_gaming.html',
},
{
brand: 'msi',
model: 'suprim x',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729349-REG/msi_g4090sx24_geforce_rtx_4090_suprim.html',
},
{
brand: 'msi',
model: 'suprim liquid x',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729348-REG/msi_g4090slx24_geforce_rtx_4090_suprim.html',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729347-REG/msi_g4090gxt24_geforce_rtx_4090_gaming.html',
},
{
brand: 'msi',
model: 'gaming trio',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729346-REG/msi_g4090gt24_geforce_rtx_4090_gaming.html',
},
{
brand: 'pny',
model: 'gaming verto epic-x',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729096-REG/pny_vcg409024tfxxpb1_geforce_rtx_4090_24gb.html',
},
{
brand: 'amd',
model: '5950x',
Expand Down
49 changes: 49 additions & 0 deletions src/store/model/bestbuy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,55 @@ export const BestBuy: Store = {
series: '3080ti',
url: 'https://api.bestbuy.com/click/-/6462956/pdp',
},
{
brand: 'nvidia',
cartUrl: 'https://api.bestbuy.com/click/-/6521430/cart',
model: 'founders edition',
series: '4090',
url: 'https://api.bestbuy.com/click/-/6521430/pdp',
},
{
brand: 'pny',
cartUrl: 'https://api.bestbuy.com/click/-/6522679/cart',
model: 'xlr8 gaming',
series: '4090',
url: 'https://api.bestbuy.com/click/-/6522679/pdp',
},
{
brand: 'asus',
cartUrl: 'https://api.bestbuy.com/click/-/6524435/cart',
model: 'strix',
series: '4090',
url: 'https://api.bestbuy.com/click/-/6524435/pdp',
},
{
brand: 'asus',
cartUrl: 'https://api.bestbuy.com/click/-/6524436/cart',
model: 'tuf',
series: '4090',
url: 'https://api.bestbuy.com/click/-/6524436/pdp',
},
{
brand: 'msi',
cartUrl: 'https://api.bestbuy.com/click/-/6522371/cart',
model: 'gaming trio',
series: '4090',
url: 'https://api.bestbuy.com/click/-/6522371/pdp',
},
{
brand: 'msi',
cartUrl: 'https://api.bestbuy.com/click/-/6522334/cart',
model: 'suprim liquid x',
series: '4090',
url: 'https://api.bestbuy.com/click/-/6522334/pdp',
},
{
brand: 'gigabyte',
cartUrl: 'https://api.bestbuy.com/click/-/6521518/cart',
model: 'gaming oc',
series: '4090',
url: 'https://api.bestbuy.com/click/-/6521518/pdp',
},
{
brand: 'nvidia',
cartUrl: 'https://api.bestbuy.com/click/-/6429434/cart',
Expand Down
153 changes: 153 additions & 0 deletions src/store/model/newegg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,159 @@ export const Newegg: Store = {
series: '3090',
url: 'https://www.newegg.com/gigabyte-geforce-rtx-3090-gv-n3090eagle-oc-24gd/p/N82E16814932328',
},
{
brand: 'gigabyte',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932555',
itemNumber: 'N82E16814932555',
model: 'aorus master 24g',
series: '4090',
url: 'https://www.newegg.com/gigabyte-geforce-rtx-4090-gv-n4090aorus-m-24gd/p/N82E16814932555',
},
{
brand: 'gigabyte',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126594',
itemNumber: 'N82E16814126596',
model: 'aorus xtreme waterforce 24g',
series: '4090',
url: 'https://www.newegg.com/gigabyte-geforce-rtx-4090-gv-n4090aorusx-w-24gd/p/N82E16814932556',
},
{
brand: 'gigabyte',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932554',
itemNumber: 'N82E16814932554',
model: 'windforce',
series: '4090',
url: 'https://www.newegg.com/gigabyte-geforce-rtx-4090-gv-n4090wf3-24gd/p/N82E16814932554',
},
{
brand: 'msi',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137761',
itemNumber: 'N82E16814137761',
model: 'gaming x trio',
series: '4090',
url: 'https://www.newegg.com/msi-geforce-rtx-4090-rtx-4090-gaming-x-trio-24g/p/N82E16814137761',
},
{
brand: 'msi',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137762',
itemNumber: 'N82E16814137762',
model: 'gaming trio',
series: '4090',
url: 'https://www.newegg.com/msi-geforce-rtx-4090-rtx-4090-gaming-trio-24g/p/N82E16814137762',
},
{
brand: 'msi',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137762',
itemNumber: 'N82E16814137762',
model: 'gaming trio',
series: '4090',
url: 'https://www.newegg.com/msi-geforce-rtx-4090-rtx-4090-gaming-trio-24g/p/N82E16814137762',
},
{
brand: 'msi',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137759',
itemNumber: 'N82E16814137759',
model: 'suprim',
series: '4090',
url: 'https://www.newegg.com/msi-geforce-rtx-4090-rtx-4090-suprim-liquid-x-24g/p/N82E16814137759',
},
{
brand: 'msi',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137760',
itemNumber: 'N82E16814137760',
model: 'suprim x',
series: '4090',
url: 'https://www.newegg.com/msi-geforce-rtx-4090-rtx-4090-suprim-liquid-x-24g/p/N82E16814137760',
},
{
brand: 'asus',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126593',
itemNumber: 'N82E16814126593',
model: 'strix',
series: '4090',
url: 'https://www.newegg.com/asus-geforce-rtx-4090-rog-strix-rtx4090-o24g-gaming/p/N82E16814126593',
},
{
brand: 'asus',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126593',
itemNumber: 'N82E16814126593',
model: 'strix oc',
series: '4090',
url: 'https://www.newegg.com/asus-geforce-rtx-4090-rog-strix-rtx4090-o24g-gaming/p/N82E16814126593',
},
{
brand: 'asus',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126600',
itemNumber: 'N82E16814126600',
model: 'strix',
series: '4090',
url: 'https://www.newegg.com/asus-geforce-rtx-4090-rog-strix-rtx4090-o24g-gaming/p/N82E16814126593',
},
{
brand: 'asus',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126596',
itemNumber: 'N82E16814126596',
model: 'tuf',
series: '4090',
url: 'https://www.newegg.com/asus-geforce-rtx-4090-tuf-rtx4090-24g-gaming/p/N82E16814126596',
},
{
brand: 'asus',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126594',
itemNumber: 'N82E16814126596',
model: 'tuf oc',
series: '4090',
url: 'https://www.newegg.com/asus-geforce-rtx-4090-tuf-rtx4090-o24g-gaming/p/N82E16814126594',
},
{
brand: 'zotac',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814500539',
itemNumber: 'N82E16814500539',
model: 'trinity',
series: '4090',
url: 'https://www.newegg.com/zotac-geforce-rtx-4090-zt-d40900d-10p/p/N82E16814500539',
},
{
brand: 'zotac',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814500539',
itemNumber: 'N82E16814500539',
model: 'trinity',
series: '4090',
url: 'https://www.newegg.com/zotac-geforce-rtx-4090-zt-d40900d-10p/p/N82E16814500539',
},
{
brand: 'zotac',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814500538',
itemNumber: 'N82E16814500538',
model: 'amp extreme airo',
series: '4090',
url: 'https://www.newegg.com/zotac-geforce-rtx-4090-zt-d40900b-10p/p/N82E16814500538',
},
{
brand: 'zotac',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814500538',
itemNumber: 'N82E16814500538',
model: 'amp extreme airo',
series: '4090',
url: 'https://www.newegg.com/zotac-geforce-rtx-4090-zt-d40900b-10p/p/N82E16814500538',
},
{
brand: 'amd',
cartUrl:
Expand Down
Loading