Am Samstag (06.09.25) Vormittag werde ich ein Update der Forensoftware (inkl. aller Plugins) durchführen. Das Forum wird deshalb auf unbestimmte Zeit nicht verfügbar sein. Neuigkeiten wird es im Matrix Chat geben: https://www.kodinerds.net/thread/79927-freischaltung-matrix-chat/
danke dir,
aber ich nutze ja das Modul welches ich ein wenig erweitert habe:
#! /usr/bin/python
import urllib
import xbmcgui
ext_ip = urllib.urlopen('http://ip-api.com/csv/?fields=countryCode,city,query').read().decode('utf-8')
wid = xbmcgui.Window(xbmcgui.getCurrentWindowId())
try:
if len(sys.argv) >= 2:
if sys.argv[1] == "HOME":
wid.getControl(99999999).setLabel('WAN IP: %s' % (ext_ip))
elif sys.argv[1] == "SYSTEM":
wid.getControl(10).setLabel('WAN IP: %s' % (ext_ip))
except AttributeError:
xbmcgui.Dialog().notification('Externe IP-Adresse (WAN)', sys.argv[1])
except RuntimeError:
xbmcgui.Dialog().notification('Externe IP-Adresse (WAN)', sys.argv[1])
Alles anzeigen
Den call in der SettingsSystemInfo.xml auf
<onfocus>RunScript(script.module.wanip,"SYSTEM")</onfocus>
in Der HOme xml ganz oben
<window>
<onload>RunScript(script.module.wanip,"HOME")</onload>
und in der Control gorup ach dem RSS
<control type="label" id="99999999">
<left>470</left>
<top>10</top>
<label>IP?</label>
</control>
Jetzt passt es
Hallo zusammen,
Danke für das Addon.
Hat es schon jemand beim Estuary Skin im Kodi 17.6 zur anzeige im Home gebracht? Oder weiss jemand wie ich die IP unter der Uhrzeit anzeigen kann? Ich finde iwie nicht die richtige stelle.
Die Urzeit wird in der Includes.xml ja gesetzt:
<control type="label">
<font>font_clock</font>
<shadowcolor>text_shadow</shadowcolor>
<height>200</height>
<width>auto</width>
<animation effect="fade" start="100" end="0" time="300" condition="Window.Next(screencalibration)">WindowClose</animation>
<label>$INFO[System.Time]</label>
</control>
jetzt müsste das script nur bei ab un zu dort ausgeführt werden, onfocus geht da leider nicht.
Jemand eine Idee?
Vielen Dank