|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1601
|
||||
|
||||
does anyone know if the Test Script and Executable log files have any impact on heap space? Ditto the size of the SJQ database? I know that SJQ keeps this information around, the amount of days kept being configurable.
I'm trying to figure out where the heck all my Java memory goes and figure this might be worth looking into.
__________________
Server: AMD 9600 Phenom on XP, Gigabyte GA-MA78GPM, 2GB RAM, 320+250+500 GB SATA drives, HDHomeRun Prime, HD-PVR x.5.1, Paterson serial Client/Encoder:AMD 3800+ X2, 512 MB RAM, ATI X1650 XT, nMediaPC case, Hauppauge HD-PVR, Cyberlink/ArcSoft decoders, USB-UIRT Client/Encoder: AMD 3800+ X2, 512 MB RAM, 6150 graphics, nMediaPC case, ArcSoft decoders Client: HD300, Asus Pundit P1-AH1, AMD 3800+ X2 CPU, 1 GB RAM, 6150 graphics, ArcSoft decoders Backup: Synology SageTV version: FINAL |
#1602
|
||||
|
||||
Anyone have Slugger's SJQ4 scripts?
Anyone have Slugger's SJQ4 scripts?
Was wanting to try a few things and my foggy memory thinks that Slugger had an example in his old svn location on googlecode which is no more. Anyone have the old collection or know of a link to it that works? |
#1603
|
|||
|
|||
The svn repo seems to be gone forever, but I happened to still have a very old vm image kicking around so I booted it up and sure enough I had the svn repo checked out on it. I've attached a zip of what I had on the vm. Looks to be from around 2011. Don't know if it's the latest & greatest (probably not), but looks like most, if not all, of the examples I wrote way back when are in there in one form or another. Always a laugh to read your own code that's 6+ years old. Do with it what you will.
It's too bad Google just decided to toast all their hosted repos. Hate to imagine how much code just went poof because of it.
__________________
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... Last edited by Slugger; 03-10-2017 at 09:45 PM. |
#1604
|
|||
|
|||
Quote:
__________________
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... |
#1605
|
|||
|
|||
I have 2 orphaned tasks and 1 orphaned client that i cant remove/delete/kill in the sjq ui (the client that was processing these tasks doesn't exist anymore). Is there any way to manually kill them?
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#1606
|
|||
|
|||
It's been a while since I've done any kind of SageTV API stuff. I record the news every evening but it's annoying to have to manually delete them every morning if I fall asleep before the news is over. I want to make a script that finds all the "KOCO" news recordings and deletes them every night.
__________________
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 |
#1607
|
|||
|
|||
I'm trying to get SJQ working on my SageTV Docker running on unRAID. Does this work on that platform? Will it run with Java 8 or does it need 7?
__________________
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 |
#1608
|
|||
|
|||
I have it running fine on unRAID with Java 8. I can't remember if I had any issues when first trying to get it set up, but I don't think there were any major issues.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#1609
|
|||
|
|||
I got it working I think. I figured out that I needed to "chmod +x" the scripts. After that my test script with just "return 0;" ran successfully. At this point I think it's just the syntax of the script I really want to run.
__________________
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 |
#1610
|
|||
|
|||
Trying to figure out why my simple script doesn't seem to be working:
Code:
MediaFileAPI.GetMediaFiles("T").each { mediaFile -> if(MediaFileAPI.GetMediaTitle(mediaFile) ==~ /KOCO News/) { println("Deleting media file: " + MediaFileAPI.GetMediaFileID(mediaFile)); // MediaFileAPI.DeleteFile(mediaFile); } } return 0; Code:
/opt/sagetv/server/sjq_scripts/del_koco_news.groovy: 1: /opt/sagetv/server/del_koco_news.groovy: Syntax error: word unexpected (expecting ")")
__________________
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 |
#1611
|
||||
|
||||
The text you posted seems fine (I even put it into an IDE that validates groovy and no errors). Is that the entire script?
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#1612
|
|||
|
|||
Weird - could it even be DOS v Unix line break issue or something silly like that? Or maybe it doesn't like using / as string delimiters? Or maybe it doesn't like the ==~ operator.
Maybe try: if(MediaFileAPI.GetMediaTitle(mediaFile).contains("KOCO News") {
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#1613
|
|||
|
|||
It seems like it's not loading some standard libraries or something like that. I changed it to this and now I'm getting "def: not found" for line 1.
Code:
def mediaMask = "T" MediaFileAPI.GetMediaFiles(mediaMask).each { mediaFile -> if(MediaFileAPI.GetMediaTitle(mediaFile) ==~ /KOCO News/) { println("Deleting media file: " + MediaFileAPI.GetMediaFileID(mediaFile)); // MediaFileAPI.DeleteFile(mediaFile); } } return 0;
__________________
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 |
#1614
|
|||
|
|||
I've basically removed all the plugins and libraries from my SageTV installation and started from scratch. Did everything except delete my Sage.properties file. Even deleted any extraneous jar files that shouldn't be there in a clean installation. Then I reinstalled everything. It still gets the same "def: not found" error.
Any ideas?
__________________
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 |
#1615
|
|||
|
|||
BTW, there are no extraneous white space characters in there. I've tried with both LF & CRLF line endings and get the same results.
__________________
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 |
#1616
|
|||
|
|||
Do you need any imports? I don't know, but maybe try these:
Code:
import com.google.code.sagetvaddons.metadata.Factory import org.apache.commons.io.FileUtils Also, should that ==~ just be =~?
__________________
Home Network: https://karylstein.com/technology.html |
#1617
|
|||
|
|||
Quote:
__________________
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 |
#1618
|
|||
|
|||
Are you doing all of this from within SJQ or are you also trying from a bash prompt within the Docker container? One of the drawbacks of a Docker is that it isn't as easy to install other apps like a Groovy DE and have that persist after upgrades, etc.
One of the other things you can do is to run the SJQ code on remote clients, including a VM on your unRAID box.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#1619
|
|||
|
|||
Quote:
__________________
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 |
#1620
|
|||
|
|||
Let me check some of my stuff tonight when I am at home. I don't use SJQ a lot these days on my server but I know that I do run a daily SJQ job just after midnight that emails me a list of the next day's recordings. And I am pretty sure that I adapted some of my jobs from Windows to Linux which was mainly a case of changing files paths to my Linux server and changing \s to /s, etc.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |