Access Keys:
Skip to content (Access Key - 0)
 

Few questions about controlling home appliances using Openremote, Android and Itach WF2IR

Jayneil Dalal

On Mar 01, 2012 07:13

Hi,

Hi,

I am a newbie. I want to control my LG LCD TV via my android phone using OpenRemote and WF2IR. I had the following questions that I would like to ask:

1. After I create my panel does the OpenRemote Designer provide me with the .apk file which I can install on my Android phone?

2. Do I need to also run the Open Remote controller on a server? I have a laptop running Ubuntu 11.10. How can I turn it into a sever to run Open Remote controller if needed?

3. The IP address of my WF2IR is the same as my internet ip address, right?

I would be glad if you could answer the above questions.

Looking forward to your positive response.

Cheers,
Jayneil.

 
Labels:
Participants: Eric Bariaux , Jayneil Dalal , Marcus Redeker , yann philippe
  1. Mar 01, 2012

    Marcus Redeker says:

    You need to install the OpenRemote console for Android from the Android market. ...

    You need to install the OpenRemote console for Android from the Android market.
    The console will communicate with the controller to render the remote which you design online.
    After starting the controller access the controller's web page to sync with your online designer account.
    The URL should be: http://<controller_ip>:8080/controller

    You need to have the controller run on a server. The Ubuntu server is fine. You need to install a Java runtime to start the controller.
    The IP of you WF2IR should be from your internal network and not your internet address.

    The communication would look like this:

    Android phone -> WLAN -> Router -> Controller -> WF2IR -> TV

    By the way: Some LG TV's can be controller via RS232. If you use a RS232<->IP server you could avoid the WF2IR

    1. Mar 08, 2012

      Jayneil Dalal says:

      Dear Markus, Thanks a lot for your help. I was able to get OpenRemote controlle...

      Dear Markus,

      Thanks a lot for your help. I was able to get OpenRemote controller running on Ubuntu 11.10. I have also found out the ip address assigned to my Itach WIFI2IR device using iHelp. Also, I figured out the IR codes to control my LG TV(32LK330-UB) using iLearn from Global Cache. Now Here are the following problems to which I need a solution:

      1. I went to OpenRemote online designer to build my custom Android panel. After completing the design, I downloaded the design to my desktop. Then I went to this site: http://localhost:8080/controller/ and synced my controller with the Online designer. Then I tried to upload my openremote.zip file via this site, but it gave me an error:

      Upload failed! <pre style="word-wrap: break-word; white-space: pre-wrap;">OK</pre>

      So what to do now??

      2. I downloaded the Openremote console to my android phone like you asked from the android market. Now, when I run it , it asks me to choose a controller. What is the controller URL?? Is it the ip address of my Itach WIFI2IR or my laptop running the controller or http://localhost:8080/controller/

      3. I am still not able to figure out how to add my custom android panel that I built on online desginer to my Android phone. Can you please list the exact steps.

      Cheers,
      Jayneil.

      1. Mar 08, 2012

        yann philippe says:

        Jaynell, You've installed OpenRemote Controller on Ubuntu 11.10 laptop. When yo...

        Jaynell,

        You've installed OpenRemote Controller on Ubuntu 11.10 laptop.
        When you're working on your Ubuntu laptop, you can access the controller via the URL http://locaohost:8080/controller but that will work only from your Ubuntu laptop.

        To access the Openremote Controller installed on Ubuntu laptop from another device, like your android, you need to replace "localhost" by the real IP address of the Ubuntu laptop.
        As an example, my server IP address is 192.168.0.180
        so the URL to connect to my controller installed on that server is: http://192.168.0.180:8080/controller

        Once your android panel will be able to communicate with the controller and assuming that you've successfully synchronize the controller with your design, you'll have to select on Android, the name of the panel you've designed.

        So basically:
        1/ create your panel design within the online designed
        2/ syncronize your controller with the online designer (in that step, you're basically downloading your designed project from Internet to your local controller)
        3/ Coneect Android to the controller and select the designed panel proposed by the controller (so the one downloaded in step 2)
        4/ enjoy

        1. Mar 08, 2012

          Jayneil Dalal says:

          Dear Yann, Thanks a lot for replying. I got my ip address using 'ifconfig' in U...

          Dear Yann,

          Thanks a lot for replying. I got my ip address using 'ifconfig' in Ubuntu terminal. I still have one problem. When I click on the 'choose panel identity' option on the android app, it gives an error message: "Cannot get panel identity list". So now there is the security option in the android app where it asks if I should turn SSL 'on' or not. Also, it asks for a port. Which is that port? The default is 8443. I tried changing the port to 8080 and SSL 'on. But still no luck. The panel that I designed with the online designer would not load at all.

          So what should I do now?

          Looking forward to your positive response.

          Cheers,
          Jayneil.

          1. Mar 08, 2012

            yann philippe says:

            By default, security is not setup. I guess you haven t change standard install o...

            By default, security is not setup. I guess you haven t change standard install of the controller. So don t use SSL and keep standard port 8080
            To be able to select the panel in android, you need first to have it downloaded on the controller. Is it the case? Have you been able to have a successful sync between controller and designer?

            Regards

            1. Mar 08, 2012

              Jayneil Dalal says:

              Yes, I have been able to successfully sync between the online designer and the c...

              Yes, I have been able to successfully sync between the online designer and the controller. Also, when I download my panel to the desktop, I get three main files which are: controller.xml, panels.obj and panel.xml .

              So, what am I doing wrong here? why is my android app not able to load the panel that I have designed online?

              Cheers,
              Jayneil.

              1. Mar 08, 2012

                yann philippe says:

                Could you provide the exact controller URL entered in android?

                Could you provide the exact controller URL entered in android?

                1. Mar 09, 2012

                  Jayneil Dalal says:

                  The URL I entered in Android is 10.59.1.72:8080/controller which is the ip addre...

                  The URL I entered in Android is 10.59.1.72:8080/controller which is the ip address of my computer running Ubuntu. The app adds http by default, so there is no need to write that in front.

                  1. Mar 09, 2012

                    Jayneil Dalal says:

                    In the android app , my configurations are: SSL : OFF Port: 8080 Do I need to ...

                    In the android app , my configurations are:

                    SSL : OFF
                    Port: 8080

                    Do I need to change something here?

                    Am I facing these problems cause I am running Linux? I have even disabled my Ubuntu firewall thinking that could have been the problem, but still no luck

                    1. Mar 09, 2012

                      Jayneil Dalal says:

                      Also, when I type http://10.59.1.72:8080/controller on my browser on my Android ...

                      Also, when I type http://10.59.1.72:8080/controller on my browser on my Android phone, I am not able to access the page. So, I think that there is something wrong with my Android phone. Any ideas how to fix that?

                      1. Mar 09, 2012

                        yann philippe says:

                        Sorry but I will let the specialists continuing to support. I guess android wifi...

                        Sorry but I will let the specialists continuing to support.
                        I guess android wifi is on and you're on the same LAN as the server.
                        I guess you can browse from android to any other website?
                        I guess that this URL is working if used on the browser of your server
                        I think There is a newer version of the android panel APK than the one of the android market. Have you tried it?

                        1. Mar 09, 2012

                          Jayneil Dalal says:

                          1. Yes, the android wifi is on and I am on the same LAN as the server. 2. Yes, ...

                          1. Yes, the android wifi is on and I am on the same LAN as the server.

                          2. Yes, I can browse other websites from my Android phone.

                          3. Yes, the URL(http://localhost:8080/controller) is working if used on the browser of my server.

                          4. How to get the newer version of the Android panel APK which is newer than the one in the Android market? I downloaded mine from the Android market and the version is 2.0

                          1. Mar 09, 2012

                            yann philippe says:

                            Please check on the forum, an updated version of android exists but it is not ye...

                            Please check on the forum, an updated version of android exists but it is not yet publish on the market

                            1. Mar 10, 2012

                              Jayneil Dalal says:

                              Hi, I installed the latest version of Open Remote app which has not been publish...

                              Hi, I installed the latest version of Open Remote app which has not been published in the market and tried it, but I am still getting the same problems. What to do now?

                              1. Mar 10, 2012

                                Eric Bariaux says:

                                Can you test this URL on your computer: http://localhost:8080/controller/rest/pa...

                                Can you test this URL on your computer: http://localhost:8080/controller/rest/panels

                                This should return XML that lists the panels available.
                                If it is not the case, then the configuration has not been synchronized with controller properly.

                                If this work, try this URL instead, still on the computer: http://10.59.1.72:8080/controller/rest/panels

                                If it does not work, then there is an issue with the IP address you have identified.
                                Do you have multiple IP addresses on this machine ? Maybe multiple network interfaces.

                                If it does work, then try it in the browser on your Android device. If it still works there but the console fails, then there is an issue in the Android console. However, if this does not work in the browser, there is some other communication problem between your Android device and the computer that needs to be resolved first.

                                1. Mar 17, 2012

                                  Jayneil Dalal says:

                                  Dear Eric, 1. http://localhost:8080/controller/rest/panels works on my PC as I ...

                                  Dear Eric,

                                  1. http://localhost:8080/controller/rest/panels works on my PC as I get a XML list with all the panels available.

                                  2. http://10.59.1.72:8080/controller/rest/panels works on my PC.

                                  3. http://10.59.1.72:8080/controller/rest/panels does not work on my OR app. Still get the error 'could not get panel identity'

                                  But here is what I found to be very interesting:

                                  The internet I am using is a public WIFI. So, I created a hotspot from another laptop and had my PC, android phone connect to it. After that it worked like a charm!! Any reasons why it only worked this way??

                                  1. Mar 17, 2012

                                    Jayneil Dalal says:

                                    I would like to humbly thank all the people in this post for sparing their valua...

                                    I would like to humbly thank all the people in this post for sparing their valuable time as a result of which I was able to give a presentation on 'Smart Homes using Android'at Droidcon 2012,Berlin. I basically used OpenRemote to do all the home automation task. All the people who attended my talk were very amazed with the capabilities of OpenRemote. The link to my talk is below:

                                    http://de.droidcon.com/session/smart-homes-using-android

                                    Cheers,
                                    Jayneil.

                                  2. Mar 21, 2012

                                    Jayneil Dalal says:

                                    Does anyone else know why it is working only like this in my case???

                                    Does anyone else know why it is working only like this in my case???

                                    1. Mar 21, 2012

                                      Marcus Redeker says:

                                      Public wifi often don't allow communication between connected devices even thoug...

                                      Public wifi often don't allow communication between connected devices even though they are on the same subnet. Sounds like this is the problem in your case.

                                      Your approach of using your own wifi access point is correct.

                                      1. Mar 22, 2012

                                        Jayneil Dalal says:

                                        Ok. Thanks a lot!

                                        Ok. Thanks a lot!

Adaptavist Theme Builder Powered by Atlassian Confluence