luci/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/sensors.lua
Jo-Philipp Wich cff2b99b4f luci-app-statistics: add initial support for collect-mod-sensors
Due to a lack of a test environment this support only covers thermal graphs
so far. Please send the output of "rrdtool info /tmp/rrd/*/sensors-*/*.rrd"
if your system happens to support voltage, power or fanspeed sensors.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-05 15:13:44 +02:00

24 lines
520 B
Lua

-- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.sensors", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
return {
{
per_instance = true,
title = "%H: %pi - %di",
vlabel = "\176C",
number_format = "%4.1lf\176C",
data = {
types = { "temperature" },
options = {
temperature__value = {
color = "ff0000",
title = "Temperature"
}
}
}
}
}
end