SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #701  
Old 05-01-2010, 07:58 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Islander View Post
Saturday came around and it seems that it is honoring the OFFDAY settings.

I had another read of the guide and found that all references to OFFHOURS show the time gaps as this:

:OFFHOUR "20-22, 7-10"

were on mine these would be reversed. I copied mine from the medishrink thread as a working setup. Maybe the time blocks have to be presented from higher to lower?

If no one knows for certain I guess I can switch mine around on one of the six clients and see if it makes a difference, or maybe get rid of the one hour block in the morning so that it only has one block each day.
The order shouldn't matter, either way should work. If you can test and let me know your results then I'll take a look at it.

Quote:
Originally Posted by razrsharpe View Post
@Islander - something just came to me... try
Code:
:OFFHOUR "7-8, 16-23"
IIRC i think the 0-23 is the allowable range

Here slugger talks about 23 disabling until 11:59pm
Yes, 0-23 is the allowable range. And a 23 would block until 23:59. Midnight would be hour 0 (not 24).
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #702  
Old 05-01-2010, 10:44 AM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
Save Settings?

From what I can tell, my settings are not being saved. The Save button at the bottom of the settings screen isn't clickable. Also, each time I log out of SJQ then back in, there is nothing filled in on the settings page. Before, I thought it was writing the settings anyway, but after having a job failure and not getting an email though SageAlert, I looked closer and saw that my changes to max queue loader sleep and client restrictions didn't seem to be working either. Other things like the password and rules save fine.

I'm using SJQ 3.0.1.704 and Java 1.6.0_19, and tested IE8 on Win7 64 and WinXP.
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #703  
Old 05-01-2010, 12:47 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by KarylFStein View Post
From what I can tell, my settings are not being saved. The Save button at the bottom of the settings screen isn't clickable. Also, each time I log out of SJQ then back in, there is nothing filled in on the settings page. Before, I thought it was writing the settings anyway, but after having a job failure and not getting an email though SageAlert, I looked closer and saw that my changes to max queue loader sleep and client restrictions didn't seem to be working either. Other things like the password and rules save fine.

I'm using SJQ 3.0.1.704 and Java 1.6.0_19, and tested IE8 on Win7 64 and WinXP.
I've had various reports of this problem in the past, but have never been able to reproduce it locally so I've never been able to track it down. I suggest you try Firefox or Chrome and see if that allows you to load/save settings.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #704  
Old 05-01-2010, 08:30 PM
Islander Islander is offline
Sage Advanced User
 
Join Date: Oct 2009
Location: Cayman Islands
Posts: 163
I changed the end of the range on all clients to 23 instead of 24.

As a test I commented out the OFFDAY on one of the clients which leaves only the OFFHOUR to be dealt with as a condition. The current time is within the blocked range and the client has not been assigned any of the stacks sitting in the active que, so far so good. I guess that having 24 (or any erroneous entry on the line) was causing it to ignored [there no errors related to this listed anywhere that I could find]. Hopefully come Monday everything will run as it is supposed to. Thanks for the help.
__________________
Main Server: Intel Core i5 Processor i5-670, MSI Motherboard H57M-ED65, Corsair 4 GB PC3-12800, Intel 320 Series 160 GB SSD, Western Digital 150 GB VelociRaptor, LIAN-LI PC-C36B Case, Vista 64 Home Premium, JavaHeap = 1,200. +Network Encoder.
Storage: HP487 with 37.5TB of storage.
Extenders: x2 HD300 x6 HD200.
Tuners: Hauppauge HVR-1950 USB x3, USBIRT.
Adds-in:Many!.
Others: Sony BDVE500W, OPPO HM-31 dvanced HDMI 1.3 1080p Switch, Harmony One.
Reply With Quote
  #705  
Old 05-01-2010, 11:21 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Islander View Post
I changed the end of the range on all clients to 23 instead of 24.

As a test I commented out the OFFDAY on one of the clients which leaves only the OFFHOUR to be dealt with as a condition. The current time is within the blocked range and the client has not been assigned any of the stacks sitting in the active que, so far so good. I guess that having 24 (or any erroneous entry on the line) was causing it to ignored [there no errors related to this listed anywhere that I could find]. Hopefully come Monday everything will run as it is supposed to. Thanks for the help.
Just took a peek at the code and indeed if you used 24 then it would have been rejected (valid range is 0-23 for hour). There should have been error messages in the sjq.log file alerting you of this:

Range must be between 0 and 23!

You should have seen this in the error logs each time a client connected to the server with an invalid hour value.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #706  
Old 05-01-2010, 11:41 PM
Islander Islander is offline
Sage Advanced User
 
Join Date: Oct 2009
Location: Cayman Islands
Posts: 163
Yes now that you mention it I saw it but thought it had to do with the number of resources. You live you learn, making a note on my Sjq bible .
__________________
Main Server: Intel Core i5 Processor i5-670, MSI Motherboard H57M-ED65, Corsair 4 GB PC3-12800, Intel 320 Series 160 GB SSD, Western Digital 150 GB VelociRaptor, LIAN-LI PC-C36B Case, Vista 64 Home Premium, JavaHeap = 1,200. +Network Encoder.
Storage: HP487 with 37.5TB of storage.
Extenders: x2 HD300 x6 HD200.
Tuners: Hauppauge HVR-1950 USB x3, USBIRT.
Adds-in:Many!.
Others: Sony BDVE500W, OPPO HM-31 dvanced HDMI 1.3 1080p Switch, Harmony One.
Reply With Quote
  #707  
Old 05-02-2010, 12:03 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
the error text seems to need some further clarification, something like:

Error in :OFFHOUR - Range must be between 0 and 23!
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #708  
Old 05-02-2010, 07:55 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Yea, if you've been in the military you'd know that there is no 24:00. Midnight is 00:00.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #709  
Old 05-07-2010, 08:52 AM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
Hey Slugger - great GREAT tool. I've known it was around forever, just never thought I needed it!

Question about the moving airings - when a show is moved, do all the artifacts that exist with it get moved also? I'm thinking .edl files mainly.

btl.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #710  
Old 05-07-2010, 10:53 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by bialio View Post
Hey Slugger - great GREAT tool. I've known it was around forever, just never thought I needed it!

Question about the moving airings - when a show is moved, do all the artifacts that exist with it get moved also? I'm thinking .edl files mainly.

btl.
All artifacts are moved automatically as well.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #711  
Old 05-08-2010, 09:27 AM
tchapin tchapin is offline
Sage Aficionado
 
Join Date: Aug 2007
Posts: 279
recipes?

Hey guys,

I was thinking that it might be a good idea to have a separate thread where people can look / post for SJQ server and client recipes.

Anyone interested?

Todd
Reply With Quote
  #712  
Old 05-08-2010, 09:37 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by tchapin View Post
Hey guys,

I was thinking that it might be a good idea to have a separate thread where people can look / post for SJQ server and client recipes.

Anyone interested?

Todd
Just go ahead and make one.. :-)
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #713  
Old 05-08-2010, 12:33 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
Is there a way for SJQ to realize that a job it has in the queue is no longer valid and clear it out?

For instance, if there isn't any client available for a job and then the underlying media file is deleted - it seems like the job just hangs in the queue forever.

I'm seeing this with a job that I don't have any clients configured for at the moment - I suspect if it tried to run one on a non-existent file it would clear out.

btl.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #714  
Old 05-08-2010, 01:05 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by bialio View Post
Is there a way for SJQ to realize that a job it has in the queue is no longer valid and clear it out?

For instance, if there isn't any client available for a job and then the underlying media file is deleted - it seems like the job just hangs in the queue forever.

I'm seeing this with a job that I don't have any clients configured for at the moment - I suspect if it tried to run one on a non-existent file it would clear out.

btl.
If there is no configured client for a task type then the task will sit in the queue forever - that's by design because eventually a client configured for that task type might call home and get assigned the task. You can clear items out of the queue manually by clicking on them.

When a task is about to be assigned to a client, the server ensures that the media file still exists. If it doesn't then the task is silently dropped from the queue (and the task is not assigned to the client).
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #715  
Old 05-08-2010, 01:35 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
So I understand what you are saying, but I think a periodic check by the server for tasks that are in the queue that no longer have a media file would not defeat your intention, and keep the queue a little cleaner.

btl.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #716  
Old 05-08-2010, 02:27 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by bialio View Post
So I understand what you are saying, but I think a periodic check by the server for tasks that are in the queue that no longer have a media file would not defeat your intention, and keep the queue a little cleaner.

btl.
Hmm... I think we already have that. Presumably a task whose media file has been deleted will be assigned to a client within 5 minutes of being added to the queue (because, by default, task clients call the server every 5 minutes looking for work to do). So basically every 5 minutes (or so, depending on your task client config) tasks with deleted media files will be removed from the queue. The exception to this rule is tasks that have no clients configured to run them. Those will be stuck in the queue indefinitely. I can see the argument for a "QueueCleaner" thread that goes in and wipes these out for you, but on the other hand, I like leaving them in the queue as a reminder to users that they may have something wrong in their setup (namely, they've queued tasks that have no chance of being consumed by a task client, usually due to a typo in the ruleset or the client config).
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #717  
Old 05-08-2010, 04:45 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Slugger View Post
Hmm... I think we already have that. Presumably a task whose media file has been deleted will be assigned to a client within 5 minutes of being added to the queue (because, by default, task clients call the server every 5 minutes looking for work to do). So basically every 5 minutes (or so, depending on your task client config) tasks with deleted media files will be removed from the queue. The exception to this rule is tasks that have no clients configured to run them. Those will be stuck in the queue indefinitely. I can see the argument for a "QueueCleaner" thread that goes in and wipes these out for you, but on the other hand, I like leaving them in the queue as a reminder to users that they may have something wrong in their setup (namely, they've queued tasks that have no chance of being consumed by a task client, usually due to a typo in the ruleset or the client config).
Or a change to their setup that no longer includes said task. I think this is the situation he's trying to cover.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #718  
Old 05-08-2010, 05:34 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Slugger View Post
Hmm... I think we already have that. Presumably a task whose media file has been deleted will be assigned to a client within 5 minutes of being added to the queue (because, by default, task clients call the server every 5 minutes looking for work to do). So basically every 5 minutes (or so, depending on your task client config) tasks with deleted media files will be removed from the queue. The exception to this rule is tasks that have no clients configured to run them. Those will be stuck in the queue indefinitely. I can see the argument for a "QueueCleaner" thread that goes in and wipes these out for you, but on the other hand, I like leaving them in the queue as a reminder to users that they may have something wrong in their setup (namely, they've queued tasks that have no chance of being consumed by a task client, usually due to a typo in the ruleset or the client config).
Quote:
Originally Posted by Fuzzy View Post
Or a change to their setup that no longer includes said task. I think this is the situation he's trying to cover.
Ok, in that case, clear the entire active queue (two clicks) and manually trigger a run of the QueueLoader. I guess to sum up, I don't see a need to have another thread running in the background for this specific task.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #719  
Old 05-08-2010, 05:38 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
haven't bug reported it, but in my experience, it's a LOT more than 2 clicks to clear the queue. When I choose clear all, it clears maybe 75% of the queue... each time... so it's one of those things where I'm stepping 75% closer to the door each time.. takes a while to get through...
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #720  
Old 05-08-2010, 05:45 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Fuzzy View Post
haven't bug reported it, but in my experience, it's a LOT more than 2 clicks to clear the queue. When I choose clear all, it clears maybe 75% of the queue... each time... so it's one of those things where I'm stepping 75% closer to the door each time.. takes a while to get through...
Yeah, that's a bug (please open a ticket for it b/c I keep forgetting to look at it). One click actually does wipe the queue, the bug is simply with the UI refreshing before it receives the updated queue listing from the server and therefore loading stale/partial data.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sage Job Queue (SJQ) new release notifications Slugger Customization Announcements 3 12-17-2009 09:59 AM
Plugin: Sage Job Queue (SJQ) Slugger SageTV Customizations 991 12-11-2009 03:52 PM
Sage Job Queue Completed tasks problem raffmanlt SageTV Customizations 2 08-18-2009 07:34 PM
Comskip Monitor VS Sage Job Queue SJQ personalt SageTV Customizations 6 03-02-2009 10:27 AM
Plugin: SJQ v1.1.0RC1 Available - Testers Needed Slugger SageTV Customizations 35 04-21-2008 08:12 AM


All times are GMT -6. The time now is 04:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.