Add-on:Skin Widgets

From Official Kodi Wiki
Jump to navigation Jump to search

Skin Widgets

See this add-on on the kodi.tv showcase

Author: Martijn, phil65

Type: Services
Repo:

License: GPL v2.0
Source: Source code
Summary: Skin widgets
Home icon grey.png   ▶ Add-ons ▶ Skin Widgets
Attention talk.png Need help with this add-on? See here.

Skin widgets

Installing

This add-on is installed from the Add-on browser located in Kodi as follows:

  1. Settings
  2. Add-ons
  3. Install from repository
  4. Services
  5. Skin Widgets
  6. Install

This addon provides skin with an array of labels they can use for displaying in their skins. The addon will be run as a service on user "login" and will be stopped on user "logout".

Setting

  • Enable recommended
  • Enable randomitems
  • Only unplayed
  • Randomize time (minutes)
  • Use season folders

Number of labels is hardcoded at 20

Dependency

Add this to your addon.xml to make it install along with your skin.

 <requires>
   <import addon="xbmc.gui" version="3.00"/>
   <import addon="service.skin.widgets" version="0.0.2"/>
 </requires>

Note: Please check on what minimum version you need and change it accordingly

Infolabels

Random items

Link below contains the InfoLabels used for the Randomitems service

Add-on:Skin_Widgets/RandomItems


Recommended

Link below contains the InfoLabels used for the Recommended service

Add-on:Skin_Widgets/Recommended


Recent items

Link below contains the InfoLabels used for the RecentItems service

Add-on:Skin_Widgets/RecentItems

General

Use: Window(Home).Property(*)

Available labels
Property: General Description
SkinWidgets_Running addon running 'true/false'
SkinWidgets_Recommended addon setting 'true/false'
SkinWidgets_RandomItems addon setting 'true/false'
SkinWidgets_RecentItems addon setting 'true/false'


Available triggers
Property: General Description
SetProperty(SkinWidgets_RandomItems_Update,true) Trigger randomitems update. Script resets the value back to false and resets running randomize timer.