Plugin development starting from scratch - where is a complete hello world ex ??
#1
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

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 Smile ) 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.
Reply
#2
Easiest thing to do is to download a simple plugin and then just copy the structure from there....in the end all the tutes are no more usefull than jsut downl;aoding one that's in the ballpark of what you plan, and reading through the code. They're not that hard or complicated (assuming you know some python) - so the curve is fairly weasy for there for basic stuff.

Be sure about script vs plugin though - that's actually the most confusing bit. Script = some arbitrary executable thingy that will probably draw it's own screen, plugin = a lsit of stuff that results in a playable media item being handed off to XBMC for playback.

And how to test...um, click in it on XBMC is usually what people do Smile
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply

Logout Mark Read Team Forum Stats Members Help
Plugin development starting from scratch - where is a complete hello world ex ??0