NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 2 3 4 5 6 … 93 Next »
Determine Server Tuner/Recorder Status from Console App

 
  • 0 Vote(s) - 0 Average
Determine Server Tuner/Recorder Status from Console App
volfin
Offline

Junior Member

Posts: 41
Threads: 3
Joined: Jul 2016
#11
2016-12-19, 02:55 AM
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.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#12
2016-12-19, 02:57 AM
Your easiest option might followings Martin's suggestion to call the channel stream URL from a batch file for a few seconds.
volfin
Offline

Junior Member

Posts: 41
Threads: 3
Joined: Jul 2016
#13
2016-12-21, 03:21 AM
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.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#14
2016-12-21, 05:03 AM
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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  FM tuner support in NextPVR? Goongyae 2 1,317 2022-11-23, 01:22 PM
Last Post: mvallevand
  Auto top movie recorder janoonk 8 2,546 2021-01-19, 10:49 PM
Last Post: mvallevand
  Status field values in Table SCHEDULED_RECORDING scJohn 2 2,289 2019-07-03, 07:01 PM
Last Post: sub
  Tuner status & disk usage mikaelgu 2 2,877 2017-04-10, 04:51 PM
Last Post: mikaelgu
  Looking for C# UPnP Media Server code bgowland 5 7,555 2016-12-16, 08:25 PM
Last Post: mvallevand
  What causes a new tuner to be used services/live?channel= psycik 2 2,251 2014-02-04, 05:32 PM
Last Post: psycik
  Tuner plugins and client id mvallevand 2 2,038 2013-07-03, 01:39 AM
Last Post: mvallevand
  Tuner Plugins - Output folders mvallevand 2 2,029 2013-02-19, 07:45 PM
Last Post: mvallevand
  Tuner plugins mvallevand 4 2,419 2012-08-05, 11:19 PM
Last Post: mvallevand
  Recorder plugins - Deleting tuners mvallevand 1 1,490 2012-03-29, 12:51 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode