MyScript (5 Viewers)

Clodo

Portal Pro
July 8, 2005
53
0
Milan, Italy
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
 

cyclo

Portal Member
March 15, 2006
11
0
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..
 

Clodo

Portal Pro
July 8, 2005
53
0
Milan, Italy
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

Portal Pro
July 8, 2005
53
0
Milan, Italy
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!
 

bhead

New Member
May 16, 2006
1
0
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
 

Clodo

Portal Pro
July 8, 2005
53
0
Milan, Italy
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 :
You can call PythonEngine::confused: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!
 

Vanessa

Portal Pro
May 31, 2006
329
1
Hi guys, I have a Loquendo TTS SAPI Engine.

Can mp talk for me? for example, selected channel, welcome, end mp, now playing, etc?
 

Users who are viewing this thread

Top Bottom