General Automation of MP (1 Viewer)

orencha

Portal Pro
February 2, 2005
66
14
Netanya
Home Country
Israel Israel
Hi,

I thought that since MP is very open, and people will probably have more and more ideas, of which some will not be implemented in MP...

How about the ability to automate MP from an external program/process? This can be done using a command-line interface.

Example 1: a "Caller ID" application.
A standard CID application can be used. When a call is received, the CID program can run the following command:

MediaPortal.exe /pause /popup "Incoming call from 555-12345" /image "d:\pics\john.jpg"

Since MP is already running, it will:
* Pause the current playing video/music (or TV if timeshifting is on)
* Display a Popup message with the caller ID....
* Display the picture of the caller!
* Other stuff is optional, such as: playing a ringtone (midi/wav/mp3)...


Example 2: Sending commands to MP.
An external application can send commands to MP. This will help integrate with unsupported input devices (including remote controllers):

MediaPortal.exe /command "13"
or: MediaPortal.exe /command "ACTION_STOP"

The idea is to help integrate MP with existing software, rather than writing new code to support various features already existing elsewere.

Wanna hear what you think!

- Oren.
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
I'm working on this at the moment. I've done a prototype and I've implemented this in MPWebControl - a web interface for mediaportal.

I'm currently working on version 2 of the External Control Plugin, which will cover many more functions in MP. Without going into the specifics, my plugin is controllable via HTTP, so I can easily create a simple app that takes command line switches and sends the commands to the plugin via HTTP.

I'm doing this when I have free time, so it might take a while...

BTW, any particular functions that people want to access via MP? Please post them here...

Sam
 

orencha

Portal Pro
February 2, 2005
66
14
Netanya
Home Country
Israel Israel
Mainly the ability to display a custom "pop-up" message. I'm really into implementing this CallerID feature.
 

civikdude

Portal Pro
March 17, 2005
110
0
U.S.A.
Along these lines ... is there any way to call a specific module/application within MP using a command-line switch/parameter? For example, my remote control issues a "Shift + Ctrl + Alt + 2" when the TV button is pressed. I would like to use this Hotkey Helper program I found (which runs as a service) to map these keypresses to the My TV portion of MP (open MP, bring me directly to the "My TV" module.)

So the missing piece is the command line & parameters that are necessary to accomplish this. Something along the lines of:

C:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe /run="My TV"

Question for samuel337 - it sounds like you're working on something like this. Can you confirm? Is there a trial version you have created that I can try? It would be GREATLY appreciated.

Aaron
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
There's a plugin around here that allows you to jump to various modules using special keypresses, can't remember what its called though.

As for the external control plugin 2, essentially, its been released as its been combined with the web interface, STSC's pvr scheduler, and AllanConquest's LCD plugin. STSC and I however, can't figure out how to display a progress window as the usual code doesn't work... I'm hoping to get the plugin placed into MP's source so its in line with everything else and other people can edit it too.

Sam
 

LastMar

Portal Pro
November 17, 2004
74
0
orencha said:
Mainly the ability to display a custom "pop-up" message. I'm really into implementing this CallerID feature.

orencha said:
Example 2: Sending commands to MP.
An external application can send commands to MP. This will help integrate with unsupported input devices (including remote controllers):

MediaPortal.exe /command "13"
or: MediaPortal.exe /command "ACTION_STOP"

The idea is to help integrate MP with existing software, rather than writing new code to support various features already existing elsewere.

Wanna hear what you think!

- Oren.

Combining these two would allow a lot of new functionality to MediaPortal.... Would prolly make it easier to implement some new plugins as well.
 

civikdude

Portal Pro
March 17, 2005
110
0
U.S.A.
Hi Sam,

samuel337 said:
There's a plugin around here that allows you to jump to various modules using special keypresses, can't remember what its called though.

I'm unable to find the plugin you mention, maybe because I'm just not typing in the right keywords. Any idea where you saw the writeup? Is any out there running this plugin? Thanks!

-aaron-
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
civikdude said:
Hi Sam,

samuel337 said:
There's a plugin around here that allows you to jump to various modules using special keypresses, can't remember what its called though.

I'm unable to find the plugin you mention, maybe because I'm just not typing in the right keywords. Any idea where you saw the writeup? Is any out there running this plugin? Thanks!

-aaron-

See: http://nolanparty.com/mediaportal.sourceforge.net/phpBB2/viewtopic.php?t=5232&highlight=key+jump

Sam
 

Users who are viewing this thread

Similar threads

It is looking and working very well now and I am almost at the point of switching my HTPC to MP2, madvr would definitely push me over the edge for sure.;)
It is looking and working very well now and I am almost at the point of switching my HTPC to MP2, madvr would definitely push me...
We are proud to present MediaPortal 2.3 MediaPortal 2.3 is a full-blown media center software that addresses the most common user...
Replies
4
Views
2K
I think MPExtended need rework for support this - andrewjswan/MPExtended Maybe better direct select to TV SQL DB? Or look how MPExtended get this info ...
I think MPExtended need rework for support this - andrewjswan/MPExtended Maybe better direct select to TV SQL DB? Or look how...
Hi everyone, I am hoping someone can help with the following. I am based in the UK. I have a family member who has a disability...
Replies
7
Views
680
That's awesome news! I can't say how I'm happy to help fellow XP user :D
That's awesome news! I can't say how I'm happy to help fellow XP user :D
Ok, I’m back, MP1.14 has been working great for the last few years, up until last month when a recording overwrote the hard drive...
Replies
18
Views
2K
I use Titan. Your fix works. It looks the same as before. I tried it on 2 clients with slightly different versions of Windows 10; both work. The config program after copying your .xml still says Titan V1.4.0.0. Thanks for your fast response. A problem which has been there some time is that the caller id box doesn't appear when...
I use Titan. Your fix works. It looks the same as before. I tried it on 2 clients with slightly different versions of Windows 10...
This is the YAC listener that was part of the core in MP version 1. It has the additions of the external plugin that was developed...
Replies
11
Views
4K
  • Sticky
OK, yeah for some reason it will not work anymore for me using the username and password method. I had to switch over to the zipcode/lineupid method, but now it is working again.
OK, yeah for some reason it will not work anymore for me using the username and password method. I had to switch over to the...
EDIT: I am working on a new setup of this and will post here when completed. The new setup will allow the addition of Series info...
Replies
40
Views
52K
Top Bottom