Servus Leute,
ich verzweifle am Textparser, das liegt aber nicht am Modul sondern an meiner begrenzten Auffassungsgabe.
Ich habe einen relativ „schönen“ Datenstrom den ich über einen WWW-Reader von einer Online-Seite abhole.
Die nachgelagerte Instanz wäre nun (nach meinem Verständnis) ein „Text-Parser“ der aus dem Datenstrom die Werte in Variablen schreibt.
Leider greifen die von mir definierten regeln nicht so richtig.
Entweder (im Debug-Modus) kommt die Rückmeldung „Rule failed“ oder oder er steigt nach einigen Variablen aus.
Hier meine Konfiguration (welche als Ergebnis „Rule failed“ ergibt)
Eine andere Konfiguration extrahiert zwar Daten, aber nach einigen Werten kommt ebenfalls die Meldung.
Was mache ich falsch? (oder bin ich komplett auf dem falschen Dampfer?)
Ich bitte um sachdienliche Hinweise
Vielen Dank
Hier der Datenstrom, den ich stündlich abrufe:
date_now: 2019-04-08 16:40:12<LF>date_now_epoch: 1554734412072<LF>date_now_day: 8<LF>date_now_month: 4<LF>date_now_year: 2019<LF>date_start: 2019-04-08 00:00:00<LF>date_end: 2019-04-08 23:59:59<LF>price_low: 3.46900<LF>price_high: 6.00000<LF>price_median: 4.23800<LF>price_average: 4.41058<LF>price_current: 4.28400<LF>price_unit: Cent/kWh<LF>price_threshold_00: 3.46900<LF>price_threshold_01: 3.47500<LF>price_threshold_02: 3.63000<LF>price_threshold_03: 3.67300<LF>price_threshold_04: 3.72000<LF>price_threshold_05: 3.74400<LF>price_threshold_06: 3.97300<LF>price_threshold_07: 4.01700<LF>price_threshold_08: 4.04200<LF>price_threshold_09: 4.16000<LF>price_threshold_10: 4.18500<LF>price_threshold_11: 4.19400<LF>price_threshold_12: 4.28200<LF>price_threshold_13: 4.28400<LF>price_threshold_14: 4.34200<LF>price_threshold_15: 4.44000<LF>price_threshold_16: 4.50500<LF>price_threshold_17: 4.65800<LF>price_threshold_18: 4.84600<LF>price_threshold_19: 4.91000<LF>price_threshold_20: 5.49600<LF>price_threshold_21: 5.86200<LF>price_threshold_22: 5.94700<LF>price_threshold_23: 6.00000<LF>data_price_hour_rel_-16_amount: 3.67300<LF>data_price_hour_abs_00_amount: 3.67300<LF>data_price_hour_rel_-15_amount: 3.63000<LF>data_price_hour_abs_01_amount: 3.63000<LF>data_price_hour_rel_-14_amount: 3.72000<LF>data_price_hour_abs_02_amount: 3.72000<LF>data_price_hour_rel_-13_amount: 4.16000<LF>data_price_hour_abs_03_amount: 4.16000<LF>data_price_hour_rel_-12_amount: 5.49600<LF>data_price_hour_abs_04_amount: 5.49600<LF>data_price_hour_rel_-11_amount: 5.94700<LF>data_price_hour_abs_05_amount: 5.94700<LF>data_price_hour_rel_-10_amount: 6.00000<LF>data_price_hour_abs_06_amount: 6.00000<LF>data_price_hour_rel_-9_amount: 5.86200<LF>data_price_hour_abs_07_amount: 5.86200<LF>data_price_hour_rel_-8_amount: 4.91000<LF>data_price_hour_abs_08_amount: 4.91000<LF>data_price_hour_rel_-7_amount: 4.44000<LF>data_price_hour_abs_09_amount: 4.44000<LF>data_price_hour_rel_-6_amount: 4.28200<LF>data_price_hour_abs_10_amount: 4.28200<LF>data_price_hour_rel_-5_amount: 4.18500<LF>data_price_hour_abs_11_amount: 4.18500<LF>data_price_hour_rel_-4_amount: 4.04200<LF>data_price_hour_abs_12_amount: 4.04200<LF>data_price_hour_rel_-3_amount: 4.01700<LF>data_price_hour_abs_13_amount: 4.01700<LF>data_price_hour_rel_-2_amount: 3.97300<LF>data_price_hour_abs_14_amount: 3.97300<LF>data_price_hour_rel_-1_amount: 4.28400<LF>data_price_hour_abs_15_amount: 4.28400<LF>data_price_hour_rel_+00_amount: 4.50500<LF>data_price_hour_abs_16_amount: 4.50500<LF>data_price_hour_rel_+01_amount: 4.84600<LF>data_price_hour_abs_17_amount: 4.84600<LF>data_price_hour_rel_+02_amount: 4.65800<LF>data_price_hour_abs_18_amount: 4.65800<LF>data_price_hour_rel_+03_amount: 4.34200<LF>data_price_hour_abs_19_amount: 4.34200<LF>data_price_hour_rel_+04_amount: 4.19400<LF>data_price_hour_abs_20_amount: 4.19400<LF>data_price_hour_rel_+05_amount: 3.74400<LF>data_price_hour_abs_21_amount: 3.74400<LF>data_price_hour_rel_+06_amount: 3.47500<LF>data_price_hour_abs_22_amount: 3.47500<LF>data_price_hour_rel_+07_amount: 3.46900<LF>data_price_hour_abs_23_amount: 3.46900