• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 8
Python Scripts Development
#16
it'will be a nice feature when xbmc start's it runs some file automatictly, like startup.py and when xbmc quit's a separate file.

so i can program a python scripts that saves the state of the played file and when it starts up it continues where it finished, like
car cd players.
Reply
#17
(fonzi @ oct. 29 2003,07:40 Wrote:so i can program a python scripts that saves the state of the played file and when it starts up it continues where it finished, like car cd players.
if would be much better if that be codec into xbmc gui/core nativly as an option than into a separate python script
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not 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.
Reply
#18
are there any links to documentation on how to use python with xbmc?

i am looking to write some code in python to connect to my replaytv and delete and possibly stream shows straight from the replay.

thanks,

cp
Reply
#19
(cyberplague @ nov. 07 2003,22:23 Wrote:are there any links to documentation on how to use python with xbmc?

i am looking to write some code in python to connect to my replaytv and delete and possibly stream shows straight from the replay.

thanks,

cp
this thread details how to get python running if you read back far enough. you then goto settings->scripts and select the script you want to run. afaik, it's pretty much a full implementation of python, though interaction with xbmc is limited at the moment (a few dialogs). i've read of people connecting to devices using ip like you mention, i'm not sure if you would be able to stream though, that would depend on xbmc supporting the streaming protocol, which may or may not be a problem.
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#20
for xbmc there is no documentation atm. but since writing python code for windows is the same as writing it on the xbox you should be able to find most information at python.org

for xbmc specific functions you can take a look at the examples which are in cvs\scripts\

problem for now is that there isn't any error output to xbmc, so you can't see if the script runs ok or not.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not 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.


Image
Reply
#21
cyberplague, it's very easy to see how to use the xbmc specific stuff if you take a look at darkie's example scripts.

here's the current version of my tivo scripts if anyone is interested.
tivocontrol.zip
keep in mind that this script has only been tested on my tivo so far. i'd be interested to hear from anyone who tries it.
Reply
#22
doh! i will check out python.org. as well as the scripts.

thanks for the tivoscripts. my mother-in-law has a tivo, so i will test it with hers and let you know the outcome.

darkie: couldn't in the scripts we code an error catching routine, that could use the dialogs to output any errors or something to let us know the script ran fine?

thanks again guys. tomorrow i will start my testing...

cp
Reply
#23
i found a pretty good python remote debugger at http://www.activestate.com/ , seems to work well with xbmc.
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#24
to cyberplague:, the error catching is already there. only need to be written to a dialog (which isn't a big deal, just didn't had the time yet)
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not 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.


Image
Reply
#25
darkie - awesome. i figured it was not active cause of time issues. any idea when it could be done? i don't need a specific date, just if it is going to be days, weeks or months before it gets written to a dialog. it would really help with python script development. which you already know.

keep up the great work. i wouldn't mind writing some documentation for the python side of things. let me know.

cp
Reply
#26
darkie, is it possible to write a page of text to the screen? kind of like the script output screen i suppose.
btw, i did a dir(xbmc) to check what's available from importing xbmc, obviously dialog and dialogprogress are used in your example scripts so i can see what we can do with them, but what about window and ouput?

thanks for any info you can give.
burriko
Reply
#27
what i am busy with is to make it possible to create your own windows (add text / images / buttons and more) and display it, but this isn't finished yet.

xbmc.window as it is now in cvs is just an expiriment and doesn't do anything at all.
if you want to write to to screen you could use xbmc.output or sys.stdout for now
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not 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.


Image
Reply
#28
cool, thanks for the info. what you described sounds great, i look forward to seeing what develops.
Reply
#29
Exclamation 
too bad xbmc does not yet have xbmp's tv-guide or the fruits of the python xmltv tv_grab project would be usefull Image
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not 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.
Reply
#30
sure, python in xbmc has a lot of potential in plugin development and that would be great to be able to auto update tv listings through python.
can't wait to see this Image
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 8

Logout Mark Read Team Forum Stats Members Help
Python Scripts Development0