External Program Talking to MediaPortal (1 Viewer)

BigBuddha

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

    @CyberSimian Sorry, I missed your last post. I ended up doing a clean install on the client and all is well now. It still doesn't let me go back in time when I change channels but it does continue operating from that point on. I'm ok with that. Thanks for your help! EDIT: I now downgraded the server (as I did with the client above)...
    @CyberSimian Sorry, I missed your last post. I ended up doing a clean install on the client and all is well now. It still doesn't...
    When I first start watching a TV program the timeshift functions works perfectly. I can shift back and forth in time and it works...
    Replies
    11
    Views
    2K
    i love how subtitles are implemented in the MP2 videoplayer, this is just perfect. 1080p playback is also very good. But video playback in MP2 is buggy when playing 4k material. Therefore: PLEASE add an option for an external video player! I'd LOVE to have VLC back as videoplayer, like in MP1! This works perfectly. You will make a...
    i love how subtitles are implemented in the MP2 videoplayer, this is just perfect. 1080p playback is also very good. But video...
    i love how subtitles are implemented in the MP2 videoplayer, this is just perfect. 1080p playback is also very good. But video...
    Replies
    0
    Views
    1K
    Isn't there anyone who needs the series episode listings in the EPG? Perhaps someone could move this post to the English forum.
    Isn't there anyone who needs the series episode listings in the EPG? Perhaps someone could move this post to the English forum.
    Since EPG Buddy is no longer working and the 'TV Movie EPG Import ++' plugin is working again, I'm now having trouble completing...
    Replies
    1
    Views
    1K
    The reason I was thinking I needed more RAM is that TV now seems to be HiDef and so the files have grown. I edit the files before storing them, to reduce some size. It is finding that slower, I think. Or it could just be because I'm expecting more? The Baseboard manufacturer says ASUSTech Computer Inc; Baseboard product P7P55D-E...
    The reason I was thinking I needed more RAM is that TV now seems to be HiDef and so the files have grown. I edit the files before...
    I'm not sure where to post this query - I've been told, during a conversation about costs of upgrading, that W11 may not support my...
    Replies
    4
    Views
    4K
    Interesting. :coffee: I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films that have deafening sound effects and music, combined with inaudible dialogue. I have never noticed the problem that you have described, but I also use the EVR renderer, and not the Madvr renderer. So...
    Interesting. :coffee: I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films...
    Every so often, when I switch to a TV channel, my MP client stops accepting user inputs, either from the remote or keyboard/mouse...
    Replies
    27
    Views
    3K
    Top Bottom