sensors.lua 520 B

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