Well I'm striking out in a major way...
It seems that the guys doing Dharma aren't making it easy to execute a script. I can see where when the get it all working nicely keeping your scripts up to date will be a lot easier. But at the moment trying to run an existing script that's not on the *approved* list isn't all that easy.
What I've done...
I put the MythBox files in a directory named "script.Mythbox"
I added an icon.png file
I added the following addon.xml file:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="MythBox"
name="MythBox"
version="1.0"
provider-name="analouge">
<requires>
<import addon="xbmc.python" version="1.0"/>
</requires>
<extension point="xbmc.python.script"
library="default.py" />
<provides>executable</provides>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<summary lang="en">MythBox</summary>
<description lang="en">MythBox</description>
</extension>
</addon>
I then put that directory in a zip file named "script.Mythbox.zip"
I FTPed the zip file into the downloads directory of my homeusr directory on the XBMC machine.
In XBMC I went to System->Add-Ons->Install from zip file, browsed to Homefolder->Downloads and selected "script.Mythbox.zip" and selected it.
I then went to System->Skin->Add-on shortcuts and enabled button 1, named it MythBox, and set the path.
btw, setting the path doesn't really let you put in an actual path name on the XBMC drive (like it should!), It gives you a list of available items to select from. MythBox appears on the list after you do the "install from zip file" bit above.
Selecting MythBox adds it to the Programs button on the main menu.
After about ten hours of pounding my head against my monitor I finally get to select "MythBox" and run the thing....
I get a pop-up that says:
Quote:MythBox Error
Stage: initializing Caches
Exception: 'module' object has no attribute 'Language'
I'm either going to try and hack the main menu to replace the "Programs" button with a direct call to the MythBox script, or I'm reverting back to 9.11 and trying to figure out how to keep it from locking up in suspend mode.
On second thought, I think I'll load up a FPS and kill things for a while...
(I need to relax a bit)