SageTV Community  

Go Back   SageTV Community > General Discussion > General Discussion
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

General Discussion General discussion about SageTV and related companies, products, and technologies.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-06-2018, 09:01 AM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
SJQ alternative

I need to be able to flip a couple Xbox 360's on and off, so I put together a command file that can do this with a USB-UIRT. Getting the rotating IR code working properly in the command file turned out to be a little tricky, but got past that and the command file can now turn the Xbox's on and off without issue.

I got the idea from forum user EnterNoEscape who was using SJQ to call the command file. Reading the SJQ V3 forum posts, it's unclear to me if SJQ still works on later versions of Java, and I've been avoiding Sage plugins that have Java version issues to keep my SageTV server stable.

So I need to be able to cycle these Xbox's on and off maybe 3 or 4 times a day, but I don't want to do it while the system is recording from either of (2) of my tuners (Siena based). I decided the easiest way is probably to figure out how to create a command file that can launch (or just read) a webpage, and have it check the text on the web interface.

Would someone please point me in the right direction here for command file creation (WGET maybe?), or a better method, or that I need to spend more time looking to SJQ for this function?
Reply With Quote
  #2  
Old 05-07-2018, 08:22 AM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
FYI I run SJQ on the latest JAVA 8 Docker and it works fine.
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #3  
Old 05-07-2018, 11:21 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
SJQv3 is obsolete - SJQv4 is the latest version and I would recommend using that. It shouldn't be too hard to launch a file from within Groovy/Java or a Batch file. Groovy is the programming language used in SJQv4 and it is a superset of Java, in that Java code will word in Groovy, but Groovy has "Groovy-er" ways of doing things.

If you can find the sample code files form SJQ there was a script that would check to see if anything was recording and if not it would reboot the SageTV server. It sounds like you could recycle that code and just make it reboot your Xbox(es) rather than the SageTV server.
__________________
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
Reply With Quote
  #4  
Old 05-07-2018, 04:44 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Ah, sorry. I keep getting lost in the SJQ threads, ending up in the wrong version. I see I've already posted in v4, and ENE's sample file is already there. I'll give it a go.

Thanks, guys.
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
Alternative but questions.. PiX64 General Discussion 74 11-14-2012 10:17 AM
iPodifier alternative? appelm SageTV v7 Customizations 2 07-14-2011 07:09 AM
Are There Any Alternative Themes Available For 7? PeteCress SageTV v7 Customizations 14 10-08-2010 10:10 AM
HD PVR alternative? valnar Hardware Support 27 01-07-2009 11:06 AM
Wiz.bin alternative? GTwannabe SageTV Software 19 07-21-2007 07:21 AM


All times are GMT -6. The time now is 10:52 PM.


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