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

    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
    369
    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
    539
    @CyberSimian As I have just posted in the MP2 subforum I will stay with MP1 for the time being. Many thanks for all your very informative and detailed responses. I will take your advice and monitor the Scheduled recordings list for the discrepancies you have described. Cheers.
    @CyberSimian As I have just posted in the MP2 subforum I will stay with MP1 for the time being. Many thanks for all your very...
    I am in Australia. My problem is with recorded tv programs. Most times the program title and info are correct but quite often the...
    Replies
    36
    Views
    3K
    Thank you.
    Thank you.
    This is my first post here. Is it possible to watch my show from cloud storage and external hard drive?
    Replies
    6
    Views
    925
    MP2.5 has the latest OnlineVideo version. But as it was stated, that error will be possibly fixed in a future version, it will have the same problem as you face now.
    MP2.5 has the latest OnlineVideo version. But as it was stated, that error will be possibly fixed in a future version, it will have...
    The iPlayer link in Onlinevideos is only showing the last program in the series. For example 'The Traitors' only shows the final...
    Replies
    3
    Views
    520
    Top Bottom