External Program Talking to MediaPortal (1 Viewer)

BigBuddha

Portal Pro
August 28, 2005
112
0
59
Is there any way for an external program to ask/query MP if it is currently recording?
 

bigj

Portal Pro
January 10, 2005
245
1
BigBuddha said:
Is there any way for an external program to ask/query MP if it is currently recording?

Let me know how you get on with this. I want to do the same.

Currently I have a daily procedure that restarts the PC, defrags runs WebEPG etc. It runs at about 4am and I just have to hope it doesn't occur in the middle of MP recording. I want a small exe that will let me ping MP for its status:

Are you recording now?
Are you going to start recording with the next N minutes?

Thinking forwards a little - this could also be used as the basis of a feature to test that MP is still alive. i.e. if the request timesout then an auto-reboot could be issued.... would require a process (app) that sleeps for N minutes, then pings MP, and if it's gone runs a user selected app/shell script.
 

mzemina

Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,065
    14
    Tulsa, OK
    Home Country
    United States of America United States of America
    bigj said:
    ... I want a small exe that will let me ping MP for its status:

    Are you recording now?
    Are you going to start recording with the next N minutes?

    Thinking forwards a little - this could also be used as the basis of a feature to test that MP is still alive. i.e. if the request timesout then an auto-reboot could be issued.... would require a process (app) that sleeps for N minutes, then pings MP, and if it's gone runs a user selected app/shell script.

    What about a script that checks the log file?

    Mike
     

    bigj

    Portal Pro
    January 10, 2005
    245
    1
    mzemina said:
    What about a script that checks the log file?
    Mike

    Mmm, yes that would provide: "Is MP recording?", but not "Is MP going to start recording in the next N minutes?"

    Looking at the DB could also work, but I think a general purpose interprocess interface would be good for this and any other stuff in the future.
    Not sure how it would be implemented in .net though.
     

    samuel337

    Portal Pro
    August 25, 2004
    772
    0
    Melbourne, Australia
    BigBuddha said:
    samuel337 said:
    It is possible using the web service that's included with MPW (the web interface).

    Could you give a little more detail on how to do this with MPW?

    Install MPW.

    Navigate to http://<MP computer name>:81/MPExtControlWS/service.asmx

    Click on the Get_MPPropertyManager link.

    Try these properties for the relevant information - this only works when MP is running.

    #TV.View.channel
    #TV.View.thumb
    #TV.View.start
    #TV.View.stop
    #TV.View.remaining
    #TV.View.genre
    #TV.View.title
    #TV.View.description

    #TV.Record.channel
    #TV.Record.start
    #TV.Record.stop
    #TV.Record.genre
    #TV.Record.title
    #TV.Record.description
    #TV.Record.thumb
    #TV.Record.percent1
    #TV.Record.percent2
    #TV.Record.percent3
    #TV.Record.duration
    #TV.Record.current

    Sam
     

    Users who are viewing this thread

    Similar threads

    You need to use "TV Server Config". On the "TV Channels" panel, you will find that there are two entries for "Quest" -- the old one and the new one. Simply delete the old one. When this happens in the future, you can select a channel and click the "Preview" button on the panel. If the channel is working, a small preview screen appears...
    You need to use "TV Server Config". On the "TV Channels" panel, you will find that there are two entries for "Quest" -- the old one...
    Help Please, I have a couple of issues. Query 1: Regarding the Quest channel: Last week, I set it to record a program and it...
    Replies
    1
    Views
    228
    Ok, have a good vacation in Egypt :) Me might have to tell @high to turn off the automated flag for privacy reasons. Also everybody could see I was in netherlands. I think the flag should be related to the country entered and shown ;)
    Ok, have a good vacation in Egypt :) Me might have to tell @high to turn off the automated flag for privacy reasons. Also everybody...
    Hi, Everyone in MP land. A few days ago, I was quietly thinking how reliable my MP2 HTPC has been over the last 18months. Well you...
    Replies
    15
    Views
    1K
    Of course this would be the best option, but I guess it’s not that easy to integrate external players into MP2. It was somewhere discussed, but I could not find the related thread.
    Of course this would be the best option, but I guess it’s not that easy to integrate external players into MP2. It was somewhere...
    Hi there, I have a few questions about the limitations I've discovered (so far, it's early days!) when it comes to watching a tv...
    Replies
    9
    Views
    638
    Well, your issue is really weird. Normally, battery should be OK but, who know ? And, if you have something like that : It could be interesting to see if your battery give 3 Volts. Also, if, after 3 days (for example) if you can start your PC manually and, go into the BIOS, motherboard BIOS time could be a good indicator.
    Well, your issue is really weird. Normally, battery should be OK but, who know ? And, if you have something like that : It could...
    I have been using MediaPortal 1.x (currently 1.30) since 2013 on a Zotac ZBOX ID83 (Intel I3, Windows 7 now Windows 10). I record...
    Replies
    4
    Views
    1K
    Senior moment: But thanks for the reply.
    Senior moment: But thanks for the reply.
    Help! 1: Is there a way to recover deleted program files? I'm using MP2. 2: When a program is deleted, can MP be set so that...
    Replies
    2
    Views
    1K
    Top Bottom