From 6457ef0ca6c59e4ba19073849ed982df1f5aa251 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Sun, 24 Nov 2013 13:48:14 +0000 Subject: [PATCH] updated the readme now the standard sensortag node works and added a oneditsave to convert the mac address to the correct format --- hardware/sensorTag/79-sensorTag.html | 10 ++++++++++ hardware/sensorTag/README | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hardware/sensorTag/79-sensorTag.html b/hardware/sensorTag/79-sensorTag.html index 1ce0260f..19d21eb8 100644 --- a/hardware/sensorTag/79-sensorTag.html +++ b/hardware/sensorTag/79-sensorTag.html @@ -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); } }); diff --git a/hardware/sensorTag/README b/hardware/sensorTag/README index b524fc69..2d6657ab 100644 --- a/hardware/sensorTag/README +++ b/hardware/sensorTag/README @@ -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