2013-04-23, 08:55
Hi !
I'm trying to start my own plugin development.
I started here: http://wiki.xbmc.org/index.php?title=HOW...s_for_XBMC
But this is very ... confuse ...
I'd need a plugin file structure, a "where to write what" starting guide
So I read here: http://wiki.xbmc.org/index.php?title=Python_development
And this: http://wiki.xbmc.org/index.php?title=HOW...orld_addon
Every guide starts "... write this ... " ... but where ?!?!?!?
Ok the most basic example is
But ... in which file !?
Which folder/file structure must I prepare ?
How to test ?
WIP Guide:
Understand differences from plugin and script
Scripts are what you can find under 'Program' section of XBMC GUI; scripts are inteded to draw its own gui.
Plugin / Addon are something born to do something (usually a some kind of data scraping from web ) and then prepare a list of item to user; add on can be categorized to be shown under the right category;
Directory name
Your directory name should follow this convention: <addonType>[.<mediaType>].<yourPluginName>
For example: a plugin for video section will have a parent folder name plugin.video.myPluginName
Se other info about directory naming convention here, at point 1.1
Where to put addon code
The addo will be placed, like others, into .xbmc/addons directory.
I'm trying to start my own plugin development.
I started here: http://wiki.xbmc.org/index.php?title=HOW...s_for_XBMC
But this is very ... confuse ...
I'd need a plugin file structure, a "where to write what" starting guide
So I read here: http://wiki.xbmc.org/index.php?title=Python_development
And this: http://wiki.xbmc.org/index.php?title=HOW...orld_addon
Every guide starts "... write this ... " ... but where ?!?!?!?
Ok the most basic example is
Code:
import xbmc
xbmc.executebuiltin('Notification(Hello World,This is a simple example of notifications,5000,/script.hellow.world.png)')
But ... in which file !?
Which folder/file structure must I prepare ?
How to test ?
WIP Guide:
Understand differences from plugin and script
Scripts are what you can find under 'Program' section of XBMC GUI; scripts are inteded to draw its own gui.
Plugin / Addon are something born to do something (usually a some kind of data scraping from web ) and then prepare a list of item to user; add on can be categorized to be shown under the right category;
Directory name
Your directory name should follow this convention: <addonType>[.<mediaType>].<yourPluginName>
For example: a plugin for video section will have a parent folder name plugin.video.myPluginName
Se other info about directory naming convention here, at point 1.1
Where to put addon code
The addo will be placed, like others, into .xbmc/addons directory.