|
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 |
#1041
|
||||
|
||||
Quote:
Attached are the test/exe scripts I use for moving recordings to folders named by Show Title/Season, also puts all Movies into 1 folder called Movies The folder creation is done in the test script and then alters the ARG being passed to the exe script |
#1042
|
|||
|
|||
It's definitely a bug in the core - one that will probably never be fixed now. The core seems to lose track of system messages with custom titles/data; perhaps for other reasons, too. I noticed this just before Google stepped in, but could never reproduce it reliably. By the time I could reproduce it with some reliability, it was too late and I never bothered to report it.
You may want to report it to Sage support, but it's almost a 0% chance that they'll fix it now.
__________________
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... |
#1043
|
|||
|
|||
Hello, I need help setting up SJQ to run the script for keeping on my cable box. I've installed everything but i have doubts of how to setup SJQ to keep sending the number 000 every 2 hours to see if it work in keeping my STB alive. I copied this script to my WHS drive "C:\Program Files\SageTV\Common\keep_stb_alive.groovy".
This is what i'm supposed to write on Add SJQ Task:? Task ID: STBKA Executable: script: C:\Program Files\SageTV\Common\keep_stb_alive.groovy (is this syntax correct?) Executable args: "USB-UIRT Transciever MotorolaDCT2000" "0000" (is this syntax correct?) Test Script: blank Test Script Args: blank Maximum Instances: ?? Maximum Return Code: ?? Minimum Return Code: ?? Maximum time: ??? Resources: ??? Schedule: ??? Is there anything else i need to do to make this script work? My guess is that i need to setup a contrab after setting this task? Thanks!
__________________
Waiting for Sage 8. Last edited by gabrielcab; 11-27-2011 at 09:01 AM. |
#1044
|
|||
|
|||
Quote:
Finally, you will need to add a crontab entry to schedule the task to run. If you simply wanted to run the script every two hours, add this line to the crontab file: * */2 * * * STBKA
__________________
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... |
#1045
|
|||
|
|||
Quote:
__________________
Waiting for Sage 8. |
#1046
|
|||
|
|||
Quote:
Code:
return Global.GetCurrentlyRecordingMediaFiles().size() > 0 ? 2 : 0 Note that when specifying the test script for a task, you do not prefix it with 'script:' since all pretests are automatically treated as groovy scripts (because they must be groovy scripts).
__________________
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... |
#1047
|
|||
|
|||
Quote:
__________________
Waiting for Sage 8. Last edited by gabrielcab; 11-28-2011 at 02:27 PM. |
#1048
|
||||
|
||||
Quote:
Also thru out this thread people have attached (or put in the code blocks) different things they have done |
#1049
|
|||
|
|||
Quote:
__________________
Waiting for Sage 8. |
#1050
|
|||
|
|||
I'm getting this error: "Exe does not exist or cannot be executed! [C:\Program Files\SageTV\SageTV\jre\bin\java.exe]"
I've checked that directory and there is no java.exe in there, which java should i put there? Should i copy my JRE6 java directory from program files into the sage tv directory? edit: copied the JRE6 folder into sagetv directory and now it worked. Thanks.
__________________
Waiting for Sage 8. Last edited by gabrielcab; 11-28-2011 at 07:00 PM. Reason: fixed |
#1051
|
|||
|
|||
Quote:
|
#1052
|
|||
|
|||
What step are you on in the user docs (a link into the docs would be helpful for me to see where you are)? You can also use the STVi to do most of the configuration.
__________________
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... |
#1053
|
|||
|
|||
Nightly reboot script
Could someone post a script for doing nightly reboots (if no recordings are in process)?
|
#1054
|
|||
|
|||
Quote:
Code:
import com.google.code.sagetvaddons.groovy.api.GlobalHelpers // Not safe if there's one or more clients/extenders connected if(GlobalHelpers.isAnythingConnected()) { println "There is a client and/or extender connected!" return 1 } // Not safe if something's recording if(GlobalHelpers.isSomethingRecording()) { println "There is something recording!" return 1 } // Not safe if there's a recording scheduled in the immediate future def reqdMins = 30L if(GlobalHelpers.getSecondsUntilNextRecording() < (reqdMins * 60L)) { println "A recording is scheduled to start within the next $reqdMins minutes!" return 1 } // Looks to be safe, let's do this!! return 0 Code:
Utility.ServerRestart() sleep 300000 return 0 EDIT: I schedule this task in the SJQv4 crontab to run nightly at 3:30am. So given the test script, this means I queue up a restart task daily at 3:30am, but the restart won't happen until the test script says it's safe to do so. In other words, I schedule a restart of Sage on or after 3:30am daily. In theory, if the safe condition never occurs within 24 hours then a second restart task is queued meaning multiple restarts could happen in succession, however, in practice, I've never had it happen. But it could if someone left an extender or client connected.
__________________
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; 12-02-2011 at 09:21 AM. |
#1055
|
||||
|
||||
Quote:
Code:
def now = System.currentTimeMillis() def reqdMins = 45L int ScheduledRecording = 0 ; println " "; Global.GetScheduledRecordingsForTime(now, now + (reqdMins * 60000L)).each { mfAiring -> if( AiringAPI.IsNotManualOrFavorite(mfAiring) ) { println (ShowAPI.GetShowTitle(mfAiring) + " is LiveTV - no issue"); } else { ScheduledRecording = ScheduledRecording + 1 ; println ( ShowAPI.GetShowTitle(mfAiring) + " is Scheduled to record within $reqdMins minutes") ; } } if ( ScheduledRecording > 0 ) { // Scheduled Recording upcoming, Return for when it is safe println ( "Returned to Queue until safe to process"); return 1 } else { // Looks to be safe, let's do this!! println ("Safe to kick off Backup job. No recordings scheduled within $reqdMins minutes"); return 0 } |
#1056
|
|||
|
|||
Thank you for sharing your scripts. I am having some random crashes with Sage but it only occurs after running for several days. This will help with the WAF until I get to the root of the problem
|
#1057
|
|||
|
|||
unassigned/waiting
I noticed my commercial skip has been broken for a little while so I went today and upgraded the server and all my clients to the latest SJQ4. Everything in the queue just says "unassigned" and "waiting" and isn't changing. All three of my clients say they are online, and I modified the schedule to be ON so its always available. It says 0 active jobs on each client. Why isn't it sending the jobs to the clients? (One of the clients runs on my server and the other two are remote running the task service)
|
#1058
|
|||
|
|||
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... |
#1059
|
|||
|
|||
Here the latest from the server log:
2011-12-03 12:23:47,712 INFO[ListenerClient]: Disconnected from 192.168.1.152:23344 2011-12-03 12:23:57,041 INFO [Handler]: CMD: PINGC :: PEER: /127.0.0.1:51844 2011-12-03 12:23:57,041 INFO [AgentManager]: Pinging Client[host=192.168.1.152:23344,state=ONLINE,lastUpdate=2011-12-03 12:23:26.356] 2011-12-03 12:23:57,634 INFO[ListenerClient]: Disconnected from 192.168.1.152:23344 2011-12-03 12:24:02,735 INFO [Handler]: CMD: PINGC :: PEER: /127.0.0.1:51844 2011-12-03 12:24:02,735 INFO [AgentManager]: Pinging Client[host=192.168.1.152:23344,state=ONLINE,lastUpdate=2011-12-03 12:23:26.356] 2011-12-03 12:24:03,344 INFO[ListenerClient]: Disconnected from 192.168.1.152:23344 2011-12-03 12:24:12,657 INFO [Handler]: CMD: PINGC :: PEER: /127.0.0.1:51844 2011-12-03 12:24:12,657 INFO [AgentManager]: Pinging Client[host=192.168.1.152:23344,state=ONLINE,lastUpdate=2011-12-03 12:23:26.356] 2011-12-03 12:24:13,265 INFO[ListenerClient]: Disconnected from 192.168.1.152:23344 2011-12-03 12:24:18,366 INFO [Handler]: CMD: PINGC :: PEER: /127.0.0.1:51844 2011-12-03 12:24:18,366 INFO [AgentManager]: Pinging Client[host=HTPC:23344,state=ONLINE,lastUpdate=2011-12-03 12:22:31.35] 2011-12-03 12:24:18,366 INFO[ListenerClient]: Disconnected from HTPC:23344 2011-12-03 12:24:28,288 INFO [Handler]: CMD: PINGC :: PEER: /127.0.0.1:51844 2011-12-03 12:24:28,288 INFO [AgentManager]: Pinging Client[host=HTPC:23344,state=ONLINE,lastUpdate=2011-12-03 12:22:31.35] 2011-12-03 12:24:28,288 INFO[ListenerClient]: Disconnected from HTPC:23344 2011-12-03 12:25:43,964 INFO [Handler]: CMD: QUIT :: PEER: /127.0.0.1:51771 2011-12-03 12:25:43,964 ERROR [Handler]: IOError: 127.0.0.1:51838 java.io.EOFException at java.io.DataInputStream.readUnsignedShort(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readUnsignedShort(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readUTF(Unknown Source) at java.io.ObjectInputStream.readUTF(Unknown Source) at com.google.code.sagetvaddons.sjq.listener.Handler.run(Handler.java:62) at java.lang.Thread.run(Unknown Source) 2011-12-03 12:25:43,964 ERROR [Handler]: IOError: 127.0.0.1:51831 java.io.EOFException at java.io.DataInputStream.readUnsignedShort(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readUnsignedShort(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readUTF(Unknown Source) at java.io.ObjectInputStream.readUTF(Unknown Source) at com.google.code.sagetvaddons.sjq.listener.Handler.run(Handler.java:62) at java.lang.Thread.run(Unknown Source) 2011-12-03 12:35:17,936 INFO [Handler]: CMD: QUIT :: PEER: /127.0.0.1:51667 2011-12-03 13:16:29,307 INFO[Listener]: Received connection from: /127.0.0.1:52278 2011-12-03 13:16:34,362 INFO [Handler]: CMD: QUIT :: PEER: /127.0.0.1:52278 2011-12-03 19:34:56,338 INFO [Plugin]: Event received: SystemMessagePosted And from the sqagent: 2011-12-01 04:03:20,832 INFO[ListenerClient]: Disconnected from 192.168.1.150:23347 2011-12-01 04:03:32,114 INFO[ListenerClient]: Disconnected from 192.168.1.150:23347 2011-12-01 04:04:06,356 ERROR [ServerClient]: IOError java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at com.google.code.sagetvaddons.sjq.listener.ListenerClient.readObj(ListenerClient.java:60) at com.google.code.sagetvaddons.sjq.agent.network.ServerClient.update(ServerClient.java:122) at com.google.code.sagetvaddons.sjq.agent.ProcessRunner.updateTask(ProcessRunner.java:227) at com.google.code.sagetvaddons.sjq.agent.ProcessRunner.run(ProcessRunner.java:173) at java.lang.Thread.run(Unknown Source) 2011-12-01 04:04:06,357 WARN [ProcessRunner]: Removing task from active list: SJQ4Task-192.168.1.150-23347-3062 2011-12-02 04:00:04,574 WARN[Listener]: Shutting down listener... 2011-12-02 04:02:56,008 INFO [Config]: Watching 'C:\Program Files\SageTV\SageTV\plugins\sjq-agent\conf' 2011-12-02 04:02:58,053 INFO [Plugin]: Checking if hostname 'HTPC' is registered... 2011-12-03 04:00:04,671 WARN[Listener]: Shutting down listener... 2011-12-03 04:02:55,439 INFO [Config]: Watching 'C:\Program Files\SageTV\SageTV\plugins\sjq-agent\conf' 2011-12-03 04:02:55,661 INFO [Plugin]: Checking if hostname 'HTPC' is registered... 2011-12-03 11:32:43,950 WARN[Listener]: Shutting down listener... 2011-12-03 11:35:33,283 INFO [Config]: Watching 'C:\Program Files\SageTV\SageTV\plugins\sjq-agent\conf' 2011-12-03 11:35:33,611 INFO [Plugin]: Checking if hostname 'HTPC' is registered... 2011-12-03 12:17:19,334 INFO [Config]: Props file update detected, reloading properties from disk! 2011-12-03 12:17:19,334 INFO [Config]: Agent properties file updated via network socket! 2011-12-03 12:17:19,334 INFO [Config]: Props file update detected, reloading properties from disk! 2011-12-03 12:20:33,976 INFO [Config]: Props file update detected, reloading properties from disk! 2011-12-03 12:20:33,976 INFO [Config]: Agent properties file updated via network socket! 2011-12-03 12:20:33,976 INFO [Config]: Props file update detected, reloading properties from disk! 2011-12-03 12:21:11,150 INFO [Config]: Props file update detected, reloading properties from disk! 2011-12-03 12:21:11,150 INFO [Config]: Agent properties file updated via network socket! 2011-12-03 12:21:11,150 INFO [Config]: Props file update detected, reloading properties from disk! |
#1060
|
|||
|
|||
Going to have to increase the log level to DEBUG in the sjq.log4j.properties file and run again. You must restart SageTV after changing the log level. This will produce a tonne of output in a hurry. Run it for a few minutes so the queue is processed then drop the log level back down and restart SageTV.
__________________
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: 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 |