MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2006-01-06, 16:49   #21 (permalink)
Portal Member
 
Clodo's Avatar
 
Join Date: Jul 2005
Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts


Default

WhiteDog, i'm working on that. be patient....

bye! Clodo
Clodo is offline   Reply With Quote
Old 2006-03-05, 14:35   #22 (permalink)
Portal Member
 
Join Date: Dec 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Any progress guys? Would be nice to see some updates before 0.2 Final goes out
WhiteDog is offline   Reply With Quote
Old 2006-03-07, 14:22   #23 (permalink)
Portal Member
 
Clodo's Avatar
 
Join Date: Jul 2005
Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Hi! I'm ready to release a new updated version, with a script example that execute a shell command when a generic playback is started, when the 0.2 final goes out.
This because i updated sources to be compatible with the lastest version of the CVS, and actually it's incompatible with RC2. I can send to you via PM, if you have the lastest CVS build...

bye! Clodo
Clodo is offline   Reply With Quote
Old 2006-03-15, 20:37   #24 (permalink)
Portal Member
 
Join Date: Mar 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts


Default Yes, please make updates backward compatible

I'm working on a script right now actually.... I'm working on creating my "wet dream" project. A pvr system running mediaportal, several computers running girder and netremote, X10 home automation and lot''s more

At the moment all the script does is;
1) enable a keypress to go to the tv guide
2) Each time the channel changes mediaportal sends an event to girders built in web server about the channel changes, enabling girder to continuesly send xmltv tvguide information to my 7" remote control touch screen.

I have lot's of ideas that I could do with myscript2, but first I have to have time to have a look at the mediaportal source..
cyclo is offline   Reply With Quote
Old 2006-03-20, 22:33   #25 (permalink)
Portal Member
 
Clodo's Avatar
 
Join Date: Jul 2005
Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Hi cyclo! i'm working on almost same things, because i have many htpc and i want to connect to MP many stuffs like my weather station, voip, and every light/sensor/window in my house are connected with a EIB bus (probably my next plugin for MP..)

About MyScript2, i want to add some other method to 'Script' base class, to allow people to write more 'simple' script. For example, in the next release i and a simple
Code:
void Shell(string CommandLine, string Arguments, bool WaitForEnd)
that start a process and eventually wait.
... other ideas? bye!
Clodo is offline   Reply With Quote
Old 2006-04-13, 20:34   #26 (permalink)
Portal Member
 
falkyre's Avatar
 
Join Date: Mar 2006
Location: Winnipeg, Canada
Age: 39
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Clodo,

I know there has been talk of getting IronPython as a scripting method for users that are not C# knoweldgable. Have you looked at this page that shows how to embed it into your code:

http://blogs.msdn.com/jmstall/archiv...ronpython.aspx

Just a thought...
falkyre is offline   Reply With Quote
Old 2006-04-18, 14:29   #27 (permalink)
Portal Member
 
Clodo's Avatar
 
Join Date: Jul 2005
Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Thanks falkyre,
i'm working on configuring (finally...) my first home-theater and MP stuffs
(before i only study MP sources but don't use it in a real environment), after that
i want to update MyScript and adding some 'real usability' scripts.
So, in a few day/week, i'm trying to add python support to MyScript.
but,
WARNING: it's impossible to use XBMC python script in MediaPortal, even if i add support to python engine via IronPython.

So, i'm thinking that C# code will be more simple and 'clean' for scripting in MP...

bye!
Clodo is offline   Reply With Quote
Old 2006-05-16, 17:13   #28 (permalink)
Portal User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Hi Clodo,

Sorry if this is a dumb question (newbie). In your last post you say that XMBC Python scripts cannot be run. Is it a question of just porting them to MP or re-writing them?

Thanks

bhead
bhead is offline   Reply With Quote
Old 2006-06-20, 01:15   #29 (permalink)
Portal Member
 
Clodo's Avatar
 
Join Date: Jul 2005
Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Hi bhead, python script that run under XBMC need to be totally rewritten for MediaPortal, and this plugin doesn't support Python Script, sorry.

For all: Sorry again, but i'm not interested about integration of IronPhyton in MyScript, for at least three reason:
- I don't think it's necessary. C# script can be more powerful and take advantage of current MediaPortal assemblies without need to add wrappers or variables.
- I think that people want python only because think that, with python support, can use the xbmc scripts (not possible, already explained why).
- IronPhyton require a manual connection between MediaPortal objects and objects accessible via python script... from How to embed IronPython script support in your existing app :
Quote:
You can call PythonEngine:etVariable to expose your application objects to python. Python will use reflection over these variables, so it helps to give it things that have good public members.
, and i don't have any ideas about what kinds of objects need to be wrapped from MediaPortal sources.


I updated the binary and the sources of MyScript in the first post, with some bug-fixes, and now run with the lastest SVN (20/06/2006).

Actually i'm working on another project, so i don't think to improve MyScript.
If anyone think that can be improvered, take the sources from the first post and improve it.


bye!
Clodo is offline   Reply With Quote
Old 2006-08-07, 15:13   #30 (permalink)
Portal Member
 
Vanessa's Avatar
 
Join Date: May 2006
Age: 24
Posts: 327
Thanks: 0
Thanked 1 Time in 1 Post

My System

Default

Hi guys, I have a Loquendo TTS SAPI Engine.

Can mp talk for me? for example, selected channel, welcome, end mp, now playing, etc?
__________________
Que viva mi colombia !!
3DMP Beta 2 coming soon...
Vanessa is offline   Reply With Quote
Reply

Bookmarks

Tags
myscript

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Myscript: Catching event handler magnuje2 Plugins 0 2006-07-27 22:40
An idea about interoperability and scripting... Clodo General Development (no feature request here!) 5 2005-09-26 12:19


All times are GMT +1. The time now is 05:13.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden