This page last changed on Feb 12, 2014 by m.gopikrishnan.

I am planning to install and run the openremote controller and other components on a Stratus plug computer which is an ARM CPU based computer running debian linux. Has anybody done this already? Looking for help in this regard. Please help.

If it's running Debian, you should be able to just "apt-get" the Java VM onto it, and away you go - although you may need to acquire some other libraries if the default distribution wasn't built statically - but on mine I just grabbed the Java VM, downloaded the OR zip, and ran the "openremote.sh start" script and off it went - although I did have to alter a few things to get the webserver running as I run other web servers on the ports that OR defaults to

The main questions is how much RAM does the plug have?

I have a NAS (also running Debian) with 6GB of RAM, and the Java process running OR eats 3%-5% of the memory - which is about 300MB of RAM.

If it doesn't have lots of RAM, it may swap a lot, and if it's a plug device, I imagine it would be using an SD Card as it's filesystem, and depending on how swappy the Debian install was set to be, it may wear your SD card a bit?

Posted by ptruman at Feb 12, 2014 14:37

Thank you very much Mr. Truman. I just saw your reply now. The Plug has only 512MB RAM. If it does not run anything else except Open Remote and its accessory components like Java VM, do you think it will still swap a lot? Thanks again for the prompt reply. I shall now download the OR zip, install it and see how it goes.

Posted by m.gopikrishnan at Feb 14, 2014 10:54

512MB should be enough.

Posted by juha at Feb 14, 2014 10:56

Not a problem - did it work?

You can google "Linux swappiness" and amend how much swapping the thing can do, but that may affect performance depending on RAM utilization - but given Juha says 512MB should be enough, you should be ok

(just don't go installing too many other things on it)

Posted by ptruman at Feb 18, 2014 11:20

Thanks everybody and sorry for the late response. I have installed "Oracle Embedded Java SE 6" and OpenRemote controller without any hiccups. OpenRemote is able to start up. I need to configure it and continuosly run it. Shall do so and give feedback.
Thanks again.

Posted by m.gopikrishnan at Feb 22, 2014 06:08

I have come back with more clarifications. Please help me.

Now, I am able to start up the open remote controller on the plug. It starts running but displays a few INFO messages in the middle of its startup for which I need help to sort out what it says. I am giving below the console commands and output messages:
////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
root@debian:~# export JAVA_HOME=/root/java/ejre
root@debian:~# cd Open*
root@debian:~/OpenRemoteController# pwd
/root/OpenRemoteController
root@debian:~/OpenRemoteController# cd OR
root@debian:~/OpenRemoteController/OR# cd bin
root@debian:~/OpenRemoteController/OR/bin# ./openremote.sh run
Using CATALINA_BASE: /root/OpenRemoteController/OR
Using CATALINA_HOME: /root/OpenRemoteController/OR
Using CATALINA_TMPDIR: /root/OpenRemoteController/OR/temp
Using JRE_HOME: /root/java/ejre

---- Logging ----------------------------------------------------------

Console (stdout) threshold [CONTROLLER_CONSOLE_THRESHOLD]: INFO

System logs:

  • Controller startup log [CONTROLLER_STARTUP_LOG_LEVEL]: DEBUG

-----------------------------------------------------------------------
Feb 22, 2014 12:08:53 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /root/OpenRemoteController/OR/webapps/controller/WEB-INF/lib/native
Feb 22, 2014 12:08:54 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 22, 2014 12:08:54 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6968 ms
Feb 22, 2014 12:08:55 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 22, 2014 12:08:55 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Feb 22, 2014 12:08:55 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive webconsole.war
Feb 22, 2014 12:09:06 PM org.openremote.controller.bootstrap.Startup redirectJULtoLog4j
INFO: Initialized JUL to LOG4J Redirector.
INFO 2014-02-22 12:09:18,587 :

********************************************************************************

Controller definition was not found in this OpenRemote Controller instance.

If you are starting the controller for the first time, please use your web
browser to connect to the controller home page and synchronize it with your
online account.

********************************************************************************

Could not find a controller definition to load at path '../webapps/controller/controller.xml' (for version 2.0)
INFO 2014-02-22 12:09:18,593 : Controller Definition File Watcher for Default Deployer started.
Feb 22, 2014 12:09:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 22, 2014 12:09:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 27537 ms

With this message, the controller seems to run on.

My plug computer has an ethernet interface. This I connect direct to my laptop's ethernet. I can see the addresses are 10.10.1.1 for the laptop and 10.10.1.2 for the plug computer. I can ping each other successfully. So the connection is very much ON.

Now when I attempt to do http://10.10.1.2:8688/controller from my browser on the laptop, it fails. But again if I do just http://10.10.1.2 on the browser it connects successfully and shows the "It works" message.

What is the mistake that I have made in installation that resulted in this behavior and how to correct it. Please help me.

Posted by m.gopikrishnan at Feb 22, 2014 12:25

Sorry folks. I could get the controller home page on the browser with 8080 port. So please only clarify on the startup INFO messages that seem to indicate that something is wrong.

Posted by m.gopikrishnan at Feb 22, 2014 12:33

Further to my last post, in spite of the INFO type of messages coming at startup time, looks like the openremote server is running on the plug. Now I can connect to the controller from a laptop using the browser, and sync with the designer component after supplying username and password. Also I could access the controller from an android app and got a sample panel to display on it.

Thanks for the handholding so far. Now I have to go ahead and figure out how to connect to some z-wave sensors and switches and design some control apps. Can u please point me to some information on getting started with these?

Posted by m.gopikrishnan at Feb 24, 2014 13:42

Try the search function at the bottom of the forum page with the obvious terms:

z-wave how

Posted by pz1 at Feb 24, 2014 14:59
Document generated by Confluence on Jun 05, 2016 09:34