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.
Type Name Latest commit message Commit time
Failed to load latest commit information.


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 -Dpassword=******* -jar groovy-grape-aether- AlarmSystem.groovy

Or you can run the same stuff on plain Java (single java source code file):

java -Dpassword=******* -DscriptPath= -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.