External Program Talking to MediaPortal (1 Viewer)

BigBuddha

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

    I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve this would be to use an auto-resume feature in your external player itself. (MPC-HC can do that, I don't know about VLC)
    I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve...
    Hello Folks, Is it possible to enable MP to resume in an External Player, where it left off ? I guess the question also is, can...
    Replies
    2
    Views
    834
    I don't use MP2, so I can only suggest some things to check. (1) Does the file reside on a NAS? If it does, the failure to delete may be because the userid that MP2 runs under is not authorised for delete access on the NAS (i.e. MP2 has read access, but not update/delete access). When you use Windows Explorer, you are using your own...
    I don't use MP2, so I can only suggest some things to check. (1) Does the file reside on a NAS? If it does, the failure to delete...
    I watched a recorded program, (that I thought I'd allready watched previously) After watching it (for the second time) I tried to...
    Replies
    1
    Views
    525
    @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 have added a scheduled task to MariaDB to delete all entries with the same start and end date
    I have added a scheduled task to MariaDB to delete all entries with the same start and end date
    Hello, I'm encountering an issue after importing EPG data into the TV-Server/Database. The Problem: After importing an XMLTV...
    Replies
    7
    Views
    2K
    TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the plugin has. It might be 32-bit, or it might be "any cpu". The plugin is not listed by the "MP Extensions" tool, so I don't know whether it has been tested with the most-recent MP releases. -- from...
    TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the...
    I'm looking for a better recording scheduler. Many recording titles (at least in the UK) change between episodes, sometimes being...
    Replies
    4
    Views
    834
    Top Bottom