1 -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
4 module("luci.statistics.rrdtool.definitions.iwinfo", package.seeall)
6 function rrdargs( graph, plugin, plugin_instance )
9 -- signal/noise diagram
12 title = "%H: Signal and noise on %pi",
14 number_format = "%5.1lf dBm",
16 types = { "signal_noise", "signal_power" },
34 -- signal quality diagram
37 title = "%H: Signal quality on %pi",
39 number_format = "%3.0lf",
41 types = { "signal_quality" },
57 title = "%H: Average phy rate on %pi",
59 number_format = "%5.1lf%sBit/s",
61 types = { "bitrate" },
72 -- associated stations
75 title = "%H: Associated stations on %pi",
78 alt_autoscale_max = true,
79 number_format = "%3.0lf",
81 types = { "stations" },
91 return { snr, quality, bitrate, stations }