Fixes
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"motion": {
|
||||
"call": {
|
||||
"type": "web",
|
||||
"host": "hobu",
|
||||
"host": "hobu.local",
|
||||
"port": "2999",
|
||||
"path": "/home/motion/detected/in/1/"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user