3 Luci statistics - wireless plugin diagram definition
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
16 module("luci.statistics.rrdtool.definitions.wireless", package.seeall)
18 function rrdargs( graph, host, plugin, plugin_instance )
21 -- signal/noise diagram
25 -- draw this diagram for each data instance
28 -- diagram data description
29 title = "%H: Signal to Noise Ratio on %pi",
32 types = { "signal_noise", "signal_power" },
34 -- special options for single data lines
37 overlay = true, -- don't summarize
38 color = "0000ff", -- power is blue
43 overlay = true, -- don't summarize
44 color = "ff0000", -- noise is red
53 -- signal quality diagram
57 -- draw this diagram for each data instance
59 title = "%H: Signal Quality on %pi",
62 -- diagram data description
64 types = { "signal_quality" },
66 -- special options for single data lines
69 noarea = true, -- don't draw area
70 color = "0000ff", -- quality is blue
71 title = "Signal Quality"
77 return { snr, quality }