Skip to content

Instantly share code, notes, and snippets.

@manuquentin
Last active December 20, 2015 00:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save manuquentin/6042773 to your computer and use it in GitHub Desktop.
Save manuquentin/6042773 to your computer and use it in GitHub Desktop.
app.post('/detect', function (req, res) {
// ...
if(alarmArmed){
intrusion = 1;
alarmArmed = false;
}
// ...
});
function dispatchInfos(){
// ....
currentSocket.emit('status', {
// ...
intrusion: intrusion
});
//...
intrusion = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment