Changes to skinning engine for Eden (and beyond)

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ronie Online
Team-XBMC Member
Posts: 8,252
Joined: Jan 2009
Reputation: 108
Post: #61
`Black Wrote:Where do they appear?

Settings > System > Input Devices > Peripherals
(that will open DialogPeripheralManager.xml)

on this dialog is a 'settings' button which will open DialogPeripheralSettings.xml

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
pecinko Offline
Donor
Posts: 3,010
Joined: Dec 2008
Reputation: 27
Location: Prague / Belgrade
Post: #62
Dumb question - this is for usb discs or remotes or some other peripheral?

My skins:

Quartz
Amber
find quote
Malard Offline
Team-XBMC Developer
Posts: 400
Joined: Jul 2010
Reputation: 16
Location: Peterborough, UK
Post: #63
pecinko Wrote:Dumb question - this is for usb discs or remotes or some other peripheral?

Multiple new features coming online

Remote controls that have custom features (Nyxboard Hybrid for example has a flip action, so when you flip the remote, what do you do with it etc...)

Custom hardware, (for instance USB - HDMI CEC Adapter) which allow you to control other hardware from inside XBMC

and for other devices going forward, maybe a harmony remote with a custom feature we can tap into
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,922
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #64
pecinko Wrote:Dumb question - this is for usb discs or remotes or some other peripheral?

Previous page -

Hitcher Wrote:...

I'm guessing it's for the USB - HDMI-CEC Adapter

[Image: sig_zps3af3b48e.jpg]
find quote
Malard Offline
Team-XBMC Developer
Posts: 400
Joined: Jul 2010
Reputation: 16
Location: Peterborough, UK
Post: #65
Hitcher Wrote:Previous page -

Thanks, spot on, but its not just for that device. We would welcome suggestions for other devices that have unique features we don't take advantage of yet.
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 1,945
Joined: Feb 2009
Reputation: 24
Location: Heerlen, The Netherlands
Post: #66
you can also configure hardware that is not sold by pulse-eight of course, e.g. the keymap when you insert a generic HID device (keyboards, etc.).

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
pieh Offline
Team-XBMC Member
Posts: 656
Joined: Aug 2010
Reputation: 13
Location: Poland
Post: #67
Added new mechanism: Skin Variables

It allow defining custom "infolabels" - skin variables to avoid duplicating similiar controls that differs only by visibility condition and label/texture

How to use:
  1. We need to define our variable (important - we do it in includes.xml or other xml that is included there)
    Code:
    <variable name="var_name" [type="text"]>
      <value condition="condition_1">value 1</value>
      <value condition="condition_2">$INFO[some_infolabel]</value>
      <value>default value</value>
    </variable>
    var_name - name of variable - will be used to access its value
    [type="text"] - this mark type of the variable (it's "text" by default so You can ommit it) - in future I plan to add "numeric" and "boolean" types
    Variable checks conditions going from top of the list: if condition_1 is true then variable will have value "value 1". If it's false it go to next line. If condition isn't specified, we simply use given value.
  2. Use it in our control:
    Code:
    <control type="label">
      <label>$VAR[var_name]</label>
      [ ... ]
    </control>


Here's more "real world example": Confluence using Skin Variables to display codec icons

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
find quote
Big_Noid Offline
Skilled Skinner
Posts: 2,627
Joined: Jul 2010
Reputation: 68
Location: Below sea level
Post: #68
Just a heads up. As of today's nightly build, changes in this commit are now required to load the fonts of your skin:
https://github.com/xbmc/xbmc/commit/c64e.../addon.xml
find quote
RockerC Offline
Senior Member
Posts: 148
Joined: May 2011
Reputation: 3
Post: #69
Malard Wrote:We would welcome suggestions for other devices that have unique features we don't take advantage of yet.
How about home automation systems integration devices for example turning lights ON and OFF when a movie begins and ends?

http://forum.xbmc.org/showthread.php?tid=39550

There are already plenty of lighting control scripts for XBMC but they do not have a common API or GUI interface in all skins.

http://forum.xbmc.org/showthread.php?tid=110392
http://forum.xbmc.org/showthread.php?tid=111527
http://forum.xbmc.org/showthread.php?tid=111053
http://forum.xbmc.org/showthread.php?tid=90034
http://forum.xbmc.org/showthread.php?tid=82160
http://forum.xbmc.org/showthread.php?tid=42874

So maybe this peripheral manager could be the shared interface the settings of those type of light control devices as well? Confused

I can recommend TellStick from Telldus Technologies which could be used as a reference device since it support most recovers.
http://www.telldus.se
http://developer.telldus.se
http://www.telldus.se/products/compability
https://github.com/eirikh/TellSticker/tr...r/Contents

This lighting control is not the same as for Ambilight/AmBX/Atmolight controller device, although that would be very cool too Nod

Another idea is to move the support for external LCD/VFD control settings to peripheral manager, as kind-of relates to remotes.

Other suggestion is for PVR interaction that I think was already asked for here http://forum.xbmc.org/showthread.php?tid=109387
(This post was last modified: 2011-10-03 12:23 by RockerC.)
find quote
Malard Offline
Team-XBMC Developer
Posts: 400
Joined: Jul 2010
Reputation: 16
Location: Peterborough, UK
Post: #70
HA will come in the future, but VFD stuff is exactly where the peripherals system will come into its own in the near future
find quote
Post Reply