NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 15 16 17 18 19 … 433 Next »
Temporary Log file Folder

Temporary Log file Folder
hdpvr-doug8796
Offline

Senior Member

Posts: 252
Threads: 24
Joined: Sep 2019
#1
2019-10-08, 04:27 PM (This post was last modified: 2019-10-08, 05:20 PM by hdpvr-doug8796.)
Good morning,

I was trying to find where else Log files reside besides C:\Users\Public\NPVR.  I have written a code that will send haupblast.exe after NRecord.log hasn't been modified for around 4 hrs.  However, the log file takes 2 minutes to register when opening on another device.  Is there a temporary location for the file?

Note: I did not find it in AppData
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2019-10-08, 08:15 PM
That's the only logs (unless you're using registry settings for extra logs, which get created in c:\temp, but these contain other specialist messages that aren't relevant to this).

Quote:However, the log file takes 2 minutes to register when opening on another device.
I'm not really sure what you mean by that. It opens the C:\Users\Public\NPVR\logs\nrecord.log file, and writes to the file whenever there is a log message.
hdpvr-doug8796
Offline

Senior Member

Posts: 252
Threads: 24
Joined: Sep 2019
#3
2019-10-08, 08:21 PM (This post was last modified: 2019-10-08, 08:25 PM by hdpvr-doug8796.)
Thanks, so I have noticed that if it is currently recording but the log file does not immediately changed. I may have to modify my code. Does nrecord.exe only exist in taskmgr during a recording? I could use that as part of my code to avoid changing channels mid recording.

Edit: The log file updated after 20 minutes, so it took a while. I am going to have to refine my code so I avoid using my stb idle script from interfering. But my question remains.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#4
2019-10-08, 08:29 PM
(2019-10-08, 08:21 PM)hdpvr-doug8796 Wrote: Thanks, so if it is currently recording but the log file has not changed.  I may have to modify my code.  Does nrecord.exe only exist in taskmgr during a recording? I could use that as part of my code to avoid changing channels mid recording.
NRecord.exe is always running in the background.

Does your set top box not have a setting to turn off power save mode?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#5
2019-10-08, 08:33 PM
Otherwise you can probably set the blaster to some batch file, and in there do some checks before running the blaster to change channels. Those checks might be something like "if it's been more than four hours since this batch file was last called, send power on command". I know that's not exactly the logic you were trying to perform, but pretty close.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#6
2019-10-08, 08:36 PM
or your blaster batch file might use the window scheduler, setting a re-wake batch file to run four hours in the future. That re-wake batch file, would send the wake up command, then again schedule itself to run in four hours.
hdpvr-doug8796
Offline

Senior Member

Posts: 252
Threads: 24
Joined: Sep 2019
#7
2019-10-08, 08:39 PM (This post was last modified: 2019-10-08, 08:42 PM by hdpvr-doug8796.)
Thats actually what my code does. Can you look at it and see if there is something that can help avoid changing in that 20 min time frame that the log isnt shown as being modified?

https://textuploader.com/1krly

It is set on 4 hr schedule. I am just afraid ill be pvr recording and then it will send before the .log has told it that it is currently up to date.

It's kind of like a blood moon, but it is possible.

Perhaps check to see if new files are made in the recordings folder within the last 20 minutes?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#8
2019-10-08, 08:44 PM
If you just want to know if it is recording

curl -s "http://ip:8866/service?method=recording.list&filter=ready" | findstr ">Recording<"

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#9
2019-10-08, 08:45 PM
Yep, that'd be a better approach
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#10
2019-10-08, 08:46 PM
Actually even better...

NScriptHelper.exe -isinuse
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  incorrect frequency in adelaide .ini file spin35 5 3,102 2023-02-01, 05:40 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 3,984 2022-04-14, 04:33 AM
Last Post: Antmannz
  ts file shows length too long? SuttonWillow 2 1,969 2021-03-15, 01:56 PM
Last Post: mvallevand
  Unhandled Exception: file name too long (idiots at pbs made it super long) jobby99 1 1,443 2020-10-29, 09:40 PM
Last Post: mvallevand
  ts file shows length too long SamM 4 2,382 2020-10-06, 02:45 AM
Last Post: Ehrlichia
  EPG displaying small subset of xmltv file. Esteban 9 3,093 2020-07-18, 10:07 PM
Last Post: Esteban
  Max File Size jrockow 2 1,565 2020-04-21, 02:38 PM
Last Post: jrockow
  Skip causes fast-forward to the end of the file madbrain 9 4,001 2020-02-27, 10:24 PM
Last Post: Esch
  Be notified when EPG (xml file) is empty ? nonob 2 1,462 2020-02-14, 05:00 PM
Last Post: nonob
  Recording extra 0-byte .ts file seeker_ktf 6 2,734 2020-01-25, 08:40 PM
Last Post: seeker_ktf

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

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

Linear Mode
Threaded Mode