Install instructions (win xp 32 bit/win 7 32 bit): Prerequisites: You have a modeller account. (goto https://composer.openremote.org/demo/login.jsp) You have downloaded(and extracted) open remote controller to your computer (goto http://download.openremote.org/2.0). At the time of writing the downloaded file was OpenRemote-Controller-2.0.0_SNAPSHOT_20110611.zip). The extracted location must contain NO spaces in the directory The steps after the open remote controller install assume you have created some panels and have downloaded the app to your smartphone in order to fully test the install. I also have an irtrans device configured. So I can test the full configuration: smartphone app to open remote controller to irtans to my stereo receiver, and verify everything works NOTE: the machine I want to run open remote controller on does not have an internet connection, so I did everything on an internet connected machine, and then moved the files to the non internet connected machine for the final test. This is of course not required(it is optional), but the reader should be aware the instructions reflect this as overall step 1 and step 2(optional).
Table of Contents 1. Open Remote Controller Installation Instructions on WinXp 32bit and windows 732 bit... 3 Install both Java programs... 8 Setup Environment variables... 8 Verify the Java Install on the command line... 11 Install OpenRemote controller... 12 Verify Open Remote Controller is installed correctly... 14 Verify the open remote app on your smartphone can connect to your open remote controller... 15 2. Transferring open remote controller to a non internet connected computer (optional)... 16 Verifying it works... 17
1. Open Remote Controller Installation Instructions on WinXp 32bit and windows 7 32 bit Download both Java programs Goto: http://www.oracle.com/technetwork/java/javase/downloads/jdk6-jsp-136632.html Click on download button below Download Java SE Development Kit 6u21 This screen shows up:
Click on Java SE Development Kit 6u45 This shows up: For windows XP 32 bit click jdk-6u45-windows-i586.exe
Accept the license agreement at the top. If you don t this will appear: This appears:
Sign up for an account. An email will be sent to your email Go back to http://www.oracle.com/technetwork/java/javase/downloads/jdk6-jsp-136632.html and repeat the above, except sign in this time with your new username (your email address) and password
Save file(jdk-6u45-windows-i586.exe) to a location of your choice Go back to http://www.oracle.com/technetwork/java/javase/downloads/jdk6-jsp-136632.html And follow the above instructions except download the runtime environment(offline version) jre-6u45- windows-i586.exe
Install both Java programs goto where you saved jre-6u45-windows-i586.exe,double click jre-6u45-windows-i586.exe Click thru the java install windows. goto where you saved jdk-6u45-windows-i586.exe. double click jdk-6u45-windows-i586.exe Click thru the java install windows. Setup Environment variables Goto start->control panel->system (the screen below will differ for win XP, but it is similar) Click on advanced system settings in the top left corner. The following will appear:
Click on environment variables: Under system variables, click New Add the variable as per below (assumes version downloaded is 1.6.0_45)
Click OK. Repeat Again for by adding a user variable: Under User variables, click New Add the variable as per below (assumes version downloaded is 1.6.0_45) Click OK.
Click OK again to exit the environment variables screen. Verify the Java Install on the command line Click Start (Start->run for windows xp) Type cmd A command window will open. Check the java version by running on the command line: Java version You should get a response java version 1.6.045 Type echo %JAVA_HOME%
Confirm the above is correct and matches the installed versions you downloaded & installed by going to the directory below The version from the command line should match the directory name above for the jdk Install OpenRemote controller From the command line, goto the directory where you downloaded openremote controller(and unzipped the files). Goto the bin directory. In my case it was: C:\Download\openremote\OpenRemote-Controller-2.0.0_SNAPSHOT_20110611\bin
Type openremote run Hit enter
Verify Open Remote Controller is installed correctly Open internet explorer Enter the url http://localhost:8080/controller/ You should see I entered my MODELER username and password and got this:
This in effect automatically downloaded the file openremote.zip from open remote s website into C:\Download\openremote\OpenRemote-Controller-2.0.0_SNAPSHOT_20110611\webapps\controller and self extracted the files to the above location. Open Remote Controller installation is now complete. The instructions below are for verifying the open remote app on the smartphone is working. (this assumes you have the app and you created some panels) Verify the open remote app on your smartphone can connect to your open remote controller When you run the openremote app on your smartphone, the file : C:\Download\openremote\OpenRemote-Controller-2.0.0_SNAPSHOT_20110611\logs\ controller.log should get some sort of entry. Mine got(because I am not connected to anything(an irtrans) I suppose): [Controller]2014-01-22 21:07:31,783 ERROR [HTTP-Thread-3] org.openremote.controller.protocol.socket.tcpsocketcommand.requestsocket(156) Socket event could not execute java.net.connectexception: Connection timed out: connect at java.net.plainsocketimpl.socketconnect(native Method) at java.net.plainsocketimpl.doconnect(plainsocketimpl.java:351) at java.net.plainsocketimpl.connecttoaddress(plainsocketimpl.java:213) at java.net.plainsocketimpl.connect(plainsocketimpl.java:200) at java.net.sockssocketimpl.connect(sockssocketimpl.java:366) at java.net.socket.connect(socket.java:529)
at java.net.socket.connect(socket.java:478) at java.net.socket.<init>(socket.java:375) at java.net.socket.<init>(socket.java:189) at org.openremote.controller.protocol.socket.tcpsocketcommand.requestsocket(tcpsocketcommand.java:143) at org.openremote.controller.protocol.socket.tcpsocketcommand.send(tcpsocketcommand.java:137) at org.openremote.controller.service.impl.controlcommandserviceimpl.trigger(controlcommandserviceimpl.java:56) at org.openremote.controller.rest.controlcommandrestservlet.dopost(controlcommandrestservlet.java:91) at javax.servlet.http.httpservlet.service(httpservlet.java:637) at javax.servlet.http.httpservlet.service(httpservlet.java:717) at org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:290) at org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) at org.openremote.controller.rest.support.json.jsoncallbackfilter.dofilter(jsoncallbackfilter.java:65) at org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:235) at org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) at org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:78) at org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:77) at org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:235) at org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) at org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:233) at org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:191) at org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:128) at org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) at org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109) at org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:286) at org.apache.coyote.http11.http11processor.process(http11processor.java:845) at org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:583) at org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:354) at java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:895) If you do not have anything in the log, follow the verifying it works in the section below 2. Transferring open remote controller to a non internet connected computer (optional) After I did this, I did all the same things on my non internet connected computer which will act as my open controller server. The only thing different I did was I copied openremote.zip from my original computer above to my new computer. I then open the browser to
And this time I selected offline and selected the openremote.zip file I just copied. Verifying it works I then pointed the openremote on my smartphone to the new computers IP at port 8080/controller by going to the settings on the openremote app, and adding a new controller. It didn t work the first time, so I checked I could ping the new computer from my smartphone(there is a ping app yopu can download). Which I could. Then I ran a browser on my smarphone and typed in the url http://192.168.1.100:8080/controller where 192.168.1.100 is the ip address of my new computer. This showed the screen above on my smartphone. So I knew my connectivity was good. I rechecked the setting on the openremote app and sure enough I mistyped the controller. I had http://192.168.1.100.8080/controller. I changed it to be http://192.168.1.100:8080/controller (colon instead of period). I then clicked on one of my buttons and saw the irtrans enternet light blink, and subsequently the volume on my receiver decreased. Yay!