Skip to content

Commit

Permalink
feat: add support for 4090 series (US - b&h/newegg/bestbuy) (#3085)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmos committed Nov 28, 2022
1 parent fa7c423 commit 0c84075
Show file tree
Hide file tree
Showing 8 changed files with 313 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/reference/filter.md
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` |
| 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
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
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_G4_DOORBELL_PRO=
MAX_PRICE_SERIES_RX6800=
Expand Down
2 changes: 2 additions & 0 deletions src/config.ts
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),
'g4-doorbell-pro': envOrNumber(
Expand Down
97 changes: 96 additions & 1 deletion src/store/model/bandh.ts
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
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
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

0 comments on commit 0c84075

Please sign in to comment.