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:
Ben Hardill 2013-11-24 13:48:14 +00:00
parent e830c6b262
commit 6457ef0ca6
2 changed files with 12 additions and 2 deletions

View File

@ -106,6 +106,16 @@
},
labelStyle: function() { // sets the class to apply to the label
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>

View File

@ -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
npm install sensortag@https://api.github.com/repos/hardillb/node-sensortag/tarball
npm install sensortag