groovy iot scripts with java libraries
i2cScanner.groovy it's groovy script example show how to get list of i2c devices by groovy/java
install groovy http://groovy-lang.org/download.html to your embedded device (raspberrypi)
How to execute
groovy i2cScanner.groovy
vim ~/.bashrc . ~/.bashrc
export JAVA_OPTS="-Dgroovy.grape.report.downloads=true"