show hours
authorAndrew Tridgell <tridge@samba.org>
Sun, 17 Oct 2010 07:23:20 +0000 (18:23 +1100)
committerAndrew Tridgell <tridge@samba.org>
Sun, 17 Oct 2010 07:23:20 +0000 (18:23 +1100)
added note on annotations

live/graphs.js
live/index.html

index 1d230eb85bd5a3479cec5e5e52b4c9708d23be82..62f524a6f7921c28634af3b231e2797a17e10336 100644 (file)
@@ -1116,12 +1116,30 @@ function show_graphs() {
                  "E-Total",
                  { includeZero: false, missingValue: 0 });
 
+  graph_csv_files("Hours switched on (h) [h-Total]",
+                 csv_files(),
+                 "h-Total",
+                 { includeZero: false, missingValue: 0 });
+
+  function ratio(v) {
+    if (v[1] == 0) {
+      return null;
+    }
+    return v[0]/v[1];
+  }
+
+  graph_csv_files_func("Lifetime production per hour (kWh/h) [E-total/h-Total]",
+                      csv_files(),
+                      [ "E-Total", "h-Total" ],
+                      ratio, null,
+                      { includeZero: false, series_base: 'Prod' });
+
   graph_csv_files("Fan voltage for each inverter (V) [UFan]",
                  csv_files(),
                  "U-Fan",
                  { includeZero: true, 
                    avoidMinZero: true,
-                   valueRange: [0, 12] });
+                   valueRange: [0, 16] });
 
   load_annotations();
 
index 655821af2f9cec1393423bd6911eed591f7c2424..724816db6b5cdb3f184a695a716b9b8f6e69a32f 100755 (executable)
@@ -45,6 +45,7 @@ resolution. For full data use Firefox or Chrome.</p>
 <li>You can change the rolling average value using the selection box
   in the bottom left corner of each graph.</li>
 <li>Use the green +/- icons to hide or show a particular graph</li>
+<li>Hover your mouse over the '!' annotations to view them</li>
 </ul>