72806df8802164c2c8aa19cbbc72cd8d8d50361b
[oweals/luci.git] /
1 /* Licensed to the public under the Apache License 2.0. */
2
3 'use strict';
4
5 return L.Class.extend({
6         title: _('Sensors'),
7
8         rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
9                 return {
10                         per_instance: true,
11                         title: "%H: %pi - %di",
12                         vlabel: "\xb0C",
13                         number_format: "%4.1lf\xb0C",
14                         data: {
15                                 types: [ "temperature" ],
16                                 options: {
17                                         temperature__value: {
18                                                 color: "ff0000",
19                                                 title: "Temperature"
20                                         }
21                                 }
22                         }
23                 };
24         }
25 });