Hauptmenü

BenzinpreisMonitor

Begonnen von Phil__, 16 April 2014, 18:52:21

Vorheriges Thema - Nächstes Thema

scooty

Webseite wurde wohl geändert.
Habe den Attributwert für die Regex auf z.B.
readingsRegex_SuperE5 <span>Super E5</span>[^0-9]+([0-9\.]+)
geändert, damit funktioniert es bei mir wieder.

Andreas
Fhem auf Gigabyte Brix
CUL V3 HM / CUL V3 MAX / MaxCube aFW Homematic&MAX / ZWave.me ZME_UZB1 / SDuino 433 / Velux KLF200
Homematic / MAX / Logitech Hub / ZWave / Wifi LED / div. 433 Temperatursensoren / pywws WH1080 / IO Homecontrol

Snake1980

Suuuper! Und ich hab schon an meinem Verstand gezweifelt. Danke!!!


Zitat von: scooty am 30 Juli 2015, 08:32:00
Webseite wurde wohl geändert.
Habe den Attributwert für die Regex auf z.B.
readingsRegex_SuperE5 <span>Super E5</span>[^0-9]+([0-9\.]+)
geändert, damit funktioniert es bei mir wieder.

Andreas

moonsorrox

ich sage auch mal DANKE....!  :D
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

CoolTux

Dito. Auch ich möchte mich bedanken.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

wuppermann

Auch von mir ein großes Danke !

VB90

Ich bin heute durch Zufall auf diesen Thread gestossen.
Direkt umgesetzt, es klappt alles was ich benötige, prima.

Großes Danke an alle die sich hier eingebracht haben!

Nächste Idee, mal sehen wie sinnig das am Ende ist, eine Benachrichtigung mittels DOIF oder so per Whatsapp beim Unterschreiten gewisser Preise.

vb
Man muss das Rad nicht neu erfinden, nur wissen wie es gedreht wird.

DJ_SAMMY190

Super klappt wieder ;) Danke ;)

FHEM auf Raspberry Pi 2 b mit Homematic Komponenten

Mr. Flash

Hallo Andreas,

vielen Dank für die Anpassung! Jetzt flutscht's wieder!
Bei war's am 29.07.2015 um 17:18:40, als die Log-Einträge ausblieben und die Kurven abrissen.

Grüße,
Nik
RPi 4; Bullseye; FHEM 6.3; S.USV basic; BME280; TSL25911.
HM: CFG-LAN,CFG-USB-2,CC-RT-DN,Dis-(EP-)WM55,ES-PMSw1-Pl,ES-TX-WM,LC-Dim1T-FM,LC-Sw1-FM,LC-Sw2-FM,MOD-RPI-PCB,OU-CFM-Pl,RC-Dis-H-x-EU,SCI-3-FM,Sec-MDIR-2,-RHS,-SD,-SC-2,-SCo,-Sir-WM,-TiS,-WDS-2,TC-IT-WM-W-EU,WDS10-TH-O,WDS30-OT2-SM.
Shelly's.

cocojambo

Geht wieder super gut, DANKE
Aber ich bekomme bei jeder Abfrage diese Perl-Meldung:
PERL WARNING: Odd number of elements in anonymous hash at (eval 187557) line 1, <$fh> line 1247.
Was hat es damit auf sich? oder kann das unbeachtet bleiben?
Gruß aus Köln
nobbi
FHEM6.2 FB7490 FB7430 3xraspi2+3+4 2xHM-LAN-CFG 2xESP CUL868 CUNO868 HUE-Bridge Harmony-Hub 5xHM-LC-Sw-PI-2 3xHM-WDS30-T2-SN 1xHM-LC_Sw4-DR 3xHM-ES-PMSw1-PI 7xFS20SIG2 6xFS20KSE 2xHM-ES-PMSW1-PL 5xS300TH 1xASH2200 1xEM1000

PeMue

oh, bei mir hat das auch am 29.07. gestoppt, danke für die Info.

Gruß PeMue
RPi3Bv1.2 rpiaddon 1.66 6.0 1xHM-CC-RT-DN 1.4 1xHM-TC-IT-WM 1.1 2xHB-UW-Sen-THPL-O 0.15 1x-I 0.14OTAU  1xCUNO2 1.67 2xEM1000WZ 2xUniroll 1xASH2200 3xHMS100T(F) 1xRFXtrx 90 1xWT440H 3xTFA30.3150 5xFA21
RPi1Bv2 LCDCSM 1.63 5.8 2xMAX HKT 1xMAX RT V200KW1 Heizung Wasser

stromer-12

Ich habe bei mir die Regex wie folgt geändert:

<div class="fuel-price-type"><span>Diesel[^0-9]+([0-9\.]+)


Gesendet von meinem GT-I9295
FHEM (SVN) auf RPi1B mit HMser | ESPLink
FHEM (SVN) virtuell mit HMLAN | HMUSB | CUL

cocojambo

Habe auch diese Zeile geändert und eingefügt:

attr Benzinpreis1 readingsRegex_Diesel <span>Diesel</span>[^0-9]+([0-9\.]+)

Jetzt kommen folgende Fehlermeldungen im LOG:

2015.08.07 10:44:16 3: Benzinpreis2: Read response to Update didn't match any Reading(s)
2015.08.07 10:44:16 3: Benzinpreis1: Read response to Update didn't match any Reading(s)
2015.08.07 10:44:16 3: Benzinpreis4: Read response to Update didn't match any Reading(s)
2015.08.07 10:49:16 3: Benzinpreis2: Read response to Update didn't match any Reading(s)
2015.08.07 10:49:16 3: Benzinpreis3: Read response to Update didn't match any Reading(s)
2015.08.07 10:54:16 3: Benzinpreis3: Read response to Update didn't match any Reading(s)
2015.08.07 10:54:16 3: Benzinpreis4: Read response to Update didn't match any Reading(s)


Was ist jetzt falsch? und was muß ich noch bei der Abfrage ändern?
Gruß aus Köln
nobbi
FHEM6.2 FB7490 FB7430 3xraspi2+3+4 2xHM-LAN-CFG 2xESP CUL868 CUNO868 HUE-Bridge Harmony-Hub 5xHM-LC-Sw-PI-2 3xHM-WDS30-T2-SN 1xHM-LC_Sw4-DR 3xHM-ES-PMSw1-PI 7xFS20SIG2 6xFS20KSE 2xHM-ES-PMSW1-PL 5xS300TH 1xASH2200 1xEM1000

moonsorrox

ich kriege auch seit ca. 3 Tagen diese Fehler, die obige Änderung habe ich aber gemacht
Error read from http://www.clever-tanken.de:80 timed out
Content-Type: text/html; charset=iso-8859-1, buffer empty,
Connection: close
Content-Length: 531
Vary: Accept-Encoding
Date: Fri, 07 Aug 2015 07:33:54 GMT
header: HTTP/1.1 502 Proxy Error
2015.08.07 10:24:00 3: Star: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Connection: close, buffer empty,
Content-Length: 33268
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Fri, 07 Aug 2015 06:53:52 GMT
header: HTTP/1.1 200 OK
2015.08.07 10:23:57 3: Real: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Connection: close, buffer empty,
Content-Length: 36916
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Fri, 07 Aug 2015 06:53:52 GMT
header: HTTP/1.1 200 OK
2015.08.07 10:23:57 3: Aral: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Connection: close, buffer empty,
Content-Length: 34762
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Fri, 07 Aug 2015 06:53:52 GMT
header: HTTP/1.1 200 OK
2015.08.07 10:23:57 3: HEM: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Content-Type: text/html; charset=iso-8859-1, buffer empty,
Connection: close
Content-Length: 531
Vary: Accept-Encoding
Date: Fri, 07 Aug 2015 07:33:54 GMT
header: HTTP/1.1 502 Proxy Error
2015.08.07 10:14:01 3: Star: Read callback: request type was Update,
2015.08.07 10:10:39 3: CUL_HM set RollladenWZ pct 70
Error read from http://www.clever-tanken.de:80 timed out
Content-Type: text/html; charset=iso-8859-1, buffer empty,
Connection: close
Content-Length: 531
Vary: Accept-Encoding
Date: Fri, 07 Aug 2015 07:33:54 GMT
header: HTTP/1.1 502 Proxy Error
2015.08.07 10:03:59 3: Star: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Content-Type: text/html; charset=iso-8859-1, buffer empty,
Connection: close
Content-Length: 531
Vary: Accept-Encoding
Date: Fri, 07 Aug 2015 07:33:54 GMT
header: HTTP/1.1 502 Proxy Error
2015.08.07 09:53:59 3: Star: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Connection: close, buffer empty,
Content-Length: 33268
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Fri, 07 Aug 2015 06:53:52 GMT
header: HTTP/1.1 200 OK
2015.08.07 09:53:57 3: Real: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Connection: close, buffer empty,
Content-Length: 36916
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Fri, 07 Aug 2015 06:53:52 GMT
header: HTTP/1.1 200 OK
2015.08.07 09:53:57 3: Aral: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Connection: close, buffer empty,
Content-Length: 34762
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Fri, 07 Aug 2015 06:53:52 GMT
header: HTTP/1.1 200 OK
2015.08.07 09:53:57 3: HEM: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Content-Type: text/html; charset=iso-8859-1, buffer empty,
Connection: close
Content-Length: 531
Vary: Accept-Encoding
Date: Fri, 07 Aug 2015 07:33:54 GMT
header: HTTP/1.1 502 Proxy Error
2015.08.07 09:43:59 3: Star: Read callback: request type was Update,
2015.08.07 09:33:54 3: Star: Read response to Update didn't match any Reading(s)
Error read from http://www.clever-tanken.de:80 timed out
Content-Type: text/html; charset=iso-8859-1, buffer empty,
Connection: close
Content-Length: 532
Vary: Accept-Encoding
Date: Fri, 07 Aug 2015 07:13:54 GMT
header: HTTP/1.1 502 Proxy Error
2015.08.07 09:23:59 3: Star: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Connection: close, buffer empty,
Content-Length: 33268
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Fri, 07 Aug 2015 06:53:52 GMT
header: HTTP/1.1 200 OK
2015.08.07 09:23:57 3: Real: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Connection: close, buffer empty,
Content-Length: 36916
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Fri, 07 Aug 2015 06:53:52 GMT
header: HTTP/1.1 200 OK
2015.08.07 09:23:57 3: Aral: Read callback: request type was Update,
Error read from http://www.clever-tanken.de:80 timed out
Connection: close, buffer empty,
Content-Length: 34762
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Fri, 07 Aug 2015 06:53:52 GMT
header: HTTP/1.1 200 OK
2015.08.07 09:23:57 3: HEM: Read callback: request type was Update,
2015.08.07 09:13:54 3: Star: Read response to Update didn't match any Reading(s)
2015.08.07 09:13:54 1: PERL WARNING: Use of uninitialized value $val in concatenation (.) or string at ./FHEM/98_HTTPMOD.pm line 798.
Error read from http://www.clever-tanken.de:80 timed out
Connection: close, buffer empty,
Content-Length: 34684
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Fri, 07 Aug 2015 06:53:54 GMT
header: HTTP/1.1 200 OK
2015.08.07 09:03:59 3: Star: Read callback: request type was Update,
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

moonsorrox

Zitat von: cocojambo am 07 August 2015, 11:34:52
Habe auch diese Zeile geändert und eingefügt:

attr Benzinpreis1 readingsRegex_Diesel <span>Diesel</span>[^0-9]+([0-9\.]+)


mach mal dieses dann sollte es gehen:
Zitat von: stromer-12 am 04 August 2015, 20:37:03
Ich habe bei mir die Regex wie folgt geändert:

<div class="fuel-price-type"><span>Diesel[^0-9]+([0-9\.]+)


Gesendet von meinem GT-I9295
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

Michi240281

Ich habe es für SuperE5 wieder hinbekommen mit folgendem Ausdruck:

readingsRegex_SuperE5 <span>Super E5</span>[^0-9]+([0-9\.]+)

Für Ultimate 102 bekomme ich es aber nicht hin.

readingsName_AralUltimate102 Ultimate_102

readingsRegex_AralUltimate102 <span>Ultimate 102</span>[^0-9]+([0-9\.]+)


tuts leider nicht!

Jmd ne Idee bzw. es auch für Ultimate wieder hinbekommen?
FHEM auf QNAP per VM / HM LAN Adapter / diverse HM-Devices
QNAP TVS 463
VU+ Duo4kSE
Sony 75ZD9