NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 45 46 47 48 49 … 93 Next »
Enhanced Web Admin

Thread Closed 
 
  • 0 Vote(s) - 0 Average
Enhanced Web Admin
cubsfan
Offline

Member

Posts: 96
Threads: 2
Joined: Sep 2005
#421
2005-09-28, 12:26 AM
normanr Wrote:same as post #407, which I replied to in post #410.

Hmmm, having the number of days that you have guide data for would be very useful, someone want to code that up and send me the patch? Smile

I have attached a VBScript that will do the check, sorry I'm not real familiar with C# and I don't have an editor loaded for it. If all else fails and no one wants to convert this vbscript into C# then you could always just use it as a custom task.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#422
2005-09-28, 01:14 AM
cubsfan Wrote:I have attached a VBScript that will do the check, sorry I'm not real familiar with C# and I don't have an editor loaded for it. If all else fails and no one wants to convert this vbscript into C# then you could always just use it as a custom task.

I also sent normanr an update to the Statistics page that will display the number of availble days.

The only thing that I noticed is that for some reason you can have an old date hangging out in the DB that can skew the results...compacting the GBPVR database gets rid of the old dates.

I am not sure if GBPVR automatically compacts the db periodically or not....mine always seems to grow to 40-50mb and then I force a compcat via Access.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
cubsfan
Offline

Member

Posts: 96
Threads: 2
Joined: Sep 2005
#423
2005-09-28, 01:20 AM
UncleJohnsBand Wrote:I also sent normanr an update to the Statistics page that will display the number of availble days.

The only thing that I noticed is that for some reason you can have an old date hangging out in the DB that can skew the results...compacting the GBPVR database gets rid of the old dates.

I am not sure if GBPVR automatically compacts the db periodically or not....mine always seems to grow to 40-50mb and then I force a compcat via Access.

An old date shouldn't skew the results...well I guess not the way I did it. I took the date furthest into the future that is in the database and then did a date difference with that date and today's date which will always give you the amount of days left in the guide.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#424
2005-09-28, 01:34 AM
cubsfan Wrote:An old date shouldn't skew the results...well I guess not the way I did it. I took the date furthest into the future that is in the database and then did a date difference with that date and today's date which will always give you the amount of days left in the guide.

I took the request to mean "How many days are there in the EPG" rather than how many days left in the EPG. To calculate the answere I used the DateDiff between the oldest and newest dates in the Programme table.

Your calculation is valid one as well providing a different view of available EPG data. I will add this calculation as another display field on the Statistics page.

You will then know how many days are loaded and how many days are left in the EPG from today.

Teamwork! Big Grin
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#425
2005-09-28, 02:18 AM
cubsfan Wrote:An old date shouldn't skew the results...well I guess not the way I did it. I took the date furthest into the future that is in the database and then did a date difference with that date and today's date which will always give you the amount of days left in the guide.

UncleJohnsBand Wrote:I took the request to mean "How many days are there in the EPG" rather than how many days left in the EPG. To calculate the answere I used the DateDiff between the oldest and newest dates in the Programme table.

Your calculation is valid one as well providing a different view of available EPG data. I will add this calculation as another display field on the Statistics page.

You will then know how many days are loaded and how many days are left in the EPG from today.

Teamwork! Big Grin

cubsfan...I liked your calculation better...there was only a days difference between the two numbers. Since your calculation remvoes the old date issue I have updated what I sent to normanr to use that calc in the display on the Statistics page.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
cubsfan
Offline

Member

Posts: 96
Threads: 2
Joined: Sep 2005
#426
2005-09-28, 04:09 AM
UncleJohnsBand Wrote:[/i]


cubsfan...I liked your calculation better...there was only a days difference between the two numbers. Since your calculation remvoes the old date issue I have updated what I sent to normanr to use that calc in the display on the Statistics page.


Cool. In all reality I think the calculation you ended up using will be a better indicator for the user to determine if their EPG update is working correctly or not. The calculation that was used should always display the same number as the number of days you have set in the config for retrieving EPG data. Did you end up using the exact calculation I did in my code, where I format them as vbShortDates and then add 1 to the difference so it takes into consideration the guide data for the current date?
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#427
2005-09-28, 10:00 AM
cubsfan Wrote:Cool. In all reality I think the calculation you ended up using will be a better indicator for the user to determine if their EPG update is working correctly or not. The calculation that was used should always display the same number as the number of days you have set in the config for retrieving EPG data. Did you end up using the exact calculation I did in my code, where I format them as vbShortDates and then add 1 to the difference so it takes into consideration the guide data for the current date?

I used System.DateTime objects to hold the max date and today's date and then created a small routine to calculate the difference between the dates. The routine is setup to calculate many differences ranging from total seconds to months and what we are using days.

My calculation will work but until I know how old dates can get stuc in the DB I think it could cause confusion to users. For example.....before I manualy compacted my gbpvr.mdb file there was an entry in the Prograsmme table for like 6/2/05. So when my calc ran I got like 130+ days......which is a correct date span but incorrect as to what is really available in the EPG.

Perhaps sub can answer the question as to why these old dates can get stuck out there and if the gbpvr.mdb file is to be autocompavcted at any time.....mine never does....I always have to manually do it.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,765
Threads: 769
Joined: Nov 2003
#428
2005-09-28, 04:18 PM
Quote:Perhaps sub can answer the question as to why these old dates can get stuck out there
If you have recordings that refer to a Programme, then these Programmes are left in the database, until the recording is deleted.

Quote:and if the gbpvr.mdb file is to be autocompavcted at any time
You can only compact the database when nothing holds a lock on it. As such, the only time GB-PVR compacts the database is when you click the OK button in the config app, at which time it stops and restarts the recording service - forcing it to drop its connections.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#429
2005-09-28, 08:54 PM
sub Wrote:If you have recordings that refer to a Programme, then these Programmes are left in the database, until the recording is deleted.

There were no old recordings in the DB connected to the old entries.

sub Wrote:You can only compact the database when nothing holds a lock on it. As such, the only time GB-PVR compacts the database is when you click the OK button in the config app, at which time it stops and restarts the recording service - forcing it to drop its connections.

Are you saying that when you click the ok button in the config that the DB should always compact?

If so, It is not working.....I have never seen my database ever get automatically comacted....I manually do it when it gets to like 40mb in size....which is about every other week.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,765
Threads: 769
Joined: Nov 2003
#430
2005-09-28, 09:10 PM
UncleJohnsBand Wrote:Are you saying that when you click the ok button in the config that the DB should always compact?

If so, It is not working.....I have never seen my database ever get automatically comacted....I manually do it when it gets to like 40mb in size....which is about every other week.
The compaction will only work if there are no other processes holding connections to the database. Lots of things could stop this happening, some examples include - any utilities running which have a connection to the database, the replacement tray app, GBPVR.exe is running, running the GBPVR web stuff via IIS etc.
« Next Oldest | Next Newest »

Users browsing this thread: 9 Guest(s)

Pages (161): « Previous 1 … 41 42 43 44 45 … 161 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  SQLite GUI-based admin & query building? Braklet 3 1,958 2006-10-30, 02:45 PM
Last Post: Braklet
  Recordings made via the Web Admin interface are at the wrong resolution! mmatheny 9 3,079 2006-08-04, 06:34 PM
Last Post: HtV
  Enhanced Web Admin Hobson 3 2,378 2006-06-09, 07:47 AM
Last Post: Hobson
  Enhanced Web Admin (Time Slice error?) SFX Group 2 1,829 2006-02-04, 08:10 PM
Last Post: normanr
  Web Admin suggested feature babybob 0 1,153 2006-01-31, 10:12 PM
Last Post: babybob
  Enhanced Web Admin Request psycik 1 1,338 2005-10-10, 08:16 PM
Last Post: UncleJohnsBand
  reoccuring + web admin aegisx 0 1,174 2005-01-25, 10:57 PM
Last Post: aegisx
  GBPVR Web Admin KingArgyle 8 4,075 2004-12-15, 03:01 AM
Last Post: KingArgyle

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

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

Linear Mode
Threaded Mode