HOW-TO write GUI settings for XBMC python plugins and scripts (addons)

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
teshephe Offline
Senior Member
Posts: 107
Joined: Dec 2009
Reputation: 0
Post: #91
ppic Wrote:why do you need it ?


Ahhh, i knew you would ask me that. Well, just so happens that I am working on the little plugin called "MultiroomAudio" and part of what I am doing is utilizing the built-in bcast functionality to signal "What playing" as it happens realtime so I have a function that turns on the bcast and then listens and parses out the messages.Wink

The other part is mainly for the windows based xbmc's and in the addon settings I have just a text box to put in a custom "Directshow" device... I would really like this to be a drop down (less prone to user entry error)Frown

BTW... noticed that you were wanting a true streaming backend to xbmc... well, while not mature yet... I took on the challenge. Big GrinShocked

Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #92
yes, but what di you need to get the port (we should continue this elsewhere)

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
teshephe Offline
Senior Member
Posts: 107
Joined: Dec 2009
Reputation: 0
Post: #93
ppic Wrote:yes, but what di you need to get the port (we should continue this elsewhere)

I pm'd you... let's talkBig Grin

Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
find quote
taxigps Offline
Team-XBMC Python Developer
Posts: 446
Joined: Jan 2009
Reputation: 1
Post: #94
any way to use settings like this:

Code:
<setting id="sub_folder" type="text" visible= "eq(-1,true)" enable="eq(-1,true)" label="30112" default="30113"/>
mean let default value can tranlate to other language
find quote
Walter Sobchak Offline
Junior Member
Posts: 42
Joined: Sep 2011
Reputation: 0
Post: #95
Is there a way to run my script (with a param) when its settings are updated?
find quote
roth2006 Offline
Junior Member
Posts: 3
Joined: Feb 2012
Reputation: 0
Post: #96
Did you try it with the linuxport?



[Image: avatar.php]
find quote
_BJ1 Online
Senior Member
Posts: 166
Joined: Apr 2010
Reputation: 0
Location: Germany
Post: #97
I have a problem with internationalization/localization. I need following:

i.e. english: Scan EPG-Data at xx:xx o'clock
german: Scanne EPG-Daten um xx:xx Uhr

I know, how to script in settings.xml the first label item and the options (value=xx:xx) but don't know how to implement "o'clock/Uhr" afterwards?
(This post was last modified: 2012-03-29 21:03 by _BJ1.)
find quote
_BJ1 Online
Senior Member
Posts: 166
Joined: Apr 2010
Reputation: 0
Location: Germany
Post: #98
Nobody a clue? Wink

_BJ1
(This post was last modified: 2012-03-29 21:09 by _BJ1.)
find quote
sphere Offline
Team-Kodi Member
Posts: 1,204
Joined: Jul 2009
Reputation: 50
Location: Germany
Post: #99
This is not possible.

But you have two workarounds available:

1.
setting:
<setting id="hour" type="enum" label="30000" default="3" values="0|1|2|3|...|23"/>
string:
<string id="30000">Scan EPG at X o'clock</string>

2.
setting:
<setting id="hour" type="enum" label="30000" default="3" lvalues="31001|31002|...|31023"/>
strings:
<string id="30000">Scan EPG at</string>
<string id="31000">00:00 o'clock</string>
<string id="31001">01:00 o'clock</string>
<string id="31002">02:00 o'clock</string>
...
<string id="31023">23:00 o'clock</string>

I recommend workaround #1 Big Grin

My GitHub. My Add-ons:
[Image: IOoywq0.jpg]
find quote
_BJ1 Online
Senior Member
Posts: 166
Joined: Apr 2010
Reputation: 0
Location: Germany
Post: #100
Thank you very much! Workaround #2 works like a charme for me.

_BJ1
find quote
Post Reply