1 /* Licensed to the public under the Apache License 2.0. */
6 return baseclass.extend({
9 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
11 var types = graph.dataTypes(host, plugin, plugin_instance);
13 if (types.indexOf('temperature') > -1) {
16 title: "%H: %pi - %di",
18 number_format: "%4.1lf\xb0C",
20 types: [ "temperature" ],
30 if (types.indexOf('humidity') > -1) {
33 title: "%H: %pi - %di",
35 number_format: "%4.1lf %%RH",
37 types: [ "humidity" ],
47 if (types.indexOf('voltage') > -1) {
50 title: "%H: %pi - %di",
52 number_format: "%4.1lf V",
64 if (types.indexOf('current') > -1) {
67 title: "%H: %pi - %di",
69 number_format: "%4.1lf A",
81 if (types.indexOf('power') > -1) {
84 title: "%H: %pi - %di",
86 number_format: "%4.1lf W",
98 if (types.indexOf('fanspeed') > -1) {
101 title: "%H: %pi - %di",
103 number_format: "%4lf rpm",
105 types: [ "fanspeed" ],