NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 9 10 11 12 13 … 159 Next »
Annoyances caused by sporting events

 
  • 0 Vote(s) - 0 Average
Annoyances caused by sporting events
greg in kansas
Offline

Member

Posts: 170
Threads: 27
Joined: Feb 2007
#31
2014-09-28, 04:19 PM
Ok, did the upgrade. Got this from the command line.


C:\Users\freevo-new>"C:\Program Files\NPVR\NextEnd.exe" --oid 37274
<Event>
<OID>3045066</OID>
<Title>The Voice</Title>
<SubTitle>Blind Audition Premiere Relived</SubTitle>
<Description>Recep of the blind auditions premiere.</Description>
<ChannelOID>7190</ChannelOID>
<StartTime>2014-09-28T00:00:00.0000000Z</StartTime>
<EndTime>2014-09-28T01:00:00.0000000Z</EndTime>
<FirstRun>true</FirstRun>
<OriginalAirDate>2014-09-27T00:00:00.0000000</OriginalAirDate>
<Rating>TV-PG</Rating>
<Audio>stereo</Audio>
<Genres>
<Genre>Reality</Genre>
<Genre>Music</Genre>
</Genres>
<UniqueID>EP013657560173</UniqueID>
</Event>

STATUS_COMPLETED
Not recording stop monitoring

C:\Users\freevo-new>



Microsoft Windows [Version 6.1.7600]
Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\freevo-new>"C:\Program Files\NPVR\NextEnd.exe" --sunday
2014-09-28 18:35 -0400
9/28/2014 5:35:00 PM
3041911
3045910
3047846
3041912
3045911
3045911
3046777
3047847
3045912
3045913
3046779
Running
False
2014-09-28 11:04:07

C:\Users\freevo-new>
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,843
Threads: 954
Joined: May 2006
#32
2014-09-28, 04:40 PM
Ok thanks, I guess you the wrong OID, but as it turns out, none of your shows tonight are impacted by the late game. I was surprised at first until I checked your link and saw that you only have the early game today. I actually have two channels impacted tonight by different late games. OTA you don't have many channels with sports, but if you'd like we can try another test on Thursday let me know.

Martin
greg in kansas
Offline

Member

Posts: 170
Threads: 27
Joined: Feb 2007
#33
2014-09-28, 04:44 PM
Yes, if I am helping and not slowing you down. Can I leave this in place and see how it goes? One thing, the OID is one show in one time right?

thanks Greg
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,843
Threads: 954
Joined: May 2006
#34
2014-09-28, 05:03 PM
You aren't slowing me down as it's a really slow process because I have long live 3 hour waits for games to start/end and there is a lot of dead time. It helps to focus me on this as a real world app too. You can leave it in place but I am tweaking the logging and cleaning up a bit of logic too so there will be an updates that impacts sports. I don't even create logs for the oid unless sports are involved.

The OID is the ID for recording so tonight the one for Madam Secretary would be in the NRecord log after the EPG Update as

2014-09-27 16:58:46.810 [DEBUG][8] Requesting wake up for 'RecordingOID####' at 9/28/2014 at the time with padding

If you just want to play with it and you how to read the npvr.db3 there is another option that uses the EPG Event OID --eventoid #### and you could monitor a game this afternoon to see what it does.

Martin
greg in kansas
Offline

Member

Posts: 170
Threads: 27
Joined: Feb 2007
#35
2014-09-28, 07:26 PM
If the game in not recording but the show is will your log show a check for game end time? for the show?
also is your program running with all recordings not just games?

thanks Greg
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,843
Threads: 954
Joined: May 2006
#36
2014-09-28, 08:13 PM (This post was last modified: 2014-09-28, 08:20 PM by mvallevand.)
It runs against all shows but in only cares about shows in this list (NBA is broken right now)

{ "NFL Football", "College Football", "NHL Hockey", "MLB Baseball", "AHL Hockey", "CHL Hockey", "Hockey LNH" });

For all parallel recording that aren't in this monitored list, it also checks the preceding 4 hours in the guide to see if there was one. If there it then checks to see if it is still running or if there is a "stop" file in the temp folder. The stop file tells me how long to extend the end time. If it is not running and no stop file exists nothing else happens

If it is still running as might be the case with 60 minutes it keeps extending it as if it was a sports event. Of course sports events will be extended naturally when they are scheduled.

If the event is not running the stop file amount and the postgame amount get added.

The --sunday option runs in the background and even wakes the backend to create the stop files that might be required. You can use --oid and --eventoid to create stop files anytime , but I don't think that will be much good for average users.

It doesn't do much except wait until the last 15 minutes to check to see if it is running and that check is every two minutes so it not very aggressive.

If you cancel a recording then monitoring stops for it.

Martin
greg in kansas
Offline

Member

Posts: 170
Threads: 27
Joined: Feb 2007
#37
2014-09-28, 08:57 PM
Nice that was what I was hoping. Sounds like it works as good for shows after games as getting the end of games, looks like no chance for NASCAR.

You have been so nice, one more ?

I started this kind of late in life but having a ball. You seem like a master to me. Would you look at this code and see what I might be doing wrong at the beginning of this? does not seem, like it starts right.
Thanks so much
Greg

// 9-14 Greg GARAGE DOOR light

#include <stdint.h>
#include <TouchScreen.h>
#include <TFT.h>

#ifdef SEEEDUINO
#define YP A2 // must be an analog pin, use "An" notation!
#define XM A1 // must be an analog pin, use "An" notation!
#define YM 14 // can be a digital pin, this is A0
#define XP 17 // can be a digital pin, this is A3
#endif

#ifdef MEGA
#define YP A2 // must be an analog pin, use "An" notation!
#define XM A1 // must be an analog pin, use "An" notation!
#define YM 54 // can be a digital pin, this is A0
#define XP 57 // can be a digital pin, this is A3
#endif
#define TS_MINX 140
#define TS_MAXX 900

#define TS_MINY 120
#define TS_MAXY 940

// The 2.8" TFT Touch shield has 300 ohms across the X plate
TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300);


// constants won't change. They're used here to set pin numbers:

const int buttonGdoor = A5; // the number of the pushbutton pin
const int buttonbackdoor = A4;
int buttonG = LOW; // variable for reading the pushbutton status
int lastButtonState = HIGH;
int lastButtonStateBD = HIGH;
int buttonBackD = LOW;
const int GdoorRelay = 0; // the number of the back door relay pin

void setup()
{
// Serial.begin(9600);
Tft.init(); //init TFT library
// initialize the pushbutton pin as an input:
pinMode(buttonGdoor, INPUT_PULLUP);
pinMode(buttonbackdoor, INPUT_PULLUP);

// set first screen
GARAGEDOORCLOSED();
BACKDOORCLOSED();


/*
drawRectangle(unsigned int poX, unsigned int poY,
unsigned int length,unsigned int width,unsigned int color);
fillRectangle(unsigned int poX, unsigned int poY,
unsigned int length, unsigned int width, unsigned int color);
// Tft.fillRectangle(0, 0, 239,80,BLUE);;
*/
}

void loop()
{
// a point object holds x y and z coordinates
Point p = ts.getPoint();
p.x = map(p.x, TS_MINX, TS_MAXX, 240, 0);
p.y = map(p.y, TS_MINY, TS_MAXY, 320, 0);

// we have some minimum pressure we consider 'valid'
// pressure of 0 means no pressing!

// check touch screen for top button
if (p.z > ts.pressureThreshhold) {
if (p.y < 160) {
GARAGEDOOROPENING();
digitalWrite(GdoorRelay, HIGH); // turn the Relay on
delay(100);
digitalWrite(GdoorRelay, LOW); // turn the Relay off

}
// Serial.print("X = "); Serial.print(p.x);
// Serial.print("\tY = "); Serial.print(p.y);
// Serial.print("\tPressure = "); Serial.println(p.z);
}


// GARAGEDOOR button screen logic
buttonG = digitalRead(buttonGdoor);

if (buttonG != lastButtonState) {

if (buttonG == HIGH)
{GARAGEDOORCLOSED();}

if (buttonG == LOW)
{GARAGEDOOROPEN();}
}
lastButtonState = buttonG;

// Button 2
buttonBackD = digitalRead(buttonbackdoor);

if (buttonBackD != lastButtonStateBD) {

if (buttonBackD == LOW)
{BACKDOORCLOSED();}

if (buttonBackD == HIGH)
{BACKDOOROPEN();}
}
lastButtonStateBD = buttonBackD;
}


// /Sub rutines
void GARAGEDOOROPENING() {
Tft.fillRectangle(0, 0, 239,160,WHITE);
Tft.drawString("GARAGE ",60,30,3,BLACK);
Tft.drawString("DOOR ",80,60,3,BLACK);
Tft.drawString("OPENING",50,90,3,BLACK);
}

void GARAGEDOOROPEN() {
Tft.fillRectangle(0, 0, 239,160,RED);
Tft.drawString("GARAGE ",60,30,3,BLACK);
Tft.drawString("DOOR ",80,60,3,BLACK);
Tft.drawString("OPEN",80,90,3,BLACK);
}

void BACKDOORCLOSED() {
Tft.fillRectangle(0, 161, 239,319,DARKGREEN);
Tft.drawString("BACK ",80,200,3,BLACK);
Tft.drawString("DOOR ",80,230,3,BLACK);
Tft.drawString("CLOSED",60,260,3,BLACK);
}

void GARAGEDOORCLOSED() {
Tft.fillRectangle(0, 0, 239,160,DARKGREEN);
Tft.drawString("GARAGE ",60,30,3,BLACK);
Tft.drawString("DOOR ",80,60,3,BLACK);
Tft.drawString("CLOSED",60,90,3,BLACK);
}
void BACKDOOROPEN() {
Tft.fillRectangle(0, 161, 239,319,RED);
Tft.drawString("BACK ",80,200,3,BLACK);
Tft.drawString("DOOR ",80,230,3,BLACK);
Tft.drawString("OPEN",80,260,3,BLACK);
}
greg in kansas
Offline

Member

Posts: 170
Threads: 27
Joined: Feb 2007
#38
2014-09-28, 09:04 PM
I don't see a game Thursday but we do have the news tonight after the Saints game.

Greg
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,843
Threads: 954
Joined: May 2006
#39
2014-09-28, 09:13 PM
I will check your code tonight. Here's what I thought was Thursday for you on 12.1 http://www.tvpassport.com/tvgrid.shtml?l...=-6&dsto=1 but the 10:35 news tonight on 3.1 would be even better.

Attached is the latest I am using, hopefully I didn't break anything.

I will ask Slugger who wrote SRE for SageTV users and who manages the web site I use about NASCAR and for me F1. I'd really like to be able to deal with the rain delays.

Martin
greg in kansas
Offline

Member

Posts: 170
Threads: 27
Joined: Feb 2007
#40
2014-09-28, 10:36 PM
Yes your right I did not look late enough. We have the news after that one. Been using NPVR since .9 Sports has always been long, messing up shows.

Greg
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (19): « Previous 1 2 3 4 5 6 … 19 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  New Zealand cyber criminal caused more than $20 million worth of damage wannabepvr 3 1,835 2007-11-30, 03:47 AM
Last Post: JonnyCam

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

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

Linear Mode
Threaded Mode