Skip to content
Just example how to work with GPIO from JVM
Java Groovy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
src/main/java/com/github/igorsuhorukov/alarmsys
.gitignore
AlarmSystem.groovy
README.md
pom.xml

README.md

alarm-system

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=...YOUR_EMAIL...@mail.ru -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=...YOUR_EMAIL...@mail.ru -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

Raspberry Pi 3 with connected reed switch: Raspberry Pi 3 with connected reed switch

HawtIo web interface: alarm routes GPIO route Webcam to email route

JVM metrics and threads: JVM metrics on RPI JVM threads on RPI

You can’t perform that action at this time.