From 45b7844be9c52d7b424509ca1682e4427e0147a0 Mon Sep 17 00:00:00 2001 From: juggledad Date: Sat, 27 Aug 2016 05:59:07 -0400 Subject: [PATCH 1/2] Update 98-ds18b20.js --- 98-ds18b20.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/98-ds18b20.js b/98-ds18b20.js index 2b634b4..db6d46c 100644 --- a/98-ds18b20.js +++ b/98-ds18b20.js @@ -14,6 +14,8 @@ module.exports = function(RED) { // TODO error handling sense.temperature(node.sensorid, function(err, value) { var msg = { payload: value }; + msg.sensorid = node.sensorid; + msg.topic = node.name; node.send(msg); }); } From 1db0532e3b95aa055f3aa755873fbf358a3944ea Mon Sep 17 00:00:00 2001 From: juggledad Date: Sat, 27 Aug 2016 06:00:47 -0400 Subject: [PATCH 2/2] added change issue: Problem with custom httpAdminRoot addd the change suggested by @lpandolfini --- 98-ds18b20.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/98-ds18b20.html b/98-ds18b20.html index 34d437e..0b4099c 100644 --- a/98-ds18b20.html +++ b/98-ds18b20.html @@ -18,7 +18,7 @@ }, oneditprepare: function() { var configuredSensorId = this.sensorid; - $.getJSON('/sensors/1wire/',function(data) { + $.getJSON('sensors/1wire/',function(data) { $.each(data, function( index, value ) { var isSelected = configuredSensorId === value; $("#node-input-sensorid").append(