don't log success and don't pass 'time' as an API parameter for emoncms-in

This commit is contained in:
Glyn Hudson 2015-10-27 15:24:45 +00:00
parent dc3c1b7cc4
commit 6bf034cabb
1 changed files with 0 additions and 5 deletions

View File

@ -56,7 +56,6 @@ module.exports = function(RED) {
if (typeof msg.time !== 'undefined') {
this.url += '&time=' + msg.time;
}
node.log("[emoncms] "+this.url);
http.get(this.url, function(res) {
msg.rc = res.statusCode;
msg.payload = "";
@ -99,10 +98,6 @@ module.exports = function(RED) {
if (feedid !== "") {
this.url += '&id=' + feedid;
}
if (typeof msg.payload !== 'undefined') {
this.url += '&time=' + msg.payload;
}
node.log("[emoncms] "+this.url);
http.get(this.url, function(res) {
msg.rc = res.statusCode;
msg.payload = "";