|
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 |
#1441
|
|||||
|
|||||
Quote:
I'll probably implement something here and see what I think of it. From there, I'll decide if I want to release it. Quote:
Quote:
Quote:
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... |
#1442
|
|||
|
|||
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 |
#1443
|
|||
|
|||
SJQv4 WebUI update (you _must_ upgrade web ui plugin first)
Just released my update for the SJQv4 WebUI plugin. This update has to do with adding the ability to attach metadata to queued tasks from the web.
Just realized that I forgot to update the dependency for this update to require the new web ui release (from earlier today). If you don't update the web ui first, then the queue a task page from this plugin will look and act weird. Just update the web ui first before updating this plugin. The web ui update includes the ability to call the JVM garbage collector and to restart the SageTV service from the web ui home page (as previously discussed, OT, in this thread).
__________________
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... |
#1444
|
|||
|
|||
Hey Slugger, I have been having issues with SJQ backup task failing for the last month or so and have just got around to troubleshooting. Hopefully, this is an easy one. Here is an excerpt from the log file:
Code:
2014-01-27 11:01:26,534 FATAL [192_168_1_5-23347-160]: Failed to update Task[id=FULLBACKUP, reqRes=100, maxInst=1, sched=ON, maxTime=86400, maxTimeRatio=1.0, rc=0-0, exe=script:c:\scripts\full_backup.groovy, exeArgs=, test=c:\scripts\full_backup_test.groovy, testArgs=] java.net.ConnectException: Connection refused: connect at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at com.google.code.sagetvaddons.sjq.listener.ListenerClient.<init>(ListenerClient.java:41) at com.google.code.sagetvaddons.sjq.agent.network.ServerClient.<init>(ServerClient.java:30) at com.google.code.sagetvaddons.sjq.agent.ProcessRunner.updateTask(ProcessRunner.java:226) at com.google.code.sagetvaddons.sjq.agent.ProcessRunner.run(ProcessRunner.java:173) at java.lang.Thread.run(Unknown Source) 2014-01-27 11:01:26,534 WARN [ProcessRunner]: Removing task from active list: SJQ4Task-192.168.1.5-23347-160
__________________
Server: SageTV Media Center 7.1.19, Windows 7 Home Premium x64, Pentium Core2Duo, 4GB RAM, (1) Hauppauge HVR-2250, (1) Hauppauge HVR-1600, 1.5 TB of recording space Android MiniClient: Nvidia Shield TV (16GB) HDMI out to Samsung LN46C630 46" LCD Extender: STP-HD300, beta firmware "20110506-0", HDMI out to LG 37LD450 37" LCD |
#1445
|
|||
|
|||
I think I figured it out. I added port 23344 exception (server and client are on the same machine) and all seems well now. Not sure why it was working all this time and then suddenly stopped working. Oh well.
__________________
Server: SageTV Media Center 7.1.19, Windows 7 Home Premium x64, Pentium Core2Duo, 4GB RAM, (1) Hauppauge HVR-2250, (1) Hauppauge HVR-1600, 1.5 TB of recording space Android MiniClient: Nvidia Shield TV (16GB) HDMI out to Samsung LN46C630 46" LCD Extender: STP-HD300, beta firmware "20110506-0", HDMI out to LG 37LD450 37" LCD |
#1446
|
|||
|
|||
WARNING FOR ANYONE USING SJQ TO DO VIDEO ENCODING
Apparently Windows Services, at least in XP, Vista and Win7, are not allowed to make calls to hardware encoders. But this is allowed in Windows 8. Therefore you cannot use SJQ when it is running as a service to kick off Intel QuickSync encoder jobs.
I use the nightly builds version of Handbrake that supports Intel QuickSync and when I tried to do encoding from SJQ on a client that was running the Windows Services version of SJQ client I was getting strange results - like it would crap out after 1 second or so of the file. The solution to this problem is to use the Windows Console version of SJQ client.
__________________
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 |
#1447
|
||||
|
||||
Argh. 3 days after I leave on a snowboard trip, the H2 database engine once again fills up "sagetv/.lobs.db" with 65 GB's of temp file crap and my server crashes.
Has anyone tried a H2 jar file later than 1.2.145 that possibly fixes this? If not, anyone ever create a script that monitors the lobs directory for excess usage, shuts down Sage, cleans the directory and restarts Sage? |
#1448
|
|||
|
|||
I have had this happen occasionally but it hasn't always come back - I don't think I have had the problem in a long time.
Maybe you could try having something like Growl send you a message (to Prowl or something similar on your phone) when your hard drive is getting full. I think SageAlert used to have this functionality but I don't see it in the current version. I guess the other thing is to write an SJQ cron job that checks for free disk space every few hours and generates a System Message when it is low.
__________________
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 |
#1449
|
|||
|
|||
Quote:
You could try upgrading the H2 jar file to see if it addresses the issue. I don't know who actually maintains the H2 plugin within Sage, but maybe they'd upgrade the jar in the repo? Not sure if I'm particularly fond of that idea at this stage of the game though either. 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... |
#1450
|
||||
|
||||
Quote:
So far, so good, things work and nothing appears to be complaining. A number of tasks went off overnight without issue. I'll check the .lobs.db directory everyone once in a while manually for now to see how it goes. --- I'll take partial blame for huge LOB's because my groovy scripts output tons of debug data from the Handbrake & Mediashrink calls. I should really get around to putting a flag in to minimize that. Edit: Link to H2 Database downloads. Last edited by phelme; 02-25-2014 at 11:13 AM. |
#1451
|
|||
|
|||
Anyone have an idea of how to get the type of CPU from within SJQ/Groovy/Java? I use Handbrake to do video encoding and I need to determine if the CPU can support Intel Quick Sync - this is the case for Ivy Bridge, Sandy Bridge and Haswell but not for older CPUs. How can I find this out in SJQ?
__________________
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 |
#1452
|
|||
|
|||
There's no direct way. I've pruned a script I have around for other things. This will give you a description of the CPU(s) on your Windows system. You might have to further parse and pick apart the string to do what you want. All error checking, etc. is suppressed in this example script.
Code:
def wmiInput = """ var locator = WScript.CreateObject("WbemScripting.SWbemLocator"); var services = locator.ConnectServer(); var cpus = new Enumerator(services.ExecQuery("SELECT * FROM Win32_Processor")); while (!cpus.atEnd()) { var cpu = cpus.item(); WScript.StdOut.WriteLine(cpu.Name); cpus.moveNext(); } """ def tmp = File.createTempFile('tmp', '.js') tmp.deleteOnExit() tmp << wmiInput def cpuInfo = new StringBuilder() def p = "cscript //NoLogo \"${tmp.absolutePath}\"".execute() p.consumeProcessOutput(cpuInfo, System.err) p.waitFor() println "Your CPU appears to be a(n) $cpuInfo" Code:
Your CPU appears to be a(n) Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
__________________
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... |
#1453
|
|||
|
|||
Thanks Slugger. There are also Windows Env Variables. How would you acess these from Groovy?
Quote:
Code:
Class CpuInfo java.lang.Object org.hyperic.sigar.CpuInfo getModel public java.lang.String getModel() Get the CPU model. Supported Platforms: AIX, FreeBSD, Linux, HPUX, Solaris, Win32. System equivalent commands: • AIX: lsattr -El proc0 • Darwin: • FreeBSD: • HPUX: • Linux: cat /proc/cpuinfo • Solaris: psrinfo -v • Win32: Returns:CPU model
__________________
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 |
#1454
|
|||
|
|||
System.getenv(<var_name>) to get a env var.
Yes on the jar, though I suspect it isn't doing anything much different than the script I posted.
__________________
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... |
#1455
|
|||
|
|||
Quote:
Thanks!
__________________
Andrew |
#1456
|
|||
|
|||
Quote:
FYI - you can play with all of this stuff by running the Handbrake GUI. Set up all the parameters that you want and then start an encoding session. Then look at the logs and it will show you the CLI command that you need for that. Copy that command from the logs and paste it into a text file to work with. For more info see here http://mcebuddy2x.codeplex.com/discussions/444131 and here: https://mcebuddy2x.codeplex.com/discussions/437207
__________________
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 |
#1457
|
|||
|
|||
Is it possible to assign SJQ tasks to a hotkey, like F3 or Ctrl-S or whatever? It would be very nice to be able to quickly assign tasks to shows by just scrolling through a show list and hitting a key. Is there any way this is doable?
__________________
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 |
#1458
|
|||
|
|||
Quote:
But this is why I made those mods to the SJQ pages of the web ui. Now it's pretty easy to insert a task into the queue and attach metadata to the task as needed. I don't think I actually explained it, but the queue a task web page now has those inputs for media file ids. But you actually enter a recording name in the box and it searches your media for you and fills in the media id number via ajax. It's not what I'd call the best/preferred way to be able to do it, but it's certainly better than nothing.
__________________
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... |
#1459
|
|||
|
|||
Quote:
So regarding your earlier note about Windows 8.1, would running that OS allow this process to run in service mode? If so I guess I could finally say I have at least one reason to want to upgrade... Thanks for the links. Interesting.
__________________
Andrew |
#1460
|
|||
|
|||
I have had the Sage Groov Dev Environment on my Sage server for years. I also want to install this on other PCs on my LAN. I should be able to do this by just copying over all of the folders in my Groovy folder, including bin, lib, logs, etc. and then starting sagegroovy with the -s parameter linking to my server's IP, correct? That would be something like "C:\GroovyFiles\sagegroovy\bin\sagegroovy.exe -s 192.168.1.92 -g"
Copying over the lib folder should mean I have all of the jars that I will need. Is there anything else I should be aware of?
__________________
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 |