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 … 93 Next »
Test/Development environment for npvr.db3

 
  • 0 Vote(s) - 0 Average
Test/Development environment for npvr.db3
scJohn
Offline

Senior Member

Posts: 281
Threads: 41
Joined: Jun 2013
#1
2020-09-01, 07:18 PM
In production the  npvr database is located at:
"D:\Users\Public\NPVR\npvr.db3"

I have a test/development npvr database located at:
"D:\Users\johni\Projects\graphql-knex-npvr\NPVR\npvr.db3"

Is it possible to point "C:\Program Files (x86)\NPVR\NextPVR.exe" to use the test npvr.db3.  I came across some docs for the command line parameters for NetPVR.exe  but did not need see anything for overriding the production npvr.db3 file.


What is the best practice to set up a development environment so that I don't screw up the production version?

Version 4.

Thanks
Server:
CPU- Intel I5-8400, Ram -12GB, SSD - 128GB, HDD - 1TB, Turners - Hauppauge WinTV-quadHD, OS - Win 10 Home, Router - TP-Link Archer C7(AC1750).

Clients:
Intel NUC CPU - Intel N3700, RAM - 4GB, SSD - 128GB, OS - Win 10, Wired Ethernet.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#2
2020-09-02, 02:32 AM
In v4, you can set an HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\NPVR\DataDirectory registry setting pointing to a another data directory, which could include a different npvr.db3 file etc.

In reality, it kind of makes no sense having the front end software pointing at a different npvr.db3 than the server though. ie, wont be able to schedule recordings etc.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,837
Threads: 954
Joined: May 2006
#3
2020-09-02, 02:56 AM
(2020-09-02, 02:32 AM)sub Wrote: In v4, you can set an HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\NPVR\DataDirectory registry setting pointing to a another data directory, which could include a different npvr.db3 file etc.

In reality, it kind of makes no sense having the front end software pointing at a different npvr.db3 than the server though. ie, wont be able to schedule recordings etc.

The registry setting would also impact the production and dev version, it would be just as easy and maybe safer to rename folder.

If you move to v5, really not sure what's holding you back, you can use an environment variable specific to your setup.

Martin
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,667
Threads: 170
Joined: Jun 2007
#4
2020-09-02, 01:40 PM
(2020-09-02, 02:56 AM)mvallevand Wrote:
(2020-09-02, 02:32 AM)sub Wrote: In v4, you can set an HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\NPVR\DataDirectory registry setting pointing to a another data directory, which could include a different npvr.db3 file etc.

In reality, it kind of makes no sense having the front end software pointing at a different npvr.db3 than the server though. ie, wont be able to schedule recordings etc.

The registry setting would also impact the production and dev version, it would be just as easy and maybe safer to rename folder.

If you move to v5, really not sure what's holding you back, you can use an environment variable specific to your setup.

Martin

I think that maybe what the OP is asking about is really just having both v4 (his production) and v5 (his test) installed on the system at the same time.

If that is the case, then both versions (by default) use different folders for both their program files and their data files, so they can co-exist easily. The only catch is that (again by default) they both use the same port. But you can easily shutdown v4, install v5, shutdown v5, change v5's config.xml to use a different port, then restart both v4 and v5.
scJohn
Offline

Senior Member

Posts: 281
Threads: 41
Joined: Jun 2013
#5
2020-09-02, 08:04 PM
(2020-09-02, 02:32 AM)sub Wrote: ........

In reality, it kind of makes no sense having the front end software pointing at a different npvr.db3 than the server though. ie, wont be able to schedule recordings etc.

This is exactly the testing I am trying to do: record once and recurring .  

Renaming folder option is interesting.  Idea I could just add 2 scripts to my package.josn file.   One to copy the files in NPVR  to a safe place before testing and the other to  restore those same file after testing.  

There is also that can of worms for the wake timers in powercfg to wake the up and record the event Cry
Server:
CPU- Intel I5-8400, Ram -12GB, SSD - 128GB, HDD - 1TB, Turners - Hauppauge WinTV-quadHD, OS - Win 10 Home, Router - TP-Link Archer C7(AC1750).

Clients:
Intel NUC CPU - Intel N3700, RAM - 4GB, SSD - 128GB, OS - Win 10, Wired Ethernet.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,837
Threads: 954
Joined: May 2006
#6
2020-09-02, 08:18 PM (This post was last modified: 2020-09-03, 12:54 AM by mvallevand.)
As soon as you stop a server I am pretty sure the wake timers for that database will stop.

I script like this run as admin should work but you have to create Production first and change your release folder so the script works
Code:
net stop "npvr recording service"
if not exists  "D:\Users\johni\Projects\graphql-knex-npvr\NPVR\"  goto production
ren "D:\Users\Public\NPVR\" "D:\Users\Public\NPVR\Production\"
ren "D:\Users\johni\Projects\graphql-knex-npvr\NPVR\" "D:\Users\Public\NPVR\"
goto restart
:production
ren "D:\Users\Public\NPVR\" "D:\Users\johni\Projects\graphql-knex-npvr\NPVR\"
ren "D:\Users\Public\NPVR\Production\" "D:\Users\Public\NPVR\"
:restart
net start "npvr recording service"

Martin
scJohn
Offline

Senior Member

Posts: 281
Threads: 41
Joined: Jun 2013
#7
2020-09-03, 09:53 PM
Running the command: NextPVR.exe --recurring is suppose to re-schedule recurring programs using current EPG data. Looking at the log, the only hint that this done is:

2020-09-03 17:17:00.597 [DEBUG][1] Version: 4.2.4.190307
2020-09-03 17:17:00.597 [DEBUG][1] SingleInstance()
2020-09-03 17:17:00.837 [INFO][1] About to connect to remote recording service
2020-09-03 17:17:00.845 [DEBUG][1] RecordingServiceProxy@exit
2020-09-03 17:17:00.846 [DEBUG][1] Rendering for screen size: 1920x1080

There is nothing obvious like when looking at the nrecord log when the EPG is updated. Or is it I don't see anything in the NPVR log because there was no changes to process.

How are 'record once' determined because they are not in the RECURRING_RECORDING table but in the SCHEDULED_RECORDING table.

Unfortunately when using -- recurring, NextPVR does not exit like when running with -updateepgonly.
Server:
CPU- Intel I5-8400, Ram -12GB, SSD - 128GB, HDD - 1TB, Turners - Hauppauge WinTV-quadHD, OS - Win 10 Home, Router - TP-Link Archer C7(AC1750).

Clients:
Intel NUC CPU - Intel N3700, RAM - 4GB, SSD - 128GB, OS - Win 10, Wired Ethernet.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,837
Threads: 954
Joined: May 2006
#8
2020-09-03, 10:36 PM
Did you try with the documented syntax -recurring (single dash)?

Martin
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,667
Threads: 170
Joined: Jun 2007
#9
2020-09-03, 11:20 PM
(2020-09-03, 09:53 PM)scJohn Wrote: How are 'record once' determined because they are not in the RECURRING_RECORDING table but in the SCHEDULED_RECORDING table.

One-off (i.e. 'record once') recordings are only stored in the SCHEDULED_RECORDING table. They get put in there when you select to record them. And they stay there until they get deleted. What are you expecting???
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,837
Threads: 954
Joined: May 2006
#10
2020-09-03, 11:37 PM
Missed that it is (also including in progress) one offs

With the JSON API the absence of these fields are one-offs.

"recurring": true,
"recurringParent": 495

If your are using the .NET API check ScheduledRecording.RecurrenceOID

If you use the database it would be

Code:
select * from scheduled_recording
where status = 1 or status = 3
and recurrence_oid=0

Martin
« 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
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,340 2021-03-11, 03:59 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 68,120 2020-11-26, 10:02 PM
Last Post: mandai
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,394 2018-10-23, 07:24 AM
Last Post: almightyj
  ios app to control npvr ui idea jnbooker15 4 3,566 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,447 2015-09-21, 06:39 PM
Last Post: jnbooker15
  Couple of questions about hacking npvr.db3 drmargarit 6 4,224 2014-09-08, 02:22 AM
Last Post: sub
  high res (256x256+) npvr icon? reven 15 5,785 2013-09-01, 05:13 AM
Last Post: psycik
  API docs to help with plugin development? McBainUK 3 2,748 2013-06-08, 06:14 PM
Last Post: sub
  trying to fake npvr database for unit tests reven 3 2,246 2013-05-20, 08:53 AM
Last Post: reven
  Multiple genres in npvr.db3 bgowland 5 2,820 2013-04-16, 09:53 PM
Last Post: ACTCMS

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

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

Linear Mode
Threaded Mode