|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#81
|
||||
|
||||
Quote:
__________________
-- Greg |
#82
|
|||
|
|||
I can confirm that my emails have stopped since I upgraded to the latest version.
By the way - not a lot of folks using this yet, or at least not many folks that are visible when searching on #sagealert - only about 3-4 it appears.
__________________
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; 09-16-2009 at 09:21 PM. |
#83
|
|||
|
|||
Quote:
I didn't post about 537 and I probably won't post about the details of each snapshot from here on out. Everyone can just check the download page to see when new snapshots are available or you can subscribe to any of the various RSS feeds at the project site. The subversion RSS feed will tell you any time I commit code changes to the project, the downloads RSS feed will tell you when new packages (snapshots, official releases) are uploaded to the project, and the main project RSS feed reports on all changes and updates to the project (basically all the other RSS feeds combined). Now all of my plugins are in the same Google Code project so not every post in the RSS feed will be about SageAlert, but if you just followed the downloads feed then it's not too bad.
__________________
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... |
#84
|
|||
|
|||
Thanks Slugger: SageAlert is the bees' knees!!
I had been hoping for something like that ever since I got my HDPVRs (which lock up once in a while). So, after an afternoon's work (I'm not the fatest with these things!), this is what I do now: -SageAlert detects Errors, and shoots an email to my private account, readable on my blackberry or any other email capable machine. -Also shoots over a Growler alert to the Growler server on my SageTV machine, which then -"Displays" it via Scripty, which alllows me to run a bat script. -The bat script gets the error description from SageAlert and tests it to find out which HDPVR failed. -Then resets that HDPVR -Last, the bat file is renamed for 5 minutes so I don't enter into an infinite loop of reset creates an error, which resets, which creates an error, etc... -5 minutes later the bat file is renamed to it's original name so it is again accessible to SageAlert/Growler/Scripty. So now I have self-correcting HDPVRs!! Thank you, thank you thank you! Just a question/remark though: On ERRORS, the description is passed entirely to Scripty. On WARNINGS, the description is truncated when it reaches Scripty. Below is extract of the log file I create from the bat file that checks description, analyzes it to see which unit to reboot: Quote:
Because my HDPVRS have the same descriptive name (unfortunately) except for a "#2" at the end, the only way to analyze which is which is to have the full description, at least all the way to where the "#2" is. The SageAlert WARNING email does contain the full description, but the growler/scripty description gets truncated. I don't know why. Can you check your end? In any case, I may have discovered by pure accident that resetting the wrong HDPVR -even while it's recording- isn't a big deal as the down time appears to be short enough not to affect the recording (!!). So I may change the whole resetting logic and reset both HDPVRS whenever an error is detected... Still, intellectually it would be nice to positively identify each tuner and reset that one only. I'm 100% there on ERRORS, but not on warnings... Thanks again. Eric Last edited by eric3a; 09-19-2009 at 05:09 PM. |
#85
|
||||
|
||||
Very nice. Perhaps you could share your scripts and setup?
S |
#86
|
||||
|
||||
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: Quote:
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. Quote:
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. Quote:
Quote:
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 |
#87
|
|||
|
|||
All good on my end. It appears the error alerts have no double quotes in them but the warning alerts do appear to have double quotes in them. I'd be double quoting the msg txt in your bat, I'm pretty sure that's the problem.
__________________
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... |
#88
|
|||
|
|||
Thanks Slugger; Much appreciated.
At least I know it's my side! It could be the quotes, but even double-quoting I'm still getting a truncated description. I suspect there is a special character after the word "Hauppauge" and the quotes aren't the problem. The truncation does not happen at a quote mark (just before the word "Hauppauge"). There is no quotation mark that I could see after that word, yet that's where the troubles happen. I'm stumped, and it's likely because I'm not good at string manipulation in bat files. Amazingly, cycling a perfectly working HDPVR throws in a WARNING but doesn't hurt the resulting video, which must be buffered on the server enough to withstand about 5 to 10 seconds with no power. I was pleasantly surprised when I watched the news I recorded this afternoon while I mistakenly reset the tuner recording them to find out there were no blips in the recording! So for the time being, if I can positively identify #2 tuner, I only reset that one. If I can't positively identify the tuner (truncated description), I reset both. Eric |
#89
|
|||
|
|||
So now that I have automated the error correction process anyone know how to disable the popup screens telling me about errors?
I still need the system messages of course. Just want to get rid of th big splash screen in the middle of the interface that popups on severe errors. Eric |
#90
|
|||
|
|||
I just got an email from Sage that my cable company added a new channel. The channel is nothing I'm excited about, but the email from SageAlert was tre cool. Thanks again, Slugger, for this excellent plug-in.
- Jeff |
#91
|
|||
|
|||
I got a similar email after Dish added 2 channels also, although I didn't think I would. I thought I had configured SageAlert for Errors only. I'll need to check that.
The great part though was seeing that the alert did not trigger Growler/Scripty and did not reset my HDPVRs, so that part is screening HDPVR errors only. It's really nice to know my HDPVRs will just "take care of themselves". I love SageAlert! Eric |
#92
|
|||
|
|||
Finally got around to installing this - very cool concept by the way.
I have Growler alerts working and e-mail alerts working, but can't seem to get the twitter part to work. I tried test and it doesn't even work there. SageTweet worked fine although I removed it so I could more easily test this app. Any suggestions on what to look for in the logs or some settings thing I missed? UPDATE: It appears that "end recordings" alerts do work for twitter alerts, but start recordings only work with e-mail. Strange Last edited by Brent; 09-23-2009 at 01:22 PM. |
#93
|
|||
|
|||
Quote:
I was having problems with Twitter in that it would reject some updates with a "408 error" (you'll see 408 in the exception). If that's the error you're seeing then it's on Twitter's end - they are throttling updates. I saw the same thing during testing when I had recording started and recording finished alerts turned on for Twitter - the second one would always fail. I opened a ticket with Twitter - they haven't responded yet. After my initial testing I've just been tweeting recording finished posts and haven't had any problems since. Twitter is doing something weird that is causing the start/end tweets from working properly (assuming you're also seeing the "408" exception errors).
__________________
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... |
#94
|
|||
|
|||
Here's the error I'm getting:
Code:
2009-09-23 16:59:25,110 ERROR [TwitterServer]: 'New notification server test event...' notification FAILED to 'Twitter @geektonichtpc' Last edited by Brent; 09-23-2009 at 04:06 PM. |
#95
|
|||
|
|||
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... |
#96
|
||||
|
||||
So I'm still having the disappearing file(s) issue but wasn't going to hassle with it any further but then I read this:
http://forums.sagetv.com/forums/show...7&postcount=57 Is this what I'm experiencing? |
#97
|
|||
|
|||
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... |
#98
|
||||
|
||||
Okay, thanks for the followup.
And just to clarify, nothing else in my temp folder is getting removed as far as I can tell, there's always tons of crap in there so I have to wonder why only the SageAlert stuff? Anyhow, at some point I'll probably go with the non-standard way you described previously since updates to SageAlert aren't coming fast and furious now. Thanks again for all your work on this great app! |
#99
|
|||
|
|||
Would it make sense to have SageAlert notify you that SRE is monitoring a given event - i.e.
Code:
'NHL Hockey' has just started recording and is being monitored by SRE.
__________________
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 |
#100
|
|||
|
|||
Quote:
[10 mins later... after pondering the idea while reading my email] Yes, I can't argue that the idea is logical and it actually seems like such info would be useful. The problem is that there's no way for SageAlert to know about SRE and what it's doing. All the current alerts work by communicating with the SageTV API. The API provides a well defined, consistent way to peek into the state of a SageTV system and generate events based on what I find. Now obviously I have the advantage in that I author both plugins in question and so I could create that "well defined, consistent" mechanism by which SageAlert can figure out what SRE is doing, but defining and implementing that system is a bit of a time consuming process and I can't envision any other use for a public SRE API. And on top of that, I'd have to create another monitor thread that would actually end up doing nothing but chewing up memory for no reason b/c based on download stats it's safe to assume/speculate that very few SageAlert users also have SRE installed. With all that said, I personally would find that info useful so that means there's a slightly better chance that it could happen, but I wouldn't hold one's breath waiting for it (especially b/c I've got myself buried in SJQ v3, which is working, but has surfaced a possible need to rewrite some larger chunks of it and if I actually take that plunge then my SageTV play time is probably booked solid through the new year).
__________________
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 |
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 |