From c012964cef23f574b8cec68ee16951ceb63c5202 Mon Sep 17 00:00:00 2001
From: Beta-User <>
Date: Sat, 4 May 2019 09:59:18 +0000
Subject: [PATCH] httpmod.template: update Clever-Tanken
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19322 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
FHEM/lib/AttrTemplate/httpmod.template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/FHEM/lib/AttrTemplate/httpmod.template b/FHEM/lib/AttrTemplate/httpmod.template
index 2e40785f6..e7468afc3 100644
--- a/FHEM/lib/AttrTemplate/httpmod.template
+++ b/FHEM/lib/AttrTemplate/httpmod.template
@@ -24,11 +24,11 @@ desc: Get prices for a single gas station.
Define a HTTPMOD device like
d
attr DEVICE userattr reading01Name reading01Regex reading02Name reading02Regex reading03Name reading03Regex readingOExpr
attr DEVICE enableControlSet 1
attr DEVICE reading01Name Diesel
-attr DEVICE reading01Regex SpritsortenController[^0-9]+([0-9,]+)[^0-9]+Diesel
+attr DEVICE reading01Regex "price-type-name">Diesel[\d\D]{700,900}"current-price-.">([0-9\.]+[^0-9]+suffix-price-.">[0-9])
attr DEVICE reading02Name SuperE10
-attr DEVICE reading02Regex SpritsortenController[^0-9]+([0-9,]+)[^0-9]+Super E10
+attr DEVICE reading02Regex "price-type-name">Super E10[\d\D]{700,900}"current-price-.">([0-9\.]+[^0-9]+suffix-price-.">[0-9])
attr DEVICE reading03Name SuperE5
-attr DEVICE reading03Regex SpritsortenController[^0-9]+([0-9,]+)[^0-9]+Super E5
+attr DEVICE reading03Regex "price-type-name">Super E5[\d\D]{700,900}"current-price-.">([0-9\.]+[^0-9]+suffix-price-.">[0-9])
attr DEVICE readingOExpr $val =~ tr/,/./;;$val
attr DEVICE stateFormat E5: SuperE5 € / E10: SuperE10 € / D: Diesel €
attr DEVICE timeout 10