Hallo, ist es in FHEM möglich einen Verlauf für einzelne Kalenderwochen in einer Wochenansicht zu plotten? Hier ein Beispiel:
https://blog.clevertap.com/wp-content/uploads/2016/02/time-series-weekly-mobile-app.png (https://blog.clevertap.com/wp-content/uploads/2016/02/time-series-weekly-mobile-app.png)
Hintergrund ist, dass ich gerne meine Fahrt zur Arbeit analysieren möchte. Hierzu logge ich mit dem Traffic Modul das Delay zur Arbeit und zurück. Ich möchte ersehen ob es für bestimmte Wochentage Sinn macht zu bestimmten Zeiten loszufahren.
Danke im Voraus!
Christian
Gesendet von iPhone mit Tapatalk
Da gibt es logProxy mit offset, habe es aber nie getestet.
Weiterhin kann man auch mit fixedRange mehrere SVGs erstellen, und die Daten per Copy&Paste (vom SVG-Menue) rueberkopieren. Das habe ich getestet.
Hallo,
"Weiterhin kann man auch mit fixedRange mehrere SVGs erstellen"
würde nach meinem Verständnis so aussehen:
attr SVG1 fixedrange week
attr SVG2 fixedrange week -1
attr SVG3 fixedrange week -2
...
So habe ich mehrere SVGs und jedes zeigt eine Woche.
"die Daten per Copy&Paste (vom SVG-Menue) rueberkopieren"
verstehe ich nicht. Probiert habe ich folgendes:
set SVG1 copyGplotFile resultiert in "this is already a unique gplot file"
In der Raw definition habe ich folgendes versucht:
defmod SVG_FileLog_traffic_hin_1 SVG FileLog_traffic_hin:SVG_FileLog_traffic_hin_1:CURRENT
attr SVG_FileLog_traffic_hin_1 fixedrange week -1
attr SVG_FileLog_traffic_hin_1 plotsize 1200,300
attr SVG_FileLog_traffic_hin_1 room Verkehr
setstate SVG_FileLog_traffic_hin_1 initialized
defmod SVG_FileLog_traffic_hin_1 SVG FileLog_traffic_hin:SVG_FileLog_traffic_hin_1:CURRENT
attr SVG_FileLog_traffic_hin_1 fixedrange week
attr SVG_FileLog_traffic_hin_1 plotsize 1200,300
attr SVG_FileLog_traffic_hin_1 room Verkehr
setstate SVG_FileLog_traffic_hin_1 initialized
hier kommt es zu keiner Fehlermeldung, angezeigt wird aber nur ein Plot.
Kannst du mir bitte genauer beschreiben was du meinst.
Danke
Im SVG-Plot das zur Quelle gehoerenden Text (aka Diagram label, rechts oben) mit Maus anklicken, und Copy auswaehlen. Danach im Ziel-SVG-Plot einen Text anclicken, und Paste auswaehlen.
Hallo,
ich habe mit logProxy folgendes umgesetzt, vielleicht für andere interessant:
# Created by FHEM/98_SVG.pm, 2016-11-13 00:02:49
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 'Hinweg'
set ytics
set y2tics
set grid ytics
set ylabel ""
set y2label ""
#lp FileLog:FileLog_traffic_hin:4:traffic_hin.delay::
#lp FileLog:FileLog_traffic_hin,offset=+60*60*24*7:4:traffic_hin.delay::
#lp FileLog:FileLog_traffic_hin,offset=+60*60*24*14:4:traffic_hin.delay::
#lp FileLog:FileLog_traffic_hin,offset=+60*60*24*21:4:traffic_hin.delay::
#lp FileLog:FileLog_traffic_hin,offset=+60*60*24*28:4:traffic_hin.delay::
#lp FileLog:FileLog_traffic_hin,offset=+60*60*24*35:4:traffic_hin.delay::
#lp FileLog:FileLog_traffic_hin,offset=+60*60*24*42:4:traffic_hin.delay::
#lp FileLog:FileLog_traffic_hin,offset=+60*60*24*49:4:traffic_hin.delay::
#lp FileLog:FileLog_traffic_hin,offset=+60*60*24*56:4:traffic_hin.delay::
#lp FileLog:FileLog_traffic_hin,offset=+60*60*24*63:4:traffic_hin.delay::
#lp FileLog:FileLog_traffic_hin,offset=+60*60*24*70:4:traffic_hin.delay::
plot "<IN>" using 1:2 axes x1y1 title 'aktuelle Woche' ls l0 lw 0.5 with steps,\
"<IN>" using 1:2 axes x1y1 title 'vor 1 Woche' ls l1 lw 0.5 with steps,\
"<IN>" using 1:2 axes x1y1 title 'vor 2 Wochen' ls l2 lw 0.5 with steps,\
"<IN>" using 1:2 axes x1y1 title 'vor 3 Wochen' ls l3 lw 0.5 with steps,\
"<IN>" using 1:2 axes x1y1 title 'vor 4 Wochen' ls l4 lw 0.5 with steps,\
"<IN>" using 1:2 axes x1y1 title 'vor 5 Wochen' ls l5 lw 0.5 with steps,\
"<IN>" using 1:2 axes x1y1 title 'vor 6 Wochen' ls l6 lw 0.5 with steps,\
"<IN>" using 1:2 axes x1y1 title 'vor 7 Wochen' ls l7 lw 0.5 with steps,\
"<IN>" using 1:2 axes x1y1 title 'vor 8 Wochen' ls l8 lw 0.5 with steps,\
"<IN>" using 1:2 axes x1y1 title 'vor 9 Wochen' ls l0dot lw 0.5 with steps,\
"<IN>" using 1:2 axes x1y1 title 'vor 10 Wochen' ls l1dot lw 0.5 with steps
Funktioniert wie gewünscht.
Vielen Dank für die Hinweise!
Gruß
Christian