Kodi randomly resets

I am currently running Linux Mint 18.1 Mate with Kodi 17.1. I am using an nVidia 610gts graphics card with the proprietary video driver. Some days I can play multiple videos without any problems. Other days, Kodi will reset itself at random. When it do...

QVC Addon that works

Hi guys just setup a box for a relative with kodi 17.1 It has no build on it and just one app. I only need one thing for them to be happy QVC now I have tried UK Freeview but just get a message that says check the log... and I cant locate the log, anoy...

Movie Sets: goods for shorts collections / movie extras?

For movies that are a collection of shorts, are Movie Sets a good way to display them as one movie? I rather not rename each short to match the name of the movie collection. Also, some shorts are also included with a separate main movie. I initially t...

Adopting mpv video renderer

This is not so much a feature request as a request for feasibility analysis. If I'm not mistaken, mpv is open source. And its video renderer offers, from what little I understand, quality improvements to video rendering (higher quality scaling, both f...

Log error

for 3/4 days now I can't seem to watch some addons.. the addons load but when i want to watch live tv some channels I'm getting this error message My log is saying that Control 50 in window 10001 has been asked to focus, but can't......... iv'e search...

Mi Box + tvheadend = no h/w acceleration?

Hi there, I am hoping someone can help me. Maybe @fritsch I am aware that there have been various threads posted on a similar subject and some test builds which are supposed to fix a similar issue, however these test builds don't seem to work for me...

EPG not properly working

I am using Kodi 17 on W10x64 (stupid idea, I know...) with MediaPortal PVR backend. More or less everything works as it should, but in the EPG there are some channels that won't show any data in Kodi. In MediaPortal2, it works. I think something goes...

Ubuntu 16.04 curl timeouts kodi 17.1

[ I did a forum/google search for my error message and couldn't find a solution to this, so posting it here in case it helps someone else ] Symptoms: Couldn't install addons Plex wouldn't download cover art kodi.log had lots of "ccurlfile::stat - fa...

AC3 transcoding for HDMI

Is there any chance to make AC3 transcoding to work with HDMI audio? I need it because Sony AVRs have this thing that whenever they detect PCM signal, whether it's stereo or other channel layout, they disable Dolby PLIIx which I would like to stay on a...

Kodi 14

Hello everybody, i'm new here so go easy please. At the moment i have Kodi 14 installed on my laptop and would like to upgrade to Kodi 17, would i need to completely uninstall my current version and start again or can i just download Kodi 17 and instal...

How to make service result available to be used on the skin

Hi,

This is my very first attempt with Kodi services and skins.

I already modified my Titan skin to enable a third row underneath the time and date to display my IP.

My goal, is to display the external IP and location here, and so I also created a service that does exactly that and prints the result in the log file for now.

The code of the service is the following:

Code:
import xbmcaddon
import xbmcgui
import subprocess
import urllib
import requests
import json
import xbmc
import time

addon       = xbmcaddon.Addon()
addonname   = addon.getAddonInfo('name')


def check_location():
    send_url = 'http://freegeoip.net/json'
    r = requests.get(send_url)
    j = json.loads(r.text)
    city = j['city']
    return "Currently connected from: " + city;

def check_ip():
    public_ip = subprocess.check_output(["ifconfig `ip route get 8.8.8.8 | grep 8.8.8.8 | cut -d' ' -f5` | grep \'inet \' | awk -F'[: ]+' '{ print $4 }'"], shell=True);
    result = ("Your IP is : %s " % public_ip);
    return result;


if __name__ == '__main__':
    monitor = xbmc.Monitor()
    while not monitor.abortRequested():
        if monitor.waitForAbort(2):
            break
        test = "Check IP and Location" + check_ip() + check_location();
        xbmc.log(test,  level=xbmc.LOGDEBUG)

and the result printed on the log file is exactly what I expect.

The part of the skin that I edited is the IncludeHeader.xml, and I edited it like this:


Code:
<include name="TimeInfoCompact">
        <control type="group">
            <control type="label">
                <right>50</right>
                <top>10</top>
                <align>right</align>
                <width>300</width>
                <info>System.Time</info>
                <font>Bold30</font>
                <textcolor>$INFO[Skin.String(HeaderTextColor)]</textcolor>
                <shadowcolor>$INFO[Skin.String(HeaderTextShadowColor)]</shadowcolor>
            </control>
            <control type="label">
                <right>50</right>
                <top>40</top>
                <align>right</align>
                <width>500</width>
                <info>System.Date</info>
                <font>Reg26</font>
                <textcolor>$INFO[Skin.String(HeaderTextColor)]</textcolor>
                <shadowcolor>$INFO[Skin.String(HeaderTextShadowColor)]</shadowcolor>
            </control>
            <control type="label">
                <right>50</right>
                <top>70</top>
                <align>right</align>
                <width>500</width>
                <info>Network.IPAddress</info>
                <font>Reg20</font>
                <textcolor>$INFO[Skin.String(HeaderTextColor)]</textcolor>
                <shadowcolor>$INFO[Skin.String(HeaderTextShadowColor)]</shadowcolor>
            </control>
        </control>
    </include>

the last label is printing Network.IPAddress.
How do I make this print the result of my service?

Again, this is the first time for me, so any type of help would be really really appreciated. Thanks a lot