Connect webcam to USB port and reed switch between GPIO №3 and 3.3v pin on RaspberryPI 2/3
Run following command on RPI:
Single groovy source code file:
java -Dlogin=[email protected] -Dpassword=******* -jar groovy-grape-aether-2.4.5.4.jar AlarmSystem.groovy
Or you can run the same stuff on plain Java (single java source code file):
java -Dlogin=[email protected] -Dpassword=******* -DscriptPath=https://raw.githubusercontent.com/igor-suhorukov/alarm-system/master/src/main/java/com/github/igorsuhorukov/alarmsys/AlarmSystem.java -jar java-as-script-1.0.jar