Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Determine Server Tuner/Recorder Status from Console App

  1. #11
    Join Date
    Jul 2016
    Location
    USA
    Posts
    24
    thanks, I'll look into that. I code windows apps in C++ and C# so that's no problem, just wasn't sure how to talk to the card.

  2. #12
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    83,145
    Your easiest option might followings Martin's suggestion to call the channel stream URL from a batch file for a few seconds.

  3. #13
    Join Date
    Jul 2016
    Location
    USA
    Posts
    24
    yeah for posterity, this is what I ended up doing:

    • Downloaded a copy of wget for windows here: http://gnuwin32.sourceforge.net/packages/wget.htm (don't forget the separate dependencies zip file)
    • created a batch file to run wget and start the live tv. named it pingchannel.bat
      Code:
      "C:\Program Files (x86)\wget\bin\wget.exe" "http://localhost:8866/live?channel=705" -O nul
      exit
    • Added this to Wakeup.bat:
      Code:
      start pingchannel.bat
      timeout 10
      taskkill /IM wget.exe /f
      timeout 5


    Seems to do the trick.

    I couldn't for some reason put the wget line directly after 'start', because doing so actually caused Windows Edge to open simultaneously to wget (some strange Windows 10 stuff I guess). But the workaround is fine.

    Thanks for the help.

  4. #14
    Join Date
    May 2006
    Location
    Canada
    Posts
    25,017
    The syntax for the start pseudo code wasn't complete you need something like

    Code:
    start /b "" "C:\Program Files (x86)\wget\bin\wget.exe" "http://localhost:8866/live?channel=705" -O nul
    Martin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •