X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-statistics%2Fluasrc%2Fstatistics%2Frrdtool%2Fdefinitions%2Fapcups.lua;fp=applications%2Fluci-app-statistics%2Fluasrc%2Fstatistics%2Frrdtool%2Fdefinitions%2Fapcups.lua;h=2a8aceec0863dd09548174793d26a53099dc2801;hp=04eee9305124d937c3a4748a1b0d87b1f1dd6e4f;hb=176f5fb94cd06acaa62f2f3174476f421a430fd8;hpb=0187bdcd826251b500a4cf8a12d71b8d50c54d6d diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua index 04eee9305..2a8aceec0 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua @@ -5,18 +5,34 @@ module("luci.statistics.rrdtool.definitions.apcups",package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) + local voltagesdc = { + title = "%H: Voltages on APC UPS - Battery", + vlabel = "Volts DC", + alt_autoscale = true, + number_format = "%5.1lfV", + data = { + instances = { + voltage = { "battery" } + }, + + options = { + voltage = { title = "Battery voltage", noarea=true } + } + } + } + local voltages = { - title = "%H: Voltages on APC UPS ", - vlabel = "V", + title = "%H: Voltages on APC UPS - AC", + vlabel = "Volts AC", + alt_autoscale = true, number_format = "%5.1lfV", data = { instances = { - voltage = { "battery", "input", "output" } + voltage = { "input", "output" } }, options = { voltage_output = { color = "00e000", title = "Output voltage", noarea=true, overlay=true }, - voltage_battery = { color = "0000ff", title = "Battery voltage", noarea=true, overlay=true }, voltage_input = { color = "ffb000", title = "Input voltage", noarea=true, overlay=true } } } @@ -97,5 +113,5 @@ function rrdargs( graph, plugin, plugin_instance, dtype ) } } - return { voltages, percentload, charge_percent, temperature, timeleft, frequency } + return { voltages, voltagesdc, percentload, charge_percent, temperature, timeleft, frequency } end