| |||||||
| Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here. |
![]() |
| | Thread Tools | Display Modes |
| | #23 (permalink) |
| Portal Member Join Date: Jul 2005 Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
| 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 |
| | |
| | #24 (permalink) |
| Portal Member Join Date: Mar 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
| 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.. |
| | |
| | #25 (permalink) |
| Portal Member Join Date: Jul 2005 Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
| 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) ... other ideas? bye! |
| | |
| | #26 (permalink) |
| Portal Member Join Date: Mar 2006 Location: Winnipeg, Canada Age: 39
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | 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... |
| | |
| | #27 (permalink) |
| Portal Member Join Date: Jul 2005 Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
| 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! |
| | |
| | #28 (permalink) |
| Portal User Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
| 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 |
| | |
| | #29 (permalink) | |
| Portal Member Join Date: Jul 2005 Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
| 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:
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! | |
| | |
![]() |
| Bookmarks |
| Tags |
| myscript |
| Thread Tools | |
| Display Modes | |
| |
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 |