syntex-automation
Advanced tools
Comparing version 1.0.2-b1 to 1.0.2-b2
12
main.js
@@ -22,12 +22,12 @@ const EventEmitter = require('events'), request = require('request'); | ||
sendToAutomationServer(values); | ||
sendToAutomationServer(reciever.id, reciever.letters, values); | ||
} | ||
sendToAutomationServer(values) | ||
sendToAutomationServer(id, letters, values) | ||
{ | ||
var url = 'http://localhost:1777/update-automation', first = true; | ||
var url = 'http://localhost:1777/update-automation?id=' + id + '&letters=' + letters; | ||
for(const value in Object.keys(values)) | ||
for(const value of Object.keys(values)) | ||
{ | ||
url += (first ? '?' : '&') + value + '=' + values[value]; | ||
url += '&' + value + '=' + values[value]; | ||
} | ||
@@ -40,3 +40,3 @@ | ||
}; | ||
request(theRequest, () => {}); | ||
@@ -43,0 +43,0 @@ } |
{ | ||
"name": "syntex-automation", | ||
"version": "1.0.2-b1", | ||
"version": "1.0.2-b2", | ||
"description": "An automation system for your smart home", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1742