SageTV Community  

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

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #421  
Old 02-13-2011, 07:20 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
I just upgraded from SJQ version 3 to version 4. I installed both 'Sage Job Queue version 4.0.0.1380' and 'Sage Job Queue Agent (Task Client) version 4.0.0.1379' plug-ins. I then entered my e-mail address in the plug-in and it gave me a 'licensed' status.

A SJQ4 Client service was not created. I don't see SJQ on the SageTV 'setup' menu.

How do I get SJQ4 installed?

Dave
Reply With Quote
  #422  
Old 02-13-2011, 07:28 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Install the SJQ UI plugin as well (under UI mods).
__________________
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
  #423  
Old 02-13-2011, 07:34 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
Quote:
Originally Posted by Slugger View Post
Install the SJQ UI plugin as well (under UI mods).
I installed the SJQ UI plug-in, and still don't see SJQ under the SageTV 'setup' menu. However, when I browse to a recording, then I see 'Assign SJQ Tasks' as an option. I drill down into that menu, and I see 'My Tasks'. I can check or uncheck 'My Tasks', but can't see anything in 'My Tasks'.

Dave

Last edited by davephan; 02-13-2011 at 07:40 AM.
Reply With Quote
  #424  
Old 02-13-2011, 07:43 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Let's make sure the SJQ engine and agent are running...

Is the SageTV\plugins\sjq\ dir on your server? Is there a file in there named sjq.log? Is it being written to? If so, we know the engine is installed and running.

Same thing for SageTV\plugins\sjq-agent\logs\. Is there a file in there named sjqagent.log? Is it being written to? If so, we know the agent is installed and running.

If the agent and engine are running properly then it seems to be just an issue with the UI plugin and I have to defer those issues to tmiranda. Best bet is to open a ticket and he'll address it as soon as he can.

If the agent nor engine are running properly then that's my department and I'll be happy to help you track down those problems.
__________________
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
  #425  
Old 02-13-2011, 08:50 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
Quote:
Originally Posted by Slugger View Post
Let's make sure the SJQ engine and agent are running...

Is the SageTV\plugins\sjq\ dir on your server? Is there a file in there named sjq.log? Is it being written to? If so, we know the engine is installed and running.

Same thing for SageTV\plugins\sjq-agent\logs\. Is there a file in there named sjqagent.log? Is it being written to? If so, we know the agent is installed and running.

If the agent and engine are running properly then it seems to be just an issue with the UI plugin and I have to defer those issues to tmiranda. Best bet is to open a ticket and he'll address it as soon as he can.

If the agent nor engine are running properly then that's my department and I'll be happy to help you track down those problems.
There is a service called 'SJQ Task Client for Windows', but it doesn't say anything about version 4. The SQJ log and SJQ-Agent logs are being created. There is something about 'My Task_precheck.groovy does not exist or is not readable. Test considered FAILED! Can you tell what the problem is from the log files?

Dave
Attached Files
File Type: zip SJQ-logs.zip (52.6 KB, 128 views)
Reply With Quote
  #426  
Old 02-13-2011, 09:01 AM
pkasin pkasin is offline
Sage User
 
Join Date: Jul 2009
Location: Montreal
Posts: 20
Can someone tell me what SQJv4 (or SQJ) does?
Reply With Quote
  #427  
Old 02-13-2011, 09:02 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
The task client is a Sage plugin as you've installed it, not a Windows service (though there is also a Windows service task client available for SJQv4). The plugin task client runs inside of the Sage JVM and not as a Windows service so it will not show up in your Windows services list. That Windows Service you see now is the old v3 task client and is of no use to you. You can uninstall it (using the bat file available in the v3 task client installation dir).

The logs mean the engine and task client are running properly, which is good. Were you editing the sjqagent.properties file? Did you create a task? The errors you show in the logs just mean the script it was told to run for that configured task can't be found as specified so it failed the precheck. That's normal (in that it can't find the script so it bailed, as expected). To remove those errors, just remove that task def'n from the sjqagent.properties file in sjq-agent\conf\

Basically, SJQ engine and task client are up and running, there just seems to be an issue with the UI. Did you restart the UI after installing the UI plugin? You have to do that before the SJQ entries will appear on the menus. If so, open a ticket unless tmiranda sees these posts and replies.
__________________
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
  #428  
Old 02-13-2011, 09:05 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by pkasin View Post
Can someone tell me what SQJv4 (or SQJ) does?
It's a multi-threaded, distributed task queue and scripting environment for SageTV. Use it to automate tasks (comskip, file moves, transcoding, etc.).

Online User Guide (with more details).
__________________
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
  #429  
Old 02-13-2011, 09:32 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
@davephan I just looked at your server logs and it seems you still have SJQv3 installed and running alongside SJQv4. This is not good. I'm assuming you never installed SJQv3 as a Sage 7 plugin, but just carried it over from your Sage 6 to 7 upgrade? If so, you need to manually remove SJQv3 by deleting the sjq.context.xml file from SageTV\jetty\contexts\ (you can also remove the sjq.war file from SageTV\jetty\webapps\ AFTER removing the xml file).
__________________
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
  #430  
Old 02-13-2011, 12:23 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
@davephan - I suspect another Plugin has added an item to the Setup menu which causes the SJQ4 menu item to get hidden off the bottom of the screen. Cursor down one item past the last item, then cursor right, and the menus should appear.

Installing the "Scrolling Setup" UI Mod Plugin will make the Setup menu scrollable.

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #431  
Old 02-13-2011, 02:27 PM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
Quote:
Originally Posted by Slugger View Post
@davephan I just looked at your server logs and it seems you still have SJQv3 installed and running alongside SJQv4. This is not good. I'm assuming you never installed SJQv3 as a Sage 7 plugin, but just carried it over from your Sage 6 to 7 upgrade? If so, you need to manually remove SJQv3 by deleting the sjq.context.xml file from SageTV\jetty\contexts\ (you can also remove the sjq.war file from SageTV\jetty\webapps\ AFTER removing the xml file).
I used to use SJQ3 with Sage6. I guess I assumed that SJQ4 would replace any SJQ3 files. I have both sjq.context.xml and sjq.war files deleted now.

Quote:
Originally Posted by tmiranda View Post
@davephan - I suspect another Plugin has added an item to the Setup menu which causes the SJQ4 menu item to get hidden off the bottom of the screen. Cursor down one item past the last item, then cursor right, and the menus should appear.

Installing the "Scrolling Setup" UI Mod Plugin will make the Setup menu scrollable.

Tom
I found it! I'm amazed I didn't see it before!

Thanks for the help!


Dave
Reply With Quote
  #432  
Old 02-13-2011, 05:12 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by davephan View Post
I used to use SJQ3 with Sage6. I guess I assumed that SJQ4 would replace any SJQ3 files. I have both sjq.context.xml and sjq.war files deleted now.
It would replace the v3 files if you removed the Sage v6 version of SJQ and replaced it with the version from the plugin manager when you upgraded from Sage v6 to v7. If you didn't then the SJQv4 plugin would not be aware that a Sage v6 plugin was installed. But as long as you removed the old version then you're fine.
__________________
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
  #433  
Old 02-13-2011, 06:33 PM
SteveW's Avatar
SteveW SteveW is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: Fall River, Nova Scotia, Canada
Posts: 389
So, I've read every post in this thread trying to find my answer to my question (and I think my head is going to explode by the way )...

I also am seeking to implement the aforementioned "seek and destroy" method of firing comskips with SJQv4 to account not only for scheduled recordings, but also for when someone decides to throw in a manual record here and there, and also ignore comskipping of movie channels (ie The Movie Network).

I see a few mentions in here of people wanting to do the same thing. The scripting in this version is way over my head... I guess my questions are:

a) Is the capability to do that "seek and destroy but ignoring ones from these channels" currently possible using the current version of SJQv4?

b) If someone has already implemented this, could they share a sample of their scripts? If I could get my hands on a working sample I'd be able to work my way through it to set it up for my needs...

Tnx!

-S
__________________
Server: Win 10 Pro 64 Bit, Intel i5, 8 GB, Samsung EVO 850 500 GB for OS, WD Black 4 TB + WD Black 1 TB for Recordings, 36TB Synology 1019+ for DVD/Bluray Rips, Music, Home Movies, etc., SageTV Server 64 Bit Ver 9.2.6.976, HDPVR x 2, Bell TV 6131 Receiver x 2, USB-UIRT with 56 KHz Receiver

Clients: PC Client x 2, HD-300 x 2 (1 Using Netgear MoCA Coax Bridges), SageTV Miniclient on NVidia Shield x 3
Reply With Quote
  #434  
Old 02-13-2011, 06:56 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by SteveW View Post
So, I've read every post in this thread trying to find my answer to my question (and I think my head is going to explode by the way )...

I also am seeking to implement the aforementioned "seek and destroy" method of firing comskips with SJQv4 to account not only for scheduled recordings, but also for when someone decides to throw in a manual record here and there, and also ignore comskipping of movie channels (ie The Movie Network).

I see a few mentions in here of people wanting to do the same thing. The scripting in this version is way over my head... I guess my questions are:

a) Is the capability to do that "seek and destroy but ignoring ones from these channels" currently possible using the current version of SJQv4?
Is it possible? Of course. With a full, complete scripting language, anything you can imagine is possible. Has anyone implemented it? I don't think so. I don't like being the gate keeper of scripting for two reasons:

1) I moved SJQ to the Groovy platform to get out of the script maintenance business. It's my hope that other users will contribute to the available scripts.

2) I got out of the scripting business because I wanted to narrow the scope of my involvement to that of providing the environment. I provide the task queue, the multi-threaded and distributed task execution environment and I leave the details of what tasks you do to each user/the community.

With that said, I don't mind whipping up some of these common/popular use case examples, but be forewarned:

1) If I don't plan on using it, the Groovy script(s) I produce for these scenarios will be lightly tested. Depending on what it does, you'll want to be careful.

2) I won't rush to do these example scripts. Again, if I'm not using it then creating/fixing/maintaining them won't be a priority.

3) I'm not picking on you specifically here, but it's my hope that users, where possible, start to explore Groovy on their own (kind of the "feed a man a fish vs. teach him to fish" idea). I think with the use of Groovy, I'm starting to build a rather powerful scripting platform for SageTV here and I really hope others beside myself start to explore and harness its power and share their solutions with the community.

Quote:
b) If someone has already implemented this, could they share a sample of their scripts? If I could get my hands on a working sample I'd be able to work my way through it to set it up for my needs...

Tnx!

-S
My morning meetings were cancelled and watching the Oilers play is so depressing anymore that I just end up skimming through the games in about 20 minutes now so I might just find an hour or so to whip up a starting point for you this evening. But you have to define your requirements a little more clearly for me.

Do you want to periodically inspect every media file on your system and determine if it needs to be comskipped or do you want to handle the RecordingStarted event for any recording and then determine if that recording needs to be comskipped?

You decide and I'll whip up an example for your choice, leaving the other as an exercise for the reader.
__________________
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
  #435  
Old 02-13-2011, 06:59 PM
korben_dallas's Avatar
korben_dallas korben_dallas is offline
Sage Icon
 
Join Date: Oct 2004
Location: USA
Posts: 1,250
Quote:
Originally Posted by pkasin View Post
Can someone tell me what SQJv4 (or SQJ) does?
It is very powerful, but not for the faint-hearted. Advanced scripting skills are highly recommended for usage.

Also, it is somewhat limited without a paid license.
__________________
SageTV server & client: Win 10 Pro x64, Intel DH67CF, Core i5 2405s, 8 GB ram, Intel HD 3000, 40GB SSD system, 4TB storage, 2x HD PVR component + optical audio, USB-UIRT 2 zones + remote hack, Logitech Harmony One, HDMI output to Sony receiver with native Intel bitstreaming
Reply With Quote
  #436  
Old 02-13-2011, 09:28 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Media File Scan & Queue Example Available...

@SteveW I didn't hear back from you so I went ahead and whipped up the periodic scan and queue example (as opposed to the event based handler). This script simulates the old SJQv3 way of doing things. Basically, configure this script to run via the SJQv4 crontab once every 10 mins, an hour, etc. and it will scan and process each media file, queuing up tasks for matching files. Read the script carefully and configure it to your needs before letting it loose on your media collection!

The script is available here.

The event based scan and queue script is, therefore, left as an exercise for the reader.

Happy scripting!
__________________
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
  #437  
Old 02-14-2011, 03:01 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
The SJQ4 GUI interface does not clearly display the video recording names in the queue, completed, or failed like the old SJQ3 did. Is there any way to display that information?

SJQ4 is working, but when it is running, my impression that it is running blind, processing the files with comskip. There isn't a nice GUI to track which files are being processed, which files are in the queue, and which files failed.

SJQ4 has advantages over SJQ3 for many things, but the lack of a good GUI to monitor the status seems like a step backwards, unless there is a way to do it and I am missing something.

Dave
Reply With Quote
  #438  
Old 02-14-2011, 06:09 AM
SteveW's Avatar
SteveW SteveW is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: Fall River, Nova Scotia, Canada
Posts: 389
Quote:
Originally Posted by Slugger View Post
@SteveW I didn't hear back from you so I went ahead and whipped up the periodic scan and queue example (as opposed to the event based handler). This script simulates the old SJQv3 way of doing things. Basically, configure this script to run via the SJQv4 crontab once every 10 mins, an hour, etc. and it will scan and process each media file, queuing up tasks for matching files. Read the script carefully and configure it to your needs before letting it loose on your media collection!

The script is available here.

The event based scan and queue script is, therefore, left as an exercise for the reader.

Happy scripting!
Sorry Slugger... Spent most of my time after posting that trying to un-disaster our house while my wife and our new baby were away visiting the inlaws/new grandparents.

Thanks for that! I'll give it a spin. As long as there is a framework there, I should be able to tweak it up.

-S
__________________
Server: Win 10 Pro 64 Bit, Intel i5, 8 GB, Samsung EVO 850 500 GB for OS, WD Black 4 TB + WD Black 1 TB for Recordings, 36TB Synology 1019+ for DVD/Bluray Rips, Music, Home Movies, etc., SageTV Server 64 Bit Ver 9.2.6.976, HDPVR x 2, Bell TV 6131 Receiver x 2, USB-UIRT with 56 KHz Receiver

Clients: PC Client x 2, HD-300 x 2 (1 Using Netgear MoCA Coax Bridges), SageTV Miniclient on NVidia Shield x 3
Reply With Quote
  #439  
Old 02-14-2011, 06:31 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by davephan View Post
The SJQ4 GUI interface does not clearly display the video recording names in the queue, completed, or failed like the old SJQ3 did. Is there any way to display that information?

SJQ4 is working, but when it is running, my impression that it is running blind, processing the files with comskip. There isn't a nice GUI to track which files are being processed, which files are in the queue, and which files failed.

SJQ4 has advantages over SJQ3 for many things, but the lack of a good GUI to monitor the status seems like a step backwards, unless there is a way to do it and I am missing something.
Dave,

Open a ticket and I'll look into providing more information about what is happening. I generally agree that I need to show more status and some of that is in the works.

(Slugger - Have you looked at the update I sent to you?)

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #440  
Old 02-14-2011, 08:05 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by tmiranda View Post
(Slugger - Have you looked at the update I sent to you?)
That email got lost in the clutter that is my inbox. Anyway, just installed it this morning and tested it out. Looks good except for one issue on your end and the UI update also discovered a bug in the task client on my end, which is now fixed in the repository. See your inbox for more details.
__________________
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
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
SJQv4: Technology Preview Slugger SageTV v7 Customizations 39 12-17-2010 01:17 PM
SageTV Plugin Developers: Any way to see stats for your plugin? mkanet SageTV Software 4 12-12-2010 10:33 PM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
SJQv4: Design Discussion Slugger SageTV v7 Customizations 26 10-18-2010 08:22 AM


All times are GMT -6. The time now is 07:11 PM.


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