This commit is contained in:
2017-04-10 21:51:07 +02:00
parent 771e325ae3
commit 8dd7992043
12 changed files with 41 additions and 29 deletions
+5 -2
View File
@@ -65,7 +65,7 @@ function connect(item) {
function () {
Log.log('Motion detected');
var callOptions = item.on.motion.call;
doMotionCall(callOptions);
doMotionCall(HOST, callOptions);
}
);
@@ -77,7 +77,10 @@ function connect(item) {
}
/* private */
function doMotionCall(options) {
function doMotionCall(host, options) {
const HOST = host;
callback = function(response) {
var str = '';
+1 -1
View File
@@ -8,7 +8,7 @@
"motion": {
"call": {
"type": "web",
"host": "hobu",
"host": "hobu.local",
"port": "2999",
"path": "/home/motion/detected/in/1/"
}