|
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 |
#1301
|
|||
|
|||
Quote:
Quote:
* Well, that's not true, I could write a native wrapper to launch exes, but then I would have had to write one for Windows and Linux (and OS X, which would have been hard because I have no OS X env). I didn't want to support all that native code so I didn't do it. Now that the project is EOL, it definitely won't be done. So, in short, nothing I can do about it (via Java).
__________________
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... |
#1302
|
||||
|
||||
Quote:
Is there something I can change to get this to work properly? I see a "return 1" and 0 in the groovy script, but I thought those were related to groovy's success or failure in its test script. EDIT: Here's the section I was referring to: Code:
def command = ['C:/comskip/comskip.exe', '--ini=C:/comskip/comskip-PRIMARYHD.ini', file].execute() command.consumeProcessOutput(System.out, System.err) command.waitFor() if (command.exitValue()) return 1 else return 0 Quote:
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 Last edited by Skirge01; 11-21-2012 at 05:43 PM. |
#1303
|
|||
|
|||
Capture the return code of the exe (via Process.waitFor(), for example). Check if it's 1 then return 0 from the groovy script, if it's 0 then return 0 as well (no commercials = ok), anything else is an error so just return that value and let SJQ sort it out.
__________________
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... |
#1304
|
||||
|
||||
Quote:
Code:
def command = ['C:/comskip/comskip.exe', '--ini=C:/comskip/comskip-PRIMARYHD.ini', file].execute() command.consumeProcessOutput(System.out, System.err) command.waitFor() if (command.exitValue() <= 1) return 0 else return command.exitValue()
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 |
#1305
|
|||
|
|||
Feel like you're missing a step in there...
Code:
def command = ['c:/comskip.exe' ...] def p = command.execute() p.consumeProcessOutput(System.out, System.err) def rc = p.waitFor() if(rc == 0 || rc == 1) return 0 else return 1 With that said, I'll still gladly answer questions, but just be aware that the code snippets are going to be few and far between. Most of what you're looking for is available by googling it. It's a lot more work, but it's all out there. I will tend to still provide code examples for Sage specific things, but for general Java/Groovy questions, I will usually refer people to Google. Capturing the return code of a launched process, as you might imagine, falls into the general Groovy category. 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... |
#1306
|
||||
|
||||
Thanks again, Slugger. I searched for about 30 minutes before posting again because I (understandably) expected a post like that to be coming soon. I had also been hoping some others might jump in, so it wasn't just you trying to help me. It wasn't until I was utterly confused and frustrated that I gave up. Once I felt like an absolute idiot for not understanding anything I was reading, I came back. I nearly just said "screw it" and went about figuring out how to reinstall SJQ3. I still think that might be the best course of action. This groovy/java stuff is way over my head and I don't think I've got the background to figure it out.
I very much appreciate all the help you've given me already, but I'm not sure SJQ4 is the right path for someone who isn't a programmer. Not being able to do things the way I want is the reason I left Tivo and other STB's behind and went with Sage. At the moment, I feel pretty stupid, so it's clearly time to step away. Maybe after the holiday I'll do some further reading and see if I can manage to grasp any of it.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 Last edited by Skirge01; 11-22-2012 at 09:43 AM. |
#1307
|
|||
|
|||
If your use case for SJQ is very narrow (i.e. you just want to only ever run comskip) then v3 will suffice. But if you ever think you might want to do something else at some point then v4 is where you need to be. v3 is so limited in functionality compared to v4, but, as you're learning, it requires a little more understanding of scripting.
Trust me, if you were a "wizard" in v3 then you can use v4. It's not so much a lack of understanding, it's just that this v4 toolbox (i.e. Groovy) is so much bigger/powerful that you just need to step back and understand where to find the info you need. If you can write v3 rulesets then you can write groovy scripts to do the same thing. The difference is that in v3 I abstracted a lot of the details out of actions at the cost of limited functionality. Because I abstracted things so much, the only way newer things could be added to v3 is if I added them, which is what limited the functionality, ultimately. Now in v4, I just piggyback on a full blown scripting language and say "go nuts". This means you can do almost anything you can imagine, but it also means you need to write the full script, start to finish. A tradeoff, but, imho, one for the better. Anyway, I guess my point is that I don't think you're too far off with Groovy and in the end you're going to benefit more from it (probably), but ultimately I guess you need to use the tool that you're most comfortable with. Good luck and 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... |
#1308
|
||||
|
||||
Hey Slugger, got a license question....
I badly disfigured my sage.properties and had to revert to an earlier date... finding later other jacked up files,... disk started to fail on me. I've got everything sorted I think, but the license server thinks I'm unlicensed.... any suggestions on getting it to recognize the license I have? The message from the log is sjq4: The registered email ['xxx@yyy.com'] does not match the email in the license file!" I'm not sure where it's getting xxx@yyy.com or what it has on file... and neither is likely to be a current email address. .... any suggestions on getting it sorted out? B. |
#1309
|
|||
|
|||
All I have in my database is the email address you used at the time of purchase, the Paypal transaction id, and the plugin id(s) you purchased. If you don't know which email address you used, but can provide me (via PM or email) the Paypal transaction id then I can tell you which email address I have for you. If you know which email addresses it could be, try feeding them into the license retrieval web page. If you guess correctly, it'll email you a new license file, which you can ignore, you just need to figure out which email address is encoded in the license file you have and feed that same address to the license server config.
The other possibility is that the backup of your license file is old. New license files were issued a couple months back and only that version of the lic file will be accepted by the current version of the license server. In that case, the current email you're feeding might be correct, you just might need a new license file, which can be obtained at the link above.
__________________
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... |
#1310
|
||||
|
||||
pm sent w/email address used... though I have no access to that account, I think therein lies the problem....
thx. B. |
#1311
|
|||
|
|||
To pick up a discussion from post 1266 on Nov 14 (I have been out of town for a couple of weeks), I am having major problems with SJQ. As I said then I have the same task duplicated 8 times, all of my other tasks have disappeared - this is the case from both the UI within Sage and also the web UI. When I try to delete these duplicates once I press Commit Now the duplicate tasks that I just deleted come back and once again I have 8 of the same task.
There is other weird stuff to, as in when I select a TV file and click on Assign SJQ Tasks, I can select all of the tasks that used to exist but disappeared. But these tasks never run since no client is assigned. I run WHS so I have backups. What files or folders should I restore? Should I restore the entire \SageTV\plugins\sjq and \SageTV\plugins\sjq folders? Or is there something else I could try? This problem may have been caused by my system disk running out of space due to a lobs.db issue - perhaps that caused the SJQ files to be corrupted, but everything else seems fine on my system.
__________________
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 |
#1312
|
||||
|
||||
Quote:
|
#1313
|
|||
|
|||
My license file was good- but I have had to roll back to an older hard drive from a couple of months ago. When I get the chance I will restore to a newer version so I may need a fix for this issue yet.
__________________
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 |
#1314
|
|||
|
|||
As was done a few posts earlier, if you're seeing weird behaviour then the path to cause the least amount of frustration is to save the props file for each of your clients then toast the sjq db and force sjq to create a new, empty one. Tracking down a corrupted db probably isn't worth the hassle. The best bet of repairing such a situation would be full blown debug builds along with H2 db troubleshooting. Unfortunately, at this stage, debug builds of sjq with the debug logging necessary just aren't going to happen. You may want to investigate (via google, etc.) about how to diagnose, troubleshoot and repair an H2 database. Honestly, though, as I said, I'd salvage your task client props files and toast the db and start over.
__________________
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... |
#1315
|
|||
|
|||
Slugger,
Should Code:
println "my messages suck" |
#1316
|
|||
|
|||
Nope, those statements would appear in the SJQ logs for the task. So you'd need to install the SJQ STVi or the SJQ web UI plugins then view the task specific logs to see those statements. Nothing from SJQ groovy scripts would be logged to any Sage logs (i.e. sagetv_0.txt, etc.).
__________________
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... |
#1317
|
||||
|
||||
I've now built a new sage box after my puff/fizzle hard disk incident and have everything up and running on a fresh win7x64 install, and fresh sage install. Got all the plugins installed and have license showing as valid.
I do have access to a back up of all the sage files, and did copy the plugins directory structure over. I've got the server-client showing online but it's only showing one supported task rather than the 6-7 that I'd setup... any way to pull those other tasks over from the old setup? EDIT: Never mind, patience my son.... It seems to have found 'em. |
#1318
|
|||
|
|||
Quote:
|
#1319
|
||||
|
||||
Quote:
Would you be willing to share your sageg & lnimport code for me to use as examples? Think with those 2 as examples, I think I would be able to figure out anything else I'd like to do with it. |
#1320
|
|||
|
|||
I might be able to package something together, but it would only be with the understanding that it comes with absolutely zero support. I will warn you the code is not pretty and may not even be usable unless you know how it works. It is something I've hacked together over the last couple years and I never intended it for public release so the code quality reflects that. If you can live with that then I can probably package something up on the weekend.
__________________
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... |
Currently Active Users Viewing This Thread: 4 (0 members and 4 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 |