thermal.js 510 B

123456789101112131415161718192021222324252627
  1. /* Licensed to the public under the Apache License 2.0. */
  2. 'use strict';
  3. 'require baseclass';
  4. return baseclass.extend({
  5. title: _('Thermal'),
  6. rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
  7. return {
  8. title: "%H: Temperature of %pi",
  9. alt_autoscale: true,
  10. vlabel: "Celsius",
  11. number_format: "%3.1lf%s",
  12. data: {
  13. types: [ "temperature" ],
  14. options: {
  15. temperature: {
  16. color: "ff0000",
  17. title: "Temperature",
  18. noarea: true
  19. }
  20. }
  21. }
  22. };
  23. }
  24. });