3 Luci statistics - wireless plugin diagram definition
4 (c) 2011 Jo-Philipp Wich <xm@subsignal.org>
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.iwinfo", package.seeall)
18 function rrdargs( graph, plugin, plugin_instance )
21 -- signal/noise diagram
24 title = "%H: Signal and noise on %pi",
26 number_format = "%5.1lf dBm",
28 types = { "signal_noise", "signal_power" },
46 -- signal quality diagram
49 title = "%H: Signal quality on %pi",
51 number_format = "%3.0lf",
53 types = { "signal_quality" },
69 title = "%H: Average phy rate on %pi",
71 number_format = "%5.1lf%sBit/s",
73 types = { "bitrate" },
84 -- associated stations
87 title = "%H: Associated stations on %pi",
89 number_format = "%3.0lf",
91 types = { "stations" },
101 return { snr, quality, bitrate, stations }