Widget: Kodi / XBMC Remote

Former Member
Former Member
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/0d111315-c613-4ece-b90f-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.php?332843-How-to-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)
  • 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.
  • Former Member
    Former Member over 9 years ago
    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.
  • 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...
  • 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.
  • Former Member
    Former Member over 9 years ago
    Unfortunately D2Bravo is still on CIQ 1.1.4. All other devices are already on 1.2, but D2Bravo is not.
  • Okay that's good to know. Sorry for the noise
  • Former Member
    Former Member over 9 years ago
    Okay that's good to know. Sorry for the noise


    Good news. An update for the D2 Bravo has been released today, which supports Connect IQ 1.2.1. If you update your device, you should be able to use the Kodi widget.
    It should update automatically when you connect your device to a computer with Garmin Express. If it doesn't or if you want to view the change log:
    http://www8.garmin.com/support/download_details.jsp?id=9185.
  • Good news. An update for the D2 Bravo has been released today, which supports Connect IQ 1.2.1. If you update your device, you should be able to use the Kodi widget.
    It should update automatically when you connect your device to a computer with Garmin Express. If it doesn't or if you want to view the change log:
    http://www8.garmin.com/support/download_details.jsp?id=9185.


    Hooray! And the Kodi widget now works perfectly. Thanks for your help!
  • Feature request

    Is it possible to prevent the watch from automatically returning to the watch face after a couple minutes? The built-in Music Controls widget behaves this way, and I would prefer that this app did, too. My intention is to keep the Kodi controls up while I'm watching TV, with the Play/Pause button selected. That way I can easily pause with a single watch button press. As it stands, the widget will have almost certainly timed out, which means I have to scroll through my widgets, wait for connection, scroll through the buttons, then pause. At that point it's almost faster to pull out my phone and pause Kodi from there...

    Thanks and keep up the good work!
  • Former Member
    Former Member over 9 years ago
    Is it possible to prevent the watch from automatically returning to the watch face after a couple minutes? The built-in Music Controls widget behaves this way, and I would prefer that this app did, too. My intention is to keep the Kodi controls up while I'm watching TV, with the Play/Pause button selected. That way I can easily pause with a single watch button press. As it stands, the widget will have almost certainly timed out, which means I have to scroll through my widgets, wait for connection, scroll through the buttons, then pause. At that point it's almost faster to pull out my phone and pause Kodi from there...

    Thanks and keep up the good work!


    Unfortunately I don't think that's possible. A widget has a timeout and there's no way around that. For that reason I'll probably change this widget into a watch app, because I agree that it's annoying to have to restart the widget every time.