summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua')
-rw-r--r--applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua96
1 files changed, 0 insertions, 96 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua
deleted file mode 100644
index 53f4c7a40c..0000000000
--- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua
+++ /dev/null
@@ -1,96 +0,0 @@
--- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
--- Licensed to the public under the Apache License 2.0.
-
-module("luci.statistics.rrdtool.definitions.iwinfo", package.seeall)
-
-function item()
- return luci.i18n.translate("Wireless")
-end
-
-function rrdargs( graph, plugin, plugin_instance )
-
- --
- -- signal/noise diagram
- --
- local snr = {
- title = "%H: Signal and noise on %pi",
- vlabel = "dBm",
- number_format = "%5.1lf dBm",
- data = {
- types = { "signal_noise", "signal_power" },
- options = {
- signal_power = {
- title = "Signal",
- overlay = true,
- color = "0000ff"
- },
- signal_noise = {
- title = "Noise",
- overlay = true,
- color = "ff0000"
- }
- }
- }
- }
-
-
- --
- -- signal quality diagram
- --
- local quality = {
- title = "%H: Signal quality on %pi",
- vlabel = "Quality",
- number_format = "%3.0lf",
- data = {
- types = { "signal_quality" },
- options = {
- signal_quality = {
- title = "Quality",
- noarea = true,
- color = "0000ff"
- }
- }
- }
- }
-
-
- --
- -- phy rate diagram
- --
- local bitrate = {
- title = "%H: Average phy rate on %pi",
- vlabel = "MBit/s",
- number_format = "%5.1lf%sBit/s",
- data = {
- types = { "bitrate" },
- options = {
- bitrate = {
- title = "Rate",
- color = "00ff00"
- }
- }
- }
- }
-
- --
- -- associated stations
- --
- local stations = {
- title = "%H: Associated stations on %pi",
- vlabel = "Stations",
- y_min = "0",
- alt_autoscale_max = true,
- number_format = "%3.0lf",
- data = {
- types = { "stations" },
- options = {
- stations = {
- title = "Stations",
- color = "0000ff"
- }
- }
- }
- }
-
- return { snr, quality, bitrate, stations }
-end