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
30 types = { "signal_noise", "signal_power" },
32 -- special options for single data lines
35 overlay = true, -- don't summarize
36 color = "0000ff" -- power is blue
40 overlay = true, -- don't summarize
41 color = "ff0000" -- noise is red
49 -- signal quality diagram
53 -- draw this diagram for each data instance
56 -- diagram data description
58 types = { "signal_quality" },
60 -- special options for single data lines
63 noarea = true, -- don't draw area
64 color = "0000ff" -- quality is blue
70 return { snr, quality }