install

Install OpenRemote on Raspberry Pi

My Raspberry Pi OS is Raspbian Wheezy (Hard Float). Therefore I am using Java SE 8 for ARM Early Access which can have stability and compatibility issues. The instruction for installing Java in R-Pi can be found here.

The installation of Java can be checked by issuing the following command in the terminal:
$ which java (where is the java installed?)
$ java -version (what version has been installed?)

After getting the directory of java, JAVA_HOME environment variable has to be configured by adding the following line to /etc/environment:
JAVA_HOME="/opt/jdk1.8.0"
There are other stuffs to be configured as well. Refer instructions in the Reference below.
Reference:
http://www.savagehomeautomation.com/projects/raspberry-pi-installing-oracle-java-se-8-with-javafx-develop.html
http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Install+Controller+on+Raspberry+Pi

Go to the open remote bin directory and do a change mode to make the bash file executable.
$ sudo chmod +x openremote.sh

Finally, run the controller by issuing the following command:
$ ./openremote.sh run

Go to http://localhost:8080/controller will show the default controller management page. Log in and sync with the Online Designer.

However Midori or Chromium don’t seem to be able to display the web console and it will hang for forever.

The only way to solve this is to access the web console from another PC from the same network by accessing R-Pi IP address, for example : http://10.0.0.132:8080/controller

How to Install Open Remote in your Windows

1. Check / Install Java

Java (JDK) may have been installed in your system and to check that, do a quick check by running cmd and type in >java -version. If it is already in your system, it will show something like this:
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

If it is not found, you should download the latest stable release of Java Development Kit (JDK) from Oracle.

2. Set Up Java Environment

First, get the path of JAVA_HOME. This is normally found under C:\Program Files\Java\jdk1.5.0_xx.
Go to Control Panel > System > Environment Variables > user variables
Click “New” and set JAVA_HOME as variable name and input the path found above as variable value.

3. Install OpenRemote

Get a copy of free OpenRemote controller from http://sourceforge.net/projects/openremote/files/OpenRemote-Controller-2.0.2.zip/download
Go to its directory and enter “openremote run” in the command line window.

That’s it! open remote is running! Go to http://localhost:8080/controller to sync with the Designer or http://localhost:8080/webconsole to view the web console.

Setting the user variable: JAVA_HOME

Setting the user variable: JAVA_HOME