luci-app-statistics: add advice about data directory permissions
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / sensors.lua
1 -- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.statistics.rrdtool.definitions.sensors", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance )
7         return {
8                 {
9                         per_instance = true,
10                         title = "%H: %pi - %di",
11                         vlabel = "\176C",
12                         number_format = "%4.1lf\176C",
13                         data = {
14                                 types = { "temperature" },
15                                 options = {
16                                         temperature__value = {
17                                                 color = "ff0000",
18                                                 title = "Temperature"
19                                         }
20                                 }
21                         }
22                 }
23         }
24 end