mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
updated the readme now the standard sensortag node works and added a oneditsave to convert the mac address to the correct format
This commit is contained in:
parent
e830c6b262
commit
6457ef0ca6
@ -106,6 +106,16 @@
|
|||||||
},
|
},
|
||||||
labelStyle: function() { // sets the class to apply to the label
|
labelStyle: function() { // sets the class to apply to the label
|
||||||
return this.name?"node_label_italic":"";
|
return this.name?"node_label_italic":"";
|
||||||
|
},
|
||||||
|
oneditsave: function() {
|
||||||
|
var mac = $("#node-input-uuid").val();
|
||||||
|
//nasty hack as I can't get global replace to work
|
||||||
|
mac = mac.replace(/:/gi,'');
|
||||||
|
mac = mac.replace(/:/gi,'');
|
||||||
|
mac = mac.replace(/:/gi,'');
|
||||||
|
mac = mac.replace(/:/gi,'');
|
||||||
|
mac = mac.toLowerCase();
|
||||||
|
$("#node-input-uuid").val(mac);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
This currently requires a slightly modified sensortag library
|
This currently requires the sensortag library
|
||||||
|
|
||||||
To install use the following command in the Node-Red directory
|
To install use the following command in the Node-Red directory
|
||||||
|
|
||||||
npm install sensortag@https://api.github.com/repos/hardillb/node-sensortag/tarball
|
npm install sensortag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user