Help - Search - Members - Calendar
Full Version: Python Scripts
Scenyx Entertainment Community > Xbox1 Forums > Software Forums > XBMC for Xbox Forums > XBMC Python Scripting Forum
Pages: 1, 2, 3, 4, 5, 6
alx5962
So I made some scripts on python already (HERE - in french) but it seems few people are intersted by python scripts here...
Anyway, I just quickly ported bit-torrent on xbox and i'd like to know if some people are interested by it. But first I need a beta-tester with a good knownledge of XMBC and network.
nagmine
sounds kinda cool id use it if it works well love.gif
alx5962
my scripts (french website but english doc included)

The bit torrent client is here rolleyes.gif
bibi
alx5962 : c'est bien toi qui a fait le script python guidetele ? ce serait cool si tu pouvait faire avec les chaines du satellites et cable aussi, ainsi que les infos sur les emissions si on clique dessus comme sur PC (je sais pas si c possible). En tout cas il est pas mal ton script actuel. Merci
nagmine
ok i tested it out and it works pretty good. But it dosnt seem to give any status what so ever. Although i can see it is downloading by going to the file..... but anyways good job smile.gif

edit: ok now im see some status lol
alx5962
readmeXBOX.txt smile.gif
muerte
that would be amazing!!! can i request some other scripts?? ftp client (like in avalaunch), irc client (like in avalaunch), text editor (unleashx)... and i'll think of more in the future. please keep in touch!
alx5962
if it's already done on xbox i don't think it's useful to do it again...
muerte
how about a tvguide that uses www.tvguide.com or something (for us non-french people). this is a missing feature in xbmc i believe.
muerte
or a python email client: http://mahogany.sourceforge.net/clients.html
Moleman
Sweet! I'd like to see how this progresses! love.gif
alx5962
there's no keyboard support in python for now... So email client is useless
an english tvguide is very possible, I need to have a look at this smile.gif
Beelzabub
I wouldnt mind about no keyboard support yet for replying to emails but checking email would be nice for now
alx5962
QUOTE (Beelzabub @ Mar 9 2004, 09:40 AM)
I wouldnt mind about no keyboard support yet for replying to emails but checking email would be nice for now

ok smile.gif

I need to figure out now how to read an email on a pop server biggrin.gif
LiGhTfasT
You Rock! this is quality cheers

keep it up
Chicopower
alx5962, i want to say one things to you.

Great job and great idea ! beerchug.gif


A bittorent client on xbox is very cool. We can use the xbox like a computer for download, its great.

Thats funny when you want to play game on pc at same time with 100% cpu available.


--------

Un petit mot en francais pour toi pcq la vraiment, tu mépate bonhomme biggrin.gif
love_tropicana
yup, this is great stuff indeed. love.gif
alx5962
Nice to notice people like it biggrin.gif

a new version of the torrent script is in the work smile.gif
With local file support and more settings too.
c_poussard
nice work dude

im having a problem accessing the file after i stop the script..its like ppl are still leeching of me...i cant rename or move the file...

is there some way to stop the script?
alx5962
bit torrent updated

Read the readmeXbox!
andrusk
I was thinking of this the other day.


Very sweet!!! Now I dont have to leave my computer on all the time!! I can leave the xbox on instead!!
bobdavis
This is a fantastic way to add new functionality. This would be a great way for someone to create a general RSS client that aggregates news headlines, which would be more general than the Google News script you've got. Great work.
abstrakone
QUOTE (bobdavis @ Mar 11 2004, 01:56 PM)
This is a fantastic way to add new functionality. This would be a great way for someone to create a general RSS client that aggregates news headlines, which would be more general than the Google News script you've got. Great work.

I agree, an RSS reader would be nice... as well as a RSS feed streamer like Avalaunch has.
muerte
an rss reader already exists. i modified it to work more like the avalaunch one. i'll post the edited version tonight
Beelzabub
hey alex or anyone good with python scripting do you think it would be possible for to write a script that will listen for YAC and display its info? YAC is a ID Caller program that runs on pc and is able to broadcast the Name and Number of incoming calls to stuff that can support it via network/lan here is my thread on more info http://forums.xbox-scene.com/index.php?showtopic=185220
muerte
i personally have no interest, and therefore probably won't do it. still, the source isn't in python. most of the stuff thats been done is already in python (and just needs to be ported), or its a python example
christer
QUOTE (muerte @ Mar 11 2004, 07:35 PM)
an rss reader already exists. i modified it to work more like the avalaunch one. i'll post the edited version tonight

Cool! I'm looking forward to it.
christer
This is really interesting stuff but how do I activate a script? I'm trying to start the Google News script.
alx5962
QUOTE (Beelzabub @ Mar 11 2004, 07:49 PM)
hey alex or anyone good with python scripting do you think it would be possible for to write a script that will listen for YAC and display its info? YAC is a ID Caller program that runs on pc and is able to broadcast the Name and Number of incoming calls to stuff that can support it via network/lan here is my thread on more info http://forums.xbox-scene.com/index.php?showtopic=185220

i have no 56k modem so i cannot look at this.
alx5962
QUOTE (muerte @ Mar 11 2004, 08:30 PM)
i personally have no interest, and therefore probably won't do it. still, the source isn't in python. most of the stuff thats been done is already in python (and just needs to be ported), or its a python example

All my scripts were written from scratch except the bit torrent one.
A lot can be made using python, just need a lot of free time smile.gif
alx5962
QUOTE (christer @ Mar 11 2004, 09:52 PM)
This is really interesting stuff but how do I activate a script? I'm trying to start the Google News script.

From xbmc forums (from Darkie, edited by myself):

extract the directories from python.rar (cvs\xbmc\python\python.rar)
to "xbmc home dir\python\"
and if you want some examples you should extract scripts.rar(cvs\xbmc\scripts\scripts.rar)
to "xbmc home dir\scripts\"

you will now have the next directory structure in xbmc
xbmc
python
Lib
temp
www
scripts

To execute scripts go to settings->scripts.
muerte
double post
muerte
rss2.py

http://drmuerte.no-ip.com/ <-- right click and save to get the modified rss.py (more like ava's rss feed)

Features
* news feed now positioned in a better place (best viewed with newest skin)
* changes news topic every 5 seconds

Future junk
* scrolling newsfeed
* multiple news feeds

if you want to run the script automatically, goto autoexec_RENAME.py, and change the line in it to this: xbmc.executescript('q:\\scripts\\rss2.py'). then rename the file to autoexec.py. you can also change the rss feed's url by changing RSS_URL = 'http://www.xbox-scene.com/xbox1data/xbox-scene.xml' to be whatever rss url you want.
Beelzabub
QUOTE (alx5962 @ Mar 11 2004, 10:04 PM)
QUOTE (Beelzabub @ Mar 11 2004, 07:49 PM)
hey alex or anyone good with python scripting do you think it would be possible for to write a script that will listen for YAC and display its info? YAC is a ID Caller program that runs on pc and is able to broadcast the Name and Number of incoming calls to stuff that can support it via network/lan here is my thread on more info http://forums.xbox-scene.com/index.php?showtopic=185220

i have no 56k modem so i cannot look at this.

Alex you dont need a 56k for the fact YAC has "IM" type of feature basically it lets you send messages accross the network as well to test or to just send a message across network so you wouldnt need a modem even, Really what the script would be doing is "listen" on the network so when YAC broadcast a message it puts it on screen wether its Name & Number or a Message you broadcasted from YAC on your pc

here is an example from the site:

For Developers and Power Users

YAC has the ability to send short text messages to YAC listeners on the network. This makes YAC a viable addition to home automation or other solutions involving multiple computers and devices on your network.

The YAC Software Developer's Kit is a web page that will help you understand how to write a listener or write a program that will cause YAC to send text over the network on your behalf.

The YACTextSend sample program shows you how to write a simple Windows program that sends text through YAC to listeners on the network. Even if you don't care about the source code, you can use YACTextSend in scripts or from other programs. Just pass the text you want to send on the command line. For instance, to send the string "Does anyone in the house want to go to dinner?", you would type or run:

C:\YACTextSend Does anyone in the house want to go to dinner?

Here is the url to how to for a script on a "listner" http://sunflowerhead.com/software/yac/yac-sdk.htm
nagmine
ok ive been getting this error thats kinda annoying and freezes xbmc when i using bittorrent.py

CODE
attribute Error:'module'object has no attribute'ip_tos'


ive tryed a few different torrent and i keep getting this about an hour after downloading or when ever i start bittorent.py after xbox been shut off

anyclue why im getting this error?

alx5962
missing module = wrong python version
alx5962
I'm working on a new script smile.gif

For now it displays all the email senders from a pop server (your email server),and the subject to on the xbox screen!
Now i have to figure out how to display the content biggrin.gif
christer
QUOTE (alx5962 @ Mar 12 2004, 03:32 PM)
I'm working on a new script smile.gif
For now it displays all the email senders from a pop server (your email server),and the subject to on the xbox screen!
Now i have to figure out how to display the content biggrin.gif

Keep up the good work!
muerte
QUOTE (alx5962 @ Mar 12 2004, 09:32 AM)
I'm working on a new script smile.gif

For now it displays all the email senders from a pop server (your email server),and the subject to on the xbox screen!
Now i have to figure out how to display the content biggrin.gif

i'm glad my idea is materializing. you should make it so email notification comes up on the screen no matter where you are. if you want any help... just pm me, or instant message me. you can contact me on aim here: keybsnbits or on msn here: keybsnbits@comcast.net. i'd actually just like to take a look at the code... maybe give some ideas, maybe edit it up.
alx5962
i don't think we can display infos outside the script area.
And if we can i have no idea how to do that
full
QUOTE (alx5962 @ Mar 11 2004, 10:09 PM)
QUOTE (christer @ Mar 11 2004, 09:52 PM)
This is really interesting stuff but how do I activate a script? I'm trying to start the Google News script.

From xbmc forums (from Darkie, edited by myself):

extract the directories from python.rar (cvs\xbmc\python\python.rar)
to "xbmc home dir\python\"
and if you want some examples you should extract scripts.rar(cvs\xbmc\scripts\scripts.rar)
to "xbmc home dir\scripts\"

you will now have the next directory structure in xbmc
xbmc
python
Lib
temp
www
scripts

To execute scripts go to settings->scripts.

I understood this and i have
\XBMC\scripts\ directory but where the hell can i get that python.rar? i've searched xbins and searched this forum, i've googled already but nothing.. what that python.rar keeps in it?

without this python.rar(and things in it)
when i get to XMBC -> settings -> scripts and push examle tvguide with X it says "running" and show it under half seconds. but i cant get them work..

what programs do i need to make my own python script? i would make my own www.telkku.com finnish TV-guide wink.gif


EDIT: made more searching wink.gif
For Python scripting support, extract python.rar (included in the 02-12 build) into
the XBMC folder so that you have scripts/ and python/ subdirectories. You do not need
to upload the files from python.rar if you do not need Python scripting support.
Beelzabub
I just looked on xbins its there just download any of the XBMC not the one that says "Proper" for some reason that one dont have the python.rar included just download the xbmc-2004-02-12.rar and extract it and get the python.rar from there
christer
QUOTE (muerte @ Mar 12 2004, 07:08 PM)
you should make it so email notification comes up on the screen no matter where you are.

Gah!! No thanks. I don't want to be interupted in my movie every five minutes because some lowlife sent me spam...
nagmine
hey muerte is there a way to add multiple rss news feeds? id like to have more than one and im not sure if u can or how to do so smile.gif let me know

also where is autoexec_RENAME.py located? great script by the way smile.gif

Beelzabub
nm
nagmine
ahh cool thats what i was about to try smile.gif
Beelzabub
doesnt work thought it did sad.gif
muerte
QUOTE (nagmine @ Mar 12 2004, 02:35 PM)
hey muerte is there a way to add multiple rss news feeds? id like to have more than one and im not sure if u can or how to do so smile.gif let me know

also where is autoexec_RENAME.py located? great script by the way smile.gif

I'm still planning on implementing multiple RSS feeds... shouldn't be hard at all. Not today though.... maybe sunday. biggrin.gif And autoexec_RENAME.py is in python.rar.
nagmine
i dont see the autoexec_RENAME.py in the python.rar. Its in the version that came with 2-12-04 xbmc right? maybe im blind blink.gif lol

ooh and cool to hear ur gona add multi rss smile.gif
christer
When trying to run the Google News script, I get an error message that says "Impossible de trouver le skin par default"...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.