Since the Howto Install instruction from OpenRemote has become a bit messy over time, I here summarised the nessential steps for Raspberry/Z-Way installations. This description is derived from the official OpenRemote documentation. Comments on this instruction are welcome.
Intended use is with Z-Way. It is supposed to run on Rasbian released on 2015-01-31 or later. That distribution comes with Java 8 preinstalled. So that part of the official documentation can be skipped.
CAUTION: At the moment of this writing OpenRemote Controllers are still compiled with JAVA 6. As a consequence the Drools rules engine may not always work properly with the pre-installed Java 8.
So from the command line do the following:
Code: Select all
$ export JAVA_HOME=/usr
Code: Select all
sudo unzip OpenRemote-Controller-2.1.0.zip -d /opt
sudo mv /opt/OpenRemote-Controller-2.1.0 /opt/openremote
Code: Select all
$ cd /opt/openremote/bin
Code: Select all
$ sudo chmod +x openremote.sh
Create with editor nano a new script openremote.sh, and copy the code below to that file.
Code: Select all
$ sudo nano /etc/init.d/openremote.sh
Code: Select all
#!/bin/sh
### BEGIN INIT INFO
# Provides: openremote
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
cd /opt/openremote/bin
case "$1" in
stop)
echo "Stopping OpenRemote Controller..."
/opt/openremote/bin/openremote.sh stop > /dev/null 2>&1 &
;;
start)
# start OpenRemote in background mode
/opt/openremote/bin/openremote.sh start > /dev/null 2>&1 &
echo "OpenRemote Controller started..."
;;
restart)
$0 stop
sleep 5
$0 start
;;
*)
echo "usage: $0 { start | stop | restart}" >&2
exit 1
;;
esac
Code: Select all
$ sudo chmod +x /etc/init.d/openremote.sh
Code: Select all
$ sudo update-rc.d openremote.sh defaults
Be reminded that you must first get a (free) account for the
- online designer
Synchronise that with your installation http://IP_OF_YOUR_RASPBERRY:8080/controller/.
View the result on a web console with http://IP_OF_YOUR_RASPBERRY:8080/controller/.
Check the OpenRemote site for how to display on Androids and/or iThings.
Any questions about OpenRemote should go to their forums!