[FHZ] Zustand von Schaltaktoren anzeigen

Begonnen von UliM, 16 Juni 2009, 22:38:10

Vorheriges Thema - Nächstes Thema

UliM

Originally posted by: <email address deleted>

Hallo,

ich brauche mal eure Hilfe.

Ich möchte den Status von 3 Motoren im Webinterface anzeigen.
im LOG steht:
...... Motor1 on
...... Motor1 off
...... Motor2 on
...... Motor2 off
...... Motor3 on
...... Motor3 off

gefunden habe ich fs20.gplot

#####
set terminal png transparent size crop
set output '.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set title ''

set ytics "Off" 0, "On" 1
set y2tics "Off" 0, "On" 1
set yrange [-0.1:1.1]
set y2range [-0.1:1.1]
set ylabel "Motor"
set y2label "Motor"

#FileLog 3::0:$fld[2]eq"on"?1:0

plot "< awk '{print $1, $3==\"on\"? 1 : 0; }' "\
        using 1:2 notitle with steps
######

Wie muss ich fs20.gplot verändern?

MfG
Ingo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-
RPi4/Raspbian, CUL V3 (ca. 30 HomeMatic-devices), LAN (HarmonyHub, alexa etc.).  Fördermitglied des FHEM e.V.

UliM

                                                   

Fuer jeden der Motoren sollte eine Zeile wie:

plot "< awk '/Motor1/{print $1, $3==\"on\"? 1 : 0; }' "\ using 1:2
title Motor1 with steps

eingefuegt werden (und die alte "plot" Zeile entfernt werden).
Falls man das gnuplot-scroll oder SVG pllotmode verwendet, dann wird
im #FileLog Abschnitt auch jeweils eine Zeile

#FileLog 3:Motor1:0:fld[2]eq"on"?1:0

benoetigt (die "alte" Zeile in diesem Abschnitt bitte entfernen).
Falls die Motoren gleichzeitig geschaltet werden, dann kann man statt
1  unterschiedliche Werte wie z.Bsp 0.3, 0.6 und 0.9 nehmen, siehe
auch mpiri.gplot.

Gruss,
  Rudi.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-
RPi4/Raspbian, CUL V3 (ca. 30 HomeMatic-devices), LAN (HarmonyHub, alexa etc.).  Fördermitglied des FHEM e.V.