|
@@ -18,7 +18,7 @@ module.exports = function(RED) {
|
|
|
|
|
|
var node_name;
|
|
var node_name;
|
|
if (typeof this.name !== "undefined" ) {
|
|
if (typeof this.name !== "undefined" ) {
|
|
- node_name = this.name.replace(" ", "_");
|
|
|
|
|
|
+ node_name = this.name.replace(/\s/g, "_");
|
|
} else {
|
|
} else {
|
|
node_name = this.id;
|
|
node_name = this.id;
|
|
}
|
|
}
|
|
@@ -161,6 +161,8 @@ module.exports = function(RED) {
|
|
var state;
|
|
var state;
|
|
var status = {};
|
|
var status = {};
|
|
|
|
|
|
|
|
+ current = parseFloat((current).toFixed(1));
|
|
|
|
+
|
|
var date = new Date();
|
|
var date = new Date();
|
|
var current_mins = date.getHours()*60 + date.getMinutes();
|
|
var current_mins = date.getHours()*60 + date.getMinutes();
|
|
|
|
|