diff --git a/content/5.nonsense/2.python.md b/content/5.nonsense/2.python.md index 32ddc5a..243c8d1 100644 --- a/content/5.nonsense/2.python.md +++ b/content/5.nonsense/2.python.md @@ -20,11 +20,11 @@ Anyway, eager to get an RTX 5090 for my AI-dedicated machine, I decided it was t After many setbacks, I went from this: -![Nvidia Stock Bot Old](https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/commit/88c09ff4cffd96cbf0852ec785f9fbf2130c23b2/assets/img/nvbot.png) +![Nvidia Stock Bot Old](/img/nonsense/nvidia-stock-bot-old-en.svg) To this: -![Nvidia Stock bot](https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/nvbot_schematics.png) +![Nvidia Stock bot](/img/nonsense/nvidia-stock-bot-en.svg) More info directly on the repo: diff --git a/public/img/nonsense/nvidia-stock-bot-en.svg b/public/img/nonsense/nvidia-stock-bot-en.svg new file mode 100644 index 0000000..9f26edb --- /dev/null +++ b/public/img/nonsense/nvidia-stock-bot-en.svg @@ -0,0 +1,5 @@ + + +Updating variables(defined in theconfiguration)Discord WebhookURLExec frequencyDisplaying the variables found in the history (to check that everything is OK)Erreur si mauvais paramétrage des variablesQuerying Nvidia's inventory via the previouslyconfigured API URLAPI_URLAPI responsewith statusJSONLooking for in responseJSONIf out of stock If previoulsy in stockRecording the "out_of_stock" statusSi in stockRecording the "in_stock" statusDisplaying status in the bhook historyDiscord notificationVia the webhook urlURL du webhookDiscordNew executionof the scriptExec frequency!X????Principles of the ScriptProduct APIStock APIQuerying Nvidia productsvia the previously configured API URLSKUUPCProduct APIAPI response with a list of product information and saved SKUs/UPCsJSONBuilding the Stock API URLAPI_URLSKU+=UPC If previoulsy in stockIf previously out of stock??Discord notificationVia the webhook urlURL du webhookDiscord!If different SKUIf similar SKU??Discord notificationVia the webhook urlDiscord WebhookURL!Stock APIIf previously out of stock \ No newline at end of file diff --git a/public/img/nonsense/nvidia-stock-bot-old-en.svg b/public/img/nonsense/nvidia-stock-bot-old-en.svg new file mode 100644 index 0000000..166da9c --- /dev/null +++ b/public/img/nonsense/nvidia-stock-bot-old-en.svg @@ -0,0 +1,5 @@ + + +EnvironmentVariables update(defined in conf)Discord Webhook URLExec frequencyPrint of the environmentvariables in logs(to check if everything is OK)Error if incorrectvariable settingsQuerying Nvidia's inventory via the previously configured API URLAPI URLAPI response with a list of in-stock products and a link to the products.JSONSearch forproductsin the listJSONIf out of stock If already in StockIf was not in stockRecording the"out_of_stock" statusIf in stockRecording the"in_stock" statusDisplaying status in history variablesDiscord notificationVia the webhook urlDiscord Webhook URLNew executionof the scriptExec frequency!X????Principles of the script \ No newline at end of file