applications/luci-statistics: remove plugin overview pages, jump to first plugin...
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool / definitions / wireless.lua
index 6c68bb2..7daddab 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - wireless plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.wireless", package.seeall)
 
 function rrdargs( graph, host, plugin, plugin_instance )
@@ -7,16 +22,12 @@ function rrdargs( graph, host, plugin, plugin_instance )
        --
        local snr = {
 
-               -- diagram title
-               title   = "Signal / Noise",
-
-               -- vertical label
-               vlabel  = "dBm",
-
                -- draw this diagram for each data instance
                per_instance = true,
 
                -- diagram data description
+               title = "%H: Signal to Noise Ratio on %pi",
+               vlabel = "dBm",
                data = {
                        types = { "signal_noise", "signal_power" },
 
@@ -24,12 +35,14 @@ function rrdargs( graph, host, plugin, plugin_instance )
                        options = {
                                signal_power = {
                                        overlay = true,         -- don't summarize
-                                       color   = "0000ff"      -- power is blue
+                                       color   = "0000ff",     -- power is blue
+                                       title = "Signal",
                                },
 
                                signal_noise = {
                                        overlay = true,         -- don't summarize
-                                       color   = "ff0000"      -- noise is red
+                                       color   = "ff0000",     -- noise is red
+                                       title = "Noise",
                                }
                        }
                }
@@ -41,14 +54,10 @@ function rrdargs( graph, host, plugin, plugin_instance )
        --
        local quality = {
 
-               -- diagram title
-               title   = "Signalqualitaet",
-
-               -- vertical label
-               vlabel  = "n/5",
-
                -- draw this diagram for each data instance
                per_instance = true,
+               title = "%H: Signal Quality on %pi",
+               vlabel = "n",
 
                -- diagram data description
                data = {
@@ -58,7 +67,8 @@ function rrdargs( graph, host, plugin, plugin_instance )
                        options = {
                                signal_quality = {
                                        noarea = true,          -- don't draw area
-                                       color  = "0000ff"       -- quality is blue
+                                       color  = "0000ff",      -- quality is blue
+                                       title = "Signal Quality"
                                }
                        }
                }