From 7be966122f406d7a82d760f7c9359eee2bd0205a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Thu, 20 Feb 2025 16:56:21 +0100 Subject: [PATCH] Added missing info hint how to enable reichelt provider --- docs/usage/information_provider_system.md | 12 ++++++++++++ .../Providers/ReicheltProvider.php | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/usage/information_provider_system.md b/docs/usage/information_provider_system.md index 1b6f88b6..ab288626 100644 --- a/docs/usage/information_provider_system.md +++ b/docs/usage/information_provider_system.md @@ -235,6 +235,18 @@ The following env configuration options are available: completeness (prioritizing items with the most detailed information). If set to 'M', it further sorts by manufacturer name. If set to any other value, no sorting is performed. +### Reichelt + +The reichelt provider uses webscraping from [reichelt.com](https://reichelt.com/) to get part information. +This is not an official API and could break at any time. So use it at your own risk. + +The following env configuration options are available: +* `PROVIDER_REICHELT_ENABLED`: Set this to `1` to enable the Reichelt provider +* `PROVIDER_REICHELT_CURRENCY`: The currency you want to get prices in. Only possible for countries which use Non-EUR (optional, default: `EUR`) +* `PROVIDER_REICHELT_COUNTRY`: The country you want to get the prices for (optional, default: `DE`) +* `PROVIDER_REICHELT_LANGUAGE`: The language you want to get the descriptions in (optional, default: `en`) +* `PROVIDER_REICHELT_INCLUDE_VAT`: If set to `1`, the prices will be gross prices (including tax), otherwise net prices (optional, default: `1`) + ### Custom provider To create a custom provider, you have to create a new class implementing the `InfoProviderInterface` interface. As long diff --git a/src/Services/InfoProviderSystem/Providers/ReicheltProvider.php b/src/Services/InfoProviderSystem/Providers/ReicheltProvider.php index b0d704d3..dceaeac4 100644 --- a/src/Services/InfoProviderSystem/Providers/ReicheltProvider.php +++ b/src/Services/InfoProviderSystem/Providers/ReicheltProvider.php @@ -59,7 +59,7 @@ class ReicheltProvider implements InfoProviderInterface 'name' => 'Reichelt', 'description' => 'Webscrapping from reichelt.com to get part information', 'url' => 'https://www.reichelt.com/', - 'disabled_help' => 'TODO' + 'disabled_help' => 'Set PROVIDER_REICHELT_ENABLED env to 1' ]; }