Announcement

Collapse
No announcement yet.

Widget: Kodi / XBMC Remote

Collapse
X
  • Time
  • Show
Clear All
new posts

  • Widget: Kodi / XBMC Remote

    Kodi Remote is a widget that lets your watch act as a remote for your Kodi / XBMC media player.

    You can find Kodi Remote here: https://apps.garmin.com/en-US/apps/0...f-500c0a6af103



    -------------------------------------------------------------------------
    Requirements
    -------------------------------------------------------------------------
    • Kodi / XBMC media player;
    • Garmin device with at least Connect IQ 1.2
    • Android or iOS device running Garmin Connect Mobile


    -------------------------------------------------------------------------
    Settings up your media player
    -------------------------------------------------------------------------
    Enable remote control via HTTP on your media player:
    • Start your media player;
    • Go to System>Settings>Services>Web server;
    • Make sure the checkbox after "Allow remote control via HTTP" is checked;
    • If you get a message Web Server: "Failed to start", you probably have some other service running on port 80. In that case change the number and try again;
    • Write down the number after "Port", you'll need that later.


    Now you have enabled remote control, you'll need to know the address of you media player. Typicly you'll want to control your media player from whithin your home network. If you want, you can setup your media player for remote control over the internet. In that case I'll assume you know what you're doing and you won't need my explanaition.

    Find the address of media player running on Windows computer:
    • Type "Windows-key" + "cmd" to open a command prompt;
    • Type "ipconfig";
    • Write down the value after "IPv4 Address", which typicly looks something like "192.168.xxx.xxx". This is the address of your media player.


    Find the address of media player running on other device (ie Raspberry Pi):
    • Go to you internet router (you can find the address by typing the commands above and looking for the value after "Default Gateway");
    • Most routers have a web interface that can tell you the ip-address of all connected machines. Look up that address for your media player


    -------------------------------------------------------------------------
    Settings up your Garmin watch
    -------------------------------------------------------------------------
    Your Garmin watch will control the media player through your phone. This means that, assuming you're setting this up for remote control within your home network, your phone needs to be connected to your WiFi network for this to work.

    You can set up up to 3 Kodi / XBMC media players using the Connect IQ app settings You can find a general explanation about app settings here: https://forums.garmin.com/showthread...o-App-Settings

    To set up a media player you have to provide an URL and a name and optional username and password:
    • For name, type anything you like;
    • The URL should have the form "http://{address}:{port}/". If port is 80 (the default), you don't need to provide the port.
      Examples: "http://192.168.0.5/" or "http://192.168.0.5:8001/"
    • If you've setup your Kodi / XBMC media player with a username and password, you'll need to enter them, else leave these settings empty;
    • If you have more than 1 Kodi / XBMC media player, you can add them also. In that case you need to set the checkboxes to enable them.

    If you have any questions or suggestions, please let me know.

    -------------------------------------------------------------------------
    Version history
    -------------------------------------------------------------------------
    V1.2:
    • Added ability to control Kodi with username/password protection;
    • Added multiple configurations for button selection order for non touch screen devices

    V1.1: Added support for all other devices
    V1.0: Initial version, only for touch enabled devices (Vivoactive, Epix, FR630)
    Attached Files
    Last edited by TeunMo; 11-29-2015, 03:45 PM.

  • #2
    Password protection

    Hi,

    thanks for the great widget .
    My Kodi instance is running on non-default port and is password protected. Port probably isn't an issue but any plans for a form for credentials?

    Thanks!

    Comment


    • #3
      Originally posted by rootpd View Post
      Hi,

      thanks for the great widget .
      My Kodi instance is running on non-default port and is password protected. Port probably isn't an issue but any plans for a form for credentials?

      Thanks!
      You can specify port in the Address: http: //address: port/

      Password is something I 've looked into and is on my todo list. It will take some effort of encoding it properly, so I can't make any promises.

      Comment


      • #4
        Originally posted by rootpd View Post
        Hi,

        thanks for the great widget .
        My Kodi instance is running on non-default port and is password protected. Port probably isn't an issue but any plans for a form for credentials?

        Thanks!
        I've uploaded a new version. It's now possible to set a password.

        Comment


        • #5
          Edit the url

          Hi there,

          It sounds very promising, which is why I decided to give it a go, my problem is that it seems I'm unable to edit the url? It shows me a blue link, and upon clicking this, it takes me to the "localhost" webpage... I must be doing something wrong here, could you point me in the right direction?

          *I have been able to change the url from the Connect App, the "problem" there is that all keys are completely mixed up, good thing they are named, could be a mess otherwise
          Last edited by dabunz; 11-30-2015, 09:01 AM.

          Comment


          • #6
            Originally posted by dabunz View Post
            Hi there,

            It sounds very promising, which is why I decided to give it a go, my problem is that it seems I'm unable to edit the url? It shows me a blue link, and upon clicking this, it takes me to the "localhost" webpage... I must be doing something wrong here, could you point me in the right direction?
            See this thread for more information about user settings: https://forums.garmin.com/showthread...o-App-Settings.
            If you still can't get this to work, can you tell me which tool you're using to set this up? Garmin Express, Garmin Connect Mobile for Android or Garmin Connect Mobile for iOS?

            Comment


            • #7
              Originally posted by TeunMo View Post
              See this thread for more information about user settings: https://forums.garmin.com/showthread...o-App-Settings.
              If you still can't get this to work, can you tell me which tool you're using to set this up? Garmin Express, Garmin Connect Mobile for Android or Garmin Connect Mobile for iOS?
              When you look at the following screenshot, you can see that I have tried to edit the url in Garmin Express, on windows 7



              This does not work for me, it will just open the link in the browser.

              Comment


              • #8
                Originally posted by dabunz View Post
                When you look at the following screenshot, you can see that I have tried to edit the url in Garmin Express, on windows 7



                This does not work for me, it will just open the link in the browser.
                Thanks for the update.
                I can't see your picture, but I see the same in my Garmin Express. I did not test this with GE 4.1.11 before. GE 4.1.10 worked ok.
                I think this is a bug in Garmin Express. It should allow you to change the url. I'll report this at Garmin.

                In the mean time I advise you to change the URL using Garmin Connect Mobile. You should have no problem there.

                Comment


                • #9
                  Cannot change url settings

                  Tried both Garmin Connect and Express, using express I have the same problem as above, url is just a hyperlink that can't be changed.
                  using Garmin Connect, when I click "save" after changing the url, it opens up safari with the same edit page, and if I click "Edit" again, it downloads a binary file

                  Comment


                  • #10
                    Any chance you'd be willing to post the code to github as an open source project?

                    Comment


                    • #11
                      No, I won't put it on GitHub (at the moment). If you're interested to know about how some specific parts are implemented (for instance communication with Kodi or Http basic authentication encoding), I'd be willing to share that info with you. Please send me a PM.

                      Comment


                      • #12
                        Originally posted by TeunMo View Post
                        No, I won't put it on GitHub (at the moment). If you're interested to know about how some specific parts are implemented (for instance communication with Kodi or Http basic authentication encoding), I'd be willing to share that info with you. Please send me a PM.
                        Thanks for the quick reply. I'm more interested in just being able to use it :-)

                        Right now I can't change the URL through Garmin Express, as previously documented in this thread. I also can't configure any settings through Garmin Mobile Connect; I just get a toast notification that "an error occurred." I thought if I had the source I might be able to put something together that I could use.

                        Comment


                        • #13
                          With that I can help. The message implies you have an older Connect IQ version running on your device. An update will probably do the trick.

                          Comment


                          • #14
                            Originally posted by TeunMo View Post
                            With that I can help. The message implies you have an older Connect IQ version running on your device. An update will probably do the trick.
                            I'm running firmware 2.50 on a D2 Bravo, which Garmin Express tells me is "up to date." I'm not sure how to map that to a Connect IQ version...

                            Comment


                            • #15
                              Originally posted by stevenrwalter View Post
                              I'm running firmware 2.50 on a D2 Bravo, which Garmin Express tells me is "up to date." I'm not sure how to map that to a Connect IQ version...
                              Not sure the exact sequence to do this on a D2, but you go to settings>system>about, and that shows you the versions of a few things, like the main firmware and Connect IQ.
                              My Connect IQ Apps in the Store
                              Facebook - Instagram -
                              Twitter

                              Comment

                              Working...
                              X