[WIP] HomeServer Plugin (2 Viewers)

JorisFRST

MP Donator
  • Premium Supporter
  • December 17, 2007
    82
    3
    Hi Joz,

    I just made a batch file to start MP on my bethroom desktop :

    Then created a shortcut that starts this batchfile minimised.

    "
    d:
    cd "D:\My files\Programs\media\MP HomeServer 0.0.4.0\MPHSClient"
    MPHSClient
    c:
    cd "C:\Program Files\Team MediaPortal\MediaPortal"
    mediaportal
    pskill mphsclient.exe
    "

    PSKILL is part of pstools, downloadable on the microsoft website.
    PsTools

    Just add the pstools path to your windows PATH variable, then you can use it from anywhere.

    Not really an answer on your mapping issue, but works great with mediaportal.
     

    Union

    MP Donator
  • Premium Supporter
  • January 23, 2009
    6
    0
    Home Country
    United Kingdom United Kingdom
    Great work Diggen

    I have a multi seat setup and use MPHSClient to wake up my server when I power up a dedicated MP Client.

    Had a slight issue because my MP Clients were powering up too quickly for my server hence the server was not ready by the time MP was up.

    The fix I have used is to un-check “Autostart MediaPortal on Windows startup” in MP configuration and wrote the following batch file:- StartMP.bat

    start C:\MPHSClient\MPHSClient.exe
    start /W Wait 15
    cd "C:\Program Files\Team MediaPortal\MediaPortal"
    start MediaPortal.exe

    And placed a shortcut to StartMP.bat in the Windows startup folder.

    Wait.exe is needed and can be found via google, in my configuration I put Wait.exe in the same directory as the StartMP.bat file. The 15 means wait for 15 seconds.

    From Desktop PC’s I manually run MPHSClient to wake up my server if I wish to use MP, a server based network share, or print via my server. Another alternative from a Desktop PC to start MP would be to manually run the StartMP.bat file but a repeat run of the StartMP.bat file would start another copy of MPHSClient, therefore I guess ideally the StartMP.bat file should check to see if MPHSClient is running!
     

    joz

    Portal Pro
    March 17, 2008
    1,353
    306
    Home Country
    Netherlands Netherlands
    This is the batch I came up with to toggle heartbeat monitor client on/off with one button in MP, using multishortcut;

    tasklist /FI "IMAGENAME eq MPHSClient.exe" 2>NUL | find /I /N "MPHSClient.exe">NUL
    REM kill or start MPHSClient using the errorlevel as conditional value
    if "%ERRORLEVEL%"=="0" (taskkill /F /im MPHSClient.exe) else (start /min MPHSClient.exe)

    Union said:
    therefore I guess ideally the StartMP.bat file should check to see if MPHSClient is running!
    Check my batch, there's a solution in there somewhere (almost the whole thing :))
     

    MyPVR

    Portal Pro
    September 22, 2006
    123
    5
    Home Country
    Germany Germany
    I just updated to MP 1.0.2 and installed WIP 0.0.4: It meets PERFECTLY my requirements!

    I'am using the "Reversed HeartBeat" to keep the machine up and running as long as a client (Desktop to access the virtual WHS and a 2. MP Client), only.

    Great tool!

    Thanks,
    MyPVR
     

    JiRo

    MP Donator
  • Premium Supporter
  • May 1, 2009
    184
    44
    Prague
    Home Country
    Czech Republic Czech Republic
    Hi Diggen,

    I think your plugin need rebuild for RC2. There is incompability with the one dll. Pleas can you do it?

    By the way, HomeServer Plugin is very very usefull :D for it!

    Many thanks.

    JiRo.
     

    Diggen

    Portal Pro
    April 15, 2007
    55
    20
    Home Country
    Germany Germany
    AW: [WIP] HomeServer Plugin

    Sorry, I didn't answered a long time here :(
    Had many things to do and no time for developing...
    I hope there will be more Time in the future.
    When I find the sources in my "Backup-Chaos" I will clean and release it. Maybe someone has more time at the moment.
    :sorry:
     

    justinbyoung

    MP Donator
  • Premium Supporter
  • February 25, 2010
    25
    10
    Wellington
    Home Country
    New Zealand New Zealand
    Just came across this plugin, and it seems perfect for my needs. However it doesn't seem to be compatible with MP 1.1 Final. Any chance of a updated version? No new features required, just compatibility with 1.1 Final. Another question, what exactly does the client do? Does it just ping the server on a regular basis, or is it something more complex? I have Linux and Mac machines in the house that I would also like to have the client ability. I was wondering if it was possible to emulate the client process easily on other platforms.
     

    justinbyoung

    MP Donator
  • Premium Supporter
  • February 25, 2010
    25
    10
    Wellington
    Home Country
    New Zealand New Zealand
    Does anyone know of a similar tool to this, that can stop a PC from going into standby if it can see that another PC on the network is awake? It seems to me that this doesn't need to be a Mediaportal specific plugin, but just a background app.
     

    VdR

    MP Donator
  • Premium Supporter
  • October 17, 2006
    612
    16
    Belgium
    Home Country
    Netherlands Netherlands
    Somewhere on this forum there is mention of a little application that would run on the client and is able to start a process (doing nothing) on the server. With that process added to the 'do not shutdown if running' list of power scheduler this could work.

    I remember looking at that and then deciding it was too cumbersome.

    VdR
     

    JiRo

    MP Donator
  • Premium Supporter
  • May 1, 2009
    184
    44
    Prague
    Home Country
    Czech Republic Czech Republic
    Does anyone know of a similar tool to this, that can stop a PC from going into standby if it can see that another PC on the network is awake? It seems to me that this doesn't need to be a Mediaportal specific plugin, but just a background app.

    You are at the right place. Software you want is just HomeServer plugin.
     

    Users who are viewing this thread

    Top Bottom