Multi GPU merge #10

Merged
Djeex merged 10 commits from wip into main 2025-07-08 19:15:29 +02:00
2 changed files with 31 additions and 15 deletions
Showing only changes of commit c8dcafbe01 - Show all commits

View File

@ -53,6 +53,10 @@ services:
environment:
- DISCORD_WEBHOOK_URL= # Your Discord webhook URL
- PRODUCT_NAME= # Exact GPU name like "RTX 5080"
- API_URL_SKU= # API listing the product
- API_URL_STOCK= # API providing stock data
- PRODUCT_URL= # GPU purchase URL
- PYTHONUNBUFFERED=1 # Enables real-time log output
command: python nvidia-stock-bot.py
```
@ -133,24 +137,23 @@ Instructions to directly run the Python script. Note: the bot stops when you clo
**Configuration**
- Create a virtual environment (e.g., `python3 -m venv env_name`)
- Create and navigate into a folder
- Download the Python script:
- Clone the repo:
```sh
curl -o nvidia-stock-bot.py -# https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/nvidia-stock-bot.py
git clone https://git.djeex.fr/Djeex/nvidia-stock-bot.git
```
- Export the environment variables with your webhook and refresh time:
- Navigate to `nvidia-stock-bot` and create a virtual environment (e.g., `python3 -m venv env_name`)
- Export the environment variables with your webhook and refresh time, for exemple:
```sh
export DISCORD_WEBHOOK_URL="https://your_discord_url"
export DISCORD_ROLE="<@&123456789>"
export REFRESH_TIME="60"
export API_URL_SKU="https://api.nvidia.partners/edge/product/search?page=1&limit=100&locale=fr-fr&Manufacturer=Nvidia&gpu=RTX%205080"
export API_URL_STOCK="https://api.store.nvidia.com/partner/v1/feinventory?locale=fr-fr&skus="
export PRODUCT_URL="https://marketplace.nvidia.com/fr-fr/consumer/graphics-cards/?locale=fr-fr&page=1&limit=12&gpu=RTX%205080&manufacturer=NVIDIA"
export PRODUCT_NAME="RTX 5080"
export TEST_MODE=false
export PYTHONUNBUFFERED=1
```
- Run the script