[17.1] Play Using Advanced Settings?

Hello everyone, I've been using Kodi/XBMC since version 12. It's always been a great go to program for medias. It got lots of improvements, many of which I like. Krypton being the best update there is, running nightly, downloaded yesterday, I've start...

Add the result of my addon to the home page

First thing first, this is a very basic addon, as well as my first addon ever for kodi.

I've simply cloned the hello world example and changed the addon.py file to this:

import xbmcaddon
import xbmcgui
import subprocess
import urllib
import requests
import json

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;

xbmcgui.Dialog().ok("Check IP and Location", check_ip(), check_location())
This simple script, get the external Ip and the location and prints them in a modal when runs.

What I'd like to do, is to have this results printed on the home page (I am using titan skin if this help in any way) but I have no idea where to start, as google doesn't really help either.

I don't care if I have to create two new menu entries with that as a result, or I have I to change some skin files, but the idea is to keep the IP and the Location always visible on the home page, as I need to check instantly if my VPN drops the connection so that I can reconnect (or at least I know i'm not connected anymore)

I've also posted this on stackoverflow, and the url is here: http://stackoverflow.com/questions/43707...-home-page but I think I might have more possibilities to get an useful response here.


Thanks in advance for any help

Do LG phones support Kodi?

I'm looking at getting a new phone soon and am looking at going away from Samsung. I am wondering if I can get Kodi on an LG phone? I know technically I could get it on iPhone but I don't want to deal with jailbreaking the phone.

Kodi 17 xbox 360 usb pad

Hi everyone, New to the forum. Hope someone can help. I have kodi 17.1 installed on Sony android tv. I have an issue configuring xbox 360 pad. When i get to the guide button and then press the home button on pad kodi exits to android home screen so i...

Modal dialog delegate actions to window

I have a modal dialog open and react to some actions but other actions I want to send to "fullscreenvideo" window. xbmc.executebuiltin("Action("+str(action.getId())+",12005)") doesn't work because it expects action name not number. How can I do this?

Updating library scans multiple times and slowly

When I update my library after adding stuff, Kodi will rescan all shares multiple times. My movie shares will be scanned once each (3 folders), but my TV shares will be scanned atleast 3 times each. Which is a problem since I have like 10 shares. It a...

Jodi installation problem help

Have installed the new Kodi 17 and in the main menu not appear the Add-ons bottom why. Have reinstall a couple times and happen the same all the other bottoms is there like movies tvshows Music music videos etc so anyone can help please thanks i...

SOCK5 vs SOCK5 password

I can't understand the difference between Proxy Settings "SOCKS5" and "SOCKS5 password" other than one appears to work with PIA and the other one doesn't. Can someone please explain the difference between the two settings and why one works and other do...

KODI 17.1 PVR for TVHEADEND installed but won’t run

This is a clean re-run as suggested by forum member nickr, after the initial thread was judged to be a Rule Violation due to suspect and banned addons having been loaded. This was as a result of trying out the article "Watch anything on KODI" in "Web ...

How to remove unnecessary video menu items

Hello. In Video section, there is Movies TV show In progress TV shows Recently added movies Files Video add-ons I would like to have only "Files" in here and ideally when I will go to the video section, I will go directly to Files. Could you help m...

Teletext doesn´t work

Hi
I wonder why teletext don´t work after installing Kodi 17.1?
It is activated and I have downloaded the RSS news app (I think the name is RSS editor) for the XBMC news feed. The teletext showing on bottom of screen.
Is there anything I have forgotten maybe?

Kodi 17.1
Windows 10 pro 64-bit Ver. 1703 build 15063.250
Intel Core i7-6700 CPU 4.0 GHz
Ram 16

https://pastebin.com/6gLqw5vw

I hope it is correct posting the pastebin link like this?

Bluetooth joystick not detecting…

I am using Kodi 17.1 buold on my Samsung S6 Edge. I was using a very basic joystick I got from Ebay which connects to phone as input device. I configured the same in KodI under Peripheral OK (was using Kodi with my VR) One day when I connected the dev...