ソースを参照

add new files

hmetzner 7 年 前
コミット
00fa3079b1
共有3 個のファイルを変更した2064 個の追加0 個の削除を含む
  1. 2025 0
      fhem/core/FHEM/98_SmarterCoffee.pm
  2. 19 0
      fhem/core/www/gplot/SVG_Logfile_1.gplot
  3. 20 0
      fhem/core/www/gplot/ku.Tablet.gplot

ファイルの差分が大きいため隠しています
+ 2025 - 0
fhem/core/FHEM/98_SmarterCoffee.pm


+ 19 - 0
fhem/core/www/gplot/SVG_Logfile_1.gplot

@@ -0,0 +1,19 @@
+############################
+# Template .gplot file for creating a new SVG instance
+
+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 '<TL>'
+set ylabel "Humidity"
+set y2label "Temperature"
+set grid
+set ytics
+set y2tics
+
+#FileLog 4:RegExp::
+
+plot "<IN>" using 1:2 title 'Line 1' with lines

+ 20 - 0
fhem/core/www/gplot/ku.Tablet.gplot

@@ -0,0 +1,20 @@
+# Created by FHEM/98_SVG.pm, 2018-10-29 11:00:46
+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 '<L1>'
+set ytics 
+set y2tics ("plugged" 1,"unplugged" 0)
+set grid
+set ylabel ""
+set y2label ""
+set yrange [0:100]
+set y2range [-0.2:1.2]
+
+#DBLogging ku.Tablet:battery_level
+#DBLogging ku.Tablet:power:::$val=($val=~"unplugged"?0:1)
+
+plot "<IN>" using 1:2 axes x1y1 title 'Battery' ls l0 lw 1 with lines,\
+     "<IN>" using 1:2 axes x1y2 title 'Power' ls l1 lw 1 with lines