External Program Talking to MediaPortal (1 Viewer)

BigBuddha

Portal Pro
August 28, 2005
112
0
60
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

    On the assumption you are using an OTA/Cable or Sat tuner then no internet connection is required for live TV recordings. BUT only if you already have Media Portal fully installed and functional. For all practical purposes you will need an internet connection to get Media Portal properly installed on a PC! Yes.
    On the assumption you are using an OTA/Cable or Sat tuner then no internet connection is required for live TV recordings. BUT only...
    is media portal a standalone or is internet connection required for live TV recordings? after scheduling a program will the PC turn...
    Replies
    1
    Views
    306
    MP1 MP2 Auto Rating DE
    Sorry i dont use Mov Pic
    Sorry i dont use Mov Pic
    Hi, I have done this previously but have just done a fresh install of MP1 (1.34 X64) and for the life of me can't see how to do it...
    Replies
    3
    Views
    287
    Having exactly this issue upon performing a clean install of MediaPortal 1.34 64 bit on a clean Windows 11 install, off to try 1.33
    Having exactly this issue upon performing a clean install of MediaPortal 1.34 64 bit on a clean Windows 11 install, off to try 1.33
    Hi, went from a 1.29 install (working, reinstalled for other reasons) on a fairly fresh and fully updated Windows 10 system for a...
    Replies
    1
    Views
    382
    Any other suggestions for this?
    Any other suggestions for this?
    I have Flirc and the Skip 1s remote sending volume +/- events. I prefer to rely on just the Windows volume control so in...
    Replies
    4
    Views
    897
    Hello MP Team, I have issues with mounting .iso files. Two seconds after mounting .iso and starting external player, the iso is unmounted again by MP and therefore doesnt show up in the drive any longer. Example: [2023-10-16 18:43:04,367] [Log ] [MPMain ] [INFO ] - Start process C:\Program Files (x86)\Elaborate...
    Hello MP Team, I have issues with mounting .iso files. Two seconds after mounting .iso and starting external player, the iso is...
    Hello MP Team, I have issues with mounting .iso files. Two seconds after mounting .iso and starting external player, the iso is...
    Replies
    0
    Views
    650
    Top Bottom