SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #121  
Old 10-23-2009, 08:27 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
@wayner Just noticed you're not running the SRE v2.2.0 official build. You'll need to upgrade SRE to v2.2.0.628 as well. So you need SRE 2.2.0.628 and SageAlert 1.0.0.625 (or newer, v1.0.1.xxx is also fine). If it continues not to work then post some SRE logs that show the failures when attempting to contact SageAlert.
__________________
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...
  #122  
Old 10-24-2009, 10:07 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
OK, now running SRE 2.2.0.628 and SageAlert 1.0.1.635 so hopefully this notifies me that SRE is monitoring tonights Leafs-Nucks game.
__________________
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
  #123  
Old 10-24-2009, 07:35 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Still no notifications. I have told SRE that it should notify SageAlert and SageAlert is supposed to send Remote Info, Warning and Error Alerts to one of my Twitter accounts. Do I look in the regular Sage log for info? If not which log? I don't see anything in the SRE logs.

My Sagealert URL is: http://192.168.1.90:8081/sagealert/ - I have now deleted the trailing slash - is that the only error I have to fix?

Here is what I have in my SRE logs:
Code:
2009-10-24 19:05:00,739 ERROR [FireRemoteEvent]: Invalid SageAlert URLjava.net.MalformedURLException: SageAlert URL must end with '/sagealert' and no trailing slash! at com.google.code.sagetvaddons.sagealert.rpc.RemoteEventLauncher.<init>
(RemoteEventLauncher.java:58) at com.google.code.sagetvaddons.sre.server.FireRemoteEvent.fireRemoteEvent(FireRemoteEvent.java:58) at com.google.code.sagetvaddons.sre.server.SageRecordingExtender.run
(SageRecordingExtender.java:224) at java.lang.Thread.run(Unknown Source)
Slugger - one more thing. The size of my SRE logs seems to be way too big as when I click on logs it freezes my web browser for about 30 secs. How do you have the logs clear out more frequently - mine currently go back about 10 days.
__________________
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

Last edited by wayner; 10-24-2009 at 08:17 PM.
  #124  
Old 10-24-2009, 10:33 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Yeah, removing the trailing slash should make everything work.

To reduce the size of the log edit the sre.log4j.properties file in the root sagetv dir. Edit the size in that file. You will need to restart SageTV (not just SRE, unfortunately) for the settings to take effect.
__________________
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...
  #125  
Old 10-25-2009, 01:08 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
It looks like it is working now - perhaps it would make Sagealert more robust if you checked for and threw away trailing slashes?
__________________
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
  #126  
Old 10-25-2009, 01:41 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by wayner View Post
It looks like it is working now - perhaps it would make Sagealert more robust if you checked for and threw away trailing slashes?
Perhaps I'll make that change in a future build. An issue ticket would help remind me.

In the meantime, I think the error message is verbose enough such that users can correct the issue if/when they run into 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...
  #127  
Old 10-27-2009, 08:04 AM
madas madas is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 83
Any chance we could use Sagealert to issue alerts based on shows in the EPG?

I.e. Alert whenever "Program X" appears in the guide?

For if you are waiting for a show to be repeated
  #128  
Old 11-09-2009, 03:24 PM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
Monitor Sage Service?

Hey Slugger,

I have a feature request. Is there a way for SageAlert to monitor the Sageservice.exe to make sure it is running and trigger an email alert when it is not?

I went on vacation and had a house sitter. Somehow they crashed something and the sageservice stopped and we missed all our recordings. An alert for this would have been awesome.

I'm also thinking that V3 of SJQ might be able to get this email alert and restart the service?

What do you think?
  #129  
Old 11-09-2009, 04:05 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by madas View Post
Any chance we could use Sagealert to issue alerts based on shows in the EPG?

I.e. Alert whenever "Program X" appears in the guide?

For if you are waiting for a show to be repeated
Not impossible, but I think the RSS feeds from the web server are just as effective (and more importantly, already written and working)?
__________________
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...
  #130  
Old 11-09-2009, 04:13 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Peter_h View Post
Hey Slugger,

I have a feature request. Is there a way for SageAlert to monitor the Sageservice.exe to make sure it is running and trigger an email alert when it is not?

I went on vacation and had a house sitter. Somehow they crashed something and the sageservice stopped and we missed all our recordings. An alert for this would have been awesome.
Unfortunately, SageAlert runs as part of the SageService so even if I did monitor that situation, the alerts would never be triggered (since the event that causes the alert would also halt SageAlert itself).

Quote:
I'm also thinking that V3 of SJQ might be able to get this email alert and restart the service?

What do you think?
Same thing, if SageService dies, then so, too, does SageAlert and SJQ. What you really want is some kind of external monitor process running on your server or LAN that monitors the SageService process itself. If I'm not mistaken, the service configuration tool has an option to recover (restart) the service should it stop running (at least I see that option on my XP box; checkbox at bottom of SageTV service control app).
__________________
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...
  #131  
Old 11-09-2009, 04:59 PM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
Quote:
Originally Posted by Slugger View Post
Unfortunately, SageAlert runs as part of the SageService so even if I did monitor that situation, the alerts would never be triggered (since the event that causes the alert would also halt SageAlert itself).



Same thing, if SageService dies, then so, too, does SageAlert and SJQ. What you really want is some kind of external monitor process running on your server or LAN that monitors the SageService process itself. If I'm not mistaken, the service configuration tool has an option to recover (restart) the service should it stop running (at least I see that option on my XP box; checkbox at bottom of SageTV service control app).
I see. Can you recommend something that would monitor services? I'm really just looking for an email notification.

After re-reading your post, I looked under services menu and saw that recovery was not configured sagetvservice.exe. It has now been fixed. I wish I would have done that a long time ago.

Last edited by Peter_h; 11-09-2009 at 05:11 PM.
  #132  
Old 11-09-2009, 05:14 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Peter_h View Post
I see. Can you recommend something that would monitor services? I'm really just looking for an email notification.

After re-reading your post, I looked under services menu and saw that recovery was not configured sagetvservice.exe. It has now been fixed. I wish I would have done that a long time ago.
I'm not a windows sysadmin by trade, so not really sure what to use. But I'm sure someone on these forums will have an answer.

EDIT: For systems I monitor at work, I've used Nagios in the past with good success. I know it doesn't run on Windows, but if you have a Linux box on your LAN, I believe it will monitor Windows machines (but the nagios server itself runs on Linux).
__________________
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; 11-09-2009 at 05:16 PM. Reason: Mention Nagios
  #133  
Old 11-09-2009, 05:14 PM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
So now that I have that all fixed. Is there a way to send a message when the sageservice is started or when Sagealert is started? For example, if the machine is rebooted or the sageservice is restarted, a system message is generated and sent out? Basically, if it crashes, windows should restart it and then Sagealert will send the message.
  #134  
Old 11-09-2009, 05:27 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Hey, mostly OT, but would it be possible to merge SJQ and SageAlert so that you can customize you're own tweeting scenarios or is that technically infeasible?
  #135  
Old 11-09-2009, 05:38 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Peter_h View Post
So now that I have that all fixed. Is there a way to send a message when the sageservice is started or when Sagealert is started? For example, if the machine is rebooted or the sageservice is restarted, a system message is generated and sent out? Basically, if it crashes, windows should restart it and then Sagealert will send the message.
That's doable... and snapshot 649 contains the new event (App Started Alert). I've tested it quickly and it sends notifications to Twitter, Email, and SMS just fine so should be good to go. Of course, you will have to configure event receivers after upgrading (so you won't get notified the first time after you install 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...
  #136  
Old 11-09-2009, 05:40 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by evilpenguin View Post
Hey, mostly OT, but would it be possible to merge SJQ and SageAlert so that you can customize you're own tweeting scenarios or is that technically infeasible?
Not so much off topic... I am incorporating SageAlert into SJQ so you will be able to trigger info, warning or error alerts based on conditions or as a result of a successful or failed task run. No ETA on that, but it's coming.

EDIT: Of course, this is a new feature that will only be available in SJQv3 (not going to backfit it to SJQv2).
__________________
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; 11-09-2009 at 05:42 PM. Reason: In SJQv3 only...
  #137  
Old 11-09-2009, 05:45 PM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
Quote:
Originally Posted by Slugger View Post
That's doable... and snapshot 649 contains the new event (App Started Alert). I've tested it quickly and it sends notifications to Twitter, Email, and SMS just fine so should be good to go. Of course, you will have to configure event receivers after upgrading (so you won't get notified the first time after you install it).
Wow! Thanks!
  #138  
Old 11-09-2009, 05:55 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Excellent, as of last weekend i'm a happy SJQ user so I look forward to any enhancements you may make in the future
  #139  
Old 11-10-2009, 06:56 AM
jerryt jerryt is offline
Sage Fanatic
 
Join Date: Oct 2007
Posts: 832
Quote:
Originally Posted by eric3a View Post
Sure.

The main part is a remotely controllable power strip. I have one of these.
It can be controlled via a web interface or a command line program.

Run SageAlert (no fiuher intro needed!).
Run Growler for Windows. See here.
I run Growler on the same machine as SageTV and SageAlert so SageAlert connects to growler on 127.0.0.1

Get Scripty, a display method for Growler here. (bottom of the page).

Now set up SageAlert to send the ERRORS you want to Growler, and setup Growler to display them using Scripty as the display.
Scripty comes with a sample bat file which will extract the type of message, title, description of the error and a few other bits of info.
I was only concerned with the description so my bat file is:



As you see fairly simple.
HDPVR1.bat and HDPVR2.bat are 1 liner bat files that cycle each unit, using the command line interface from my remotely controllable power strip.



Renamer.bat is also very simple file which renames the Scripty bat file for 5 minutes so it becomes inaccessible to SageAlert/Growler for that period of time to avoid an infinite loop.



Wait is a classic one:


That's it!
The sad part is it took me the best part of an afternoon to get it going. In my defense the testing is slow once you get to actual testing as it takes minutes every time you crash an HDPVR on purpose.

I hope this helps.
If any one sees way to make this cleaner/faster/better, I'm game!

In particular a way to positively identify each tuner when one is called:
"Hauppauge HD PVR Capture Device Component"
and the other one:
"Hauppauge HD PVR Capture Device #2 Component"
I can only figure a way to negatively recognize the first, as not being the second.
Maybe counting the number of characters between quotes?

Eric
@ Eric3a

Could someone use Devcon.exe with a batch file like;
"devcon disable USB\(Hardware id of HD-PVR)
w 300
devcon enable USB\(Hardware id of HD-PVR)"

and accomplish the reset of the HD-PVR without the cost of the remotely controlled power strip?

Last edited by jerryt; 11-10-2009 at 07:02 AM.
  #140  
Old 11-10-2009, 08:50 PM
eric3a eric3a is offline
Sage Advanced User
 
Join Date: Jul 2009
Location: Houston by the Sea
Posts: 226
I don't know if that would work.

When my units lock-up (still hesitating to use a past tense after 2 weeks without doing so and counting!) I HAD to reset them via power off/on and simply disabling /re-enabling USB port was rarely the solution.
If you can solve your lock-ups manually with disabling/enabling your USB port, then it might be the solution for you.

I travel a fair amount so I already had installed a remotely controlled power strip a while back anyway. Finding out I could use it programmatically to solve HDPVR lock-ups was just icing on the cake.

Eric
Closed Thread


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
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
Hulu: Possible to Use XBMC Hulu Plugin to create SageTV Plugin? Brent SageTV Customizations 8 02-24-2009 04:16 PM
Netflix Plugin DwarF SageTV Customizations 8 01-23-2006 08:40 PM
REMOTE WONDER II Plugin? casperse Hardware Support 13 11-08-2004 05:17 PM


All times are GMT -6. The time now is 10:02 AM.


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