Skip to content
Java library for communicating with a Rainforest EMU-2 under Linux via USB serial.
Java
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.
src/main
.classpath
.gitignore
LICENSE
README.md
pom.xml

README.md

JavaRainforestEMU-2

Java library for communicating with a Rainforest EMU-2 under Linux via USB serial.

I'm just getting a start on this library, if you have experience with these modules, please don't hesitate to contribute!

A quick guide to using the software.

Compiling:

 You will need Apache Maven installed, I'm using that for the build management.
 I am using the rxtx-osgi serial library https://mvnrepository.com/artifact/org.rxtx/rxtx-osgi?repo=opennms
      Under Ubuntu I needed to install librxtx-java version 2.2pre2 (which is why I used the OSGi variant)
      You might need to experiment with different versions of rxtx on other platforms.
 
 To build the package and create a runnable command line jar in ./target
     run "mvn clean install"
       
 To execute 
     java -jar JavaRainforestEMU2.{version}.jar -p /dev/ttyACM0

     (You may need to change the port it's connecting to, mine was ttyACM0)

 Required libraries are in the ./target/lib folder, if you want to copy it elsewhere. 
     
 The -c option will eventually cause the command line app to send it's JSON output to my home automation controller,
 so that I can log and manage household power use automagically.  It's also on github, feel free to take a look.

PosiCat

You can’t perform that action at this time.