FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: stefantaust1 am 30 August 2016, 19:48:25

Titel: Probleme mit der Anzeige eines Plots Dimplex ON/OFF Status
Beitrag von: stefantaust1 am 30 August 2016, 19:48:25
Hallo zusammen,

ich lese mein Dimplex Heizung aus und es funktioniert soweit.
Da ich noch am Anfang stehen hab ich jetzt auf DBlog umgestellt.

Leider bekomme ich das Diagramm  mit den On/Off nicht hin.

hier das Beispiel
http://www.fhemwiki.de/w/images/9/93/Dimplex_hp_graph.jpg

In die Datenbank wird alles bestens geschrieben, aber beim Anzeigen des Diagramms kann ich einige Zusätze (::$fld[2]=~"on"?1:0) nicht eingeben.

Hier die beiden Files im Vergleich :

funktioniert nicht

# Created by FHEM/98_SVG.pm, 2016-08-30 19:31:54
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set title ''
set ytics ("An" -1, "Aus" -2, "An" -5, "Aus" -6, "An" -9, "Aus" -10)
set y2tics ("An" 1, "Aus" 0, "An" -3, "Aus" -4, "An" -7, "Aus" -8, "An" -11, "Aus" -12)
set grid ytics y2tics
set ylabel ""
set y2label "Digital"
set yrange [-14:2]
set y2range [-14:2]

#logdb dim_compressor_output:state
#logdb dim_ventilator_output:state
#logdb dim_2heatgenerator_output:state
#logdb dim_flangeheater_output:state
#logdb dim_dhwpump_output:state
#logdb dim_circulationpump_output:state
#logdb dim_auxiliarypump_output:state

plot "<IN>" using 1:2 axes x1y2 title 'Verdichter' ls l0 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Ventilator' ls l1 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title '2. Wärmerzeuger' ls l2 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Flanscheizung' ls l3 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Warmwasserpumpe M18' ls l4 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Heizungsumwälzpumpe M13' ls l5 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Zusatzpumpe M16' ls l6 lw 1.5 with steps

----------------------------------------------------
----------------------------------------------------
----------------------------------------------------

funktioniert, aber leider mit FileLog



# Created by FHEM/98_SVG.pm, 2015-05-11 21:45:00
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set title ''
set ytics ("An" -1, "Aus" -2, "An" -5, "Aus" -6, "An" -9, "Aus" -10, "An" -13, "Aus" -14)
set y2tics ("An" 1, "Aus" 0, "An" -3, "Aus" -4, "An" -7, "Aus" -8, "An" -11, "Aus" -12)
set grid
set ylabel ""
set y2label "Digital"
set yrange [-16:2]
set y2range [-16:2]

#FileLog 3:dim_compressor_output.*::$fld[2]=~"on"?1:0
#FileLog 3:dim_ventilator_output.*::$fld[2]=~"on"?-1:-2
#FileLog 3:dim_2heatgenerator_output.*::$fld[2]=~"on"?-3:-4
#FileLog 3:dim_circulationpump_output.*::$fld[2]=~"on"?-5:-6
#FileLog 3:dim_dhwpump_output.*::$fld[2]=~"on"?-7:-8
#FileLog 3:dim_auxiliarypump_output.*::$fld[2]=~"on"?-9:-10
#FileLog 3:dim_solarpump_output.*::$fld[2]=~"on"?-11:-12
#FileLog 3:dim_flangeheater_output.*::$fld[2]=~"on"?-13:-14

plot "<IN>" using 1:2 axes x1y2 title 'Vd' ls l7 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Ve' ls l6 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title '2.We' ls l5 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Hub' ls l4 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Wup' ls l3 lw 1 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Zup' ls l0 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Sol' ls l2 lw 1.5 with steps,\
     "<IN>" using 1:2 axes x1y2 title 'Flh' ls l7 lw 1.5 with steps


Ich habe absolut keinen Plan mehr, wie ich das lösen kann

Danke
Stefan
Titel: Antw:Probleme mit der Anzeige eines Plots Dimplex ON/OFF Status
Beitrag von: stefantaust1 am 31 August 2016, 08:25:07
oder leichter gesagt,

wie kann ich die Specs wie z.B. ::$fld[2]=~"on"?1:0  bei der Ploterstellung bei deblog einfügen?

bei der Abfrage über FileLog sind die Felder da zum eintragen?

Stefan