SageTV Community  

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

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #201  
Old 10-26-2010, 07:53 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by Slugger View Post
Already in SageAlert. You have to click on Clients and then configure them for each client device. (I know, I know, trust me the docs are coming.)
sweet thanks... not sure how i missed that... glossing over the big "Starts Playback Edit" button
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #202  
Old 01-08-2011, 01:01 PM
iolaus iolaus is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 83
Thanks for this awesome plug-in! Using a Windows version of wget and the REST API on my ISY-99i I'm now able to control the lights in my theater based on SageTV events.

On that note, I was hoping you might be able to add a Client event for Pause. It would be very helpful for my situation.
Reply With Quote
  #203  
Old 01-08-2011, 01:17 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by iolaus View Post
Thanks for this awesome plug-in! Using a Windows version of wget and the REST API on my ISY-99i I'm now able to control the lights in my theater based on SageTV events.

On that note, I was hoping you might be able to add a Client event for Pause. It would be very helpful for my situation.
If you convince Sage to add that event to the core then SageAlert will support it. Currently, the core only supports PlaybackStarted and PlaybackStopped.
__________________
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...
Reply With Quote
  #204  
Old 01-08-2011, 05:16 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by iolaus View Post
Thanks for this awesome plug-in! Using a Windows version of wget and the REST API on my ISY-99i I'm now able to control the lights in my theater based on SageTV events.
That's ingenous - can you post more details on how you do this?
__________________
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
  #205  
Old 01-08-2011, 08:06 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by iolaus View Post
On that note, I was hoping you might be able to add a Client event for Pause. It would be very helpful for my situation.
I bet sage would add that if asked officially (its probably about 5 min of work for them)... so you should submit a support request
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #206  
Old 01-10-2011, 10:07 AM
iolaus iolaus is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 83
Quote:
Originally Posted by wayner View Post
That's ingenous - can you post more details on how you do this?
Wayner, the process isn't too difficult actually. If you have an ISY-99i it provides a RESTful web API that allows you to control devices, scenes, and programs.

Utilizing wget for Windows, a command-line app that is able to make web requests, and a SageAlert Process Executor you can easily control the ISY (or anything else with a RESTful web API).

Here is an example Process Executor:

Description: Theater Movie Started
Executable: c:\Program Files (x86)\wget\wget.exe
Process Arguments: http://<username>:<password>@<isy.address.local>/rest/nodes/<scene node #>/cmd/DON

Then just go to your Client config in SageAlert and enable the "Theater Movie Started" checkbox in the "Starts Playback" settings.

Quote:
Originally Posted by razrsharpe View Post
I bet sage would add that if asked officially (its probably about 5 min of work for them)... so you should submit a support request
I just submitted a support request to SageTV. I'll let you guys know what I hear.
Reply With Quote
  #207  
Old 01-10-2011, 01:25 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Interesting - I guess that since Sage (and sage extenders) can be controlled by html commands that you could also control Sage from light switches, etc, assuming that they could trigger wget. Although I can't think of too many instances of why you would want to do that. But perhaps it would make sense to pause playback on Sage if your phone rings - but that is not really part of a Home Automation 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
Reply With Quote
  #208  
Old 01-12-2011, 08:01 PM
iolaus iolaus is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 83
I received good news regarding my SageTV support request today...


Ryan,

Yes, it'll be PlaybackPaused and also PlaybackResumed for when playback is
resumed after pausing.

Thanks,

George Oms
SageTV, LLC
http://www.sagetv.com


REQUEST DESCRIPTION: Would it be possible to add a SageTV event that fires
when media is paused? I'm utilizing the SageAlert plug-in to control my
theater lighting based on SageTV events and would like to be able to raise
the lights when content is paused. Discussion regarding this feature
request can be found here:
http://forums.sagetv.com/forums/show...&postcount=202

Thank you.
Reply With Quote
  #209  
Old 01-12-2011, 08:56 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Keep an eye out on the release notes of a future 7.1 beta of SageTV. When you see this feature added remind me with a post here. Once the event is added to the core it's rather trivial to make SageAlert support it. I just have to be reminded to do it when the time comes.
__________________
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...
Reply With Quote
  #210  
Old 01-22-2011, 03:08 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Next update will break all playback events!!

Please note that the next update of SageAlert will break all client playback events. You will need to reconfigure all playback events. This is necessary because the next build breaks the playback events down by media type. So now you will be able to specify events for playback of specific media type (TV, DVD/BR, Import, Music). Because of this, you will need to configure the alerts for each separate media type. ETA is by next weekend (probably earlier, I'm running the build now and am not seeing any issues with 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...
Reply With Quote
  #211  
Old 02-22-2011, 08:48 PM
iolaus iolaus is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 83
Quote:
Originally Posted by Slugger View Post
Keep an eye out on the release notes of a future 7.1 beta of SageTV. When you see this feature added remind me with a post here. Once the event is added to the core it's rather trivial to make SageAlert support it. I just have to be reminded to do it when the time comes.
Here is your reminder:

Plugin System Updates
1. Added core plugin events for PlaybackPaused and PlaybackResumed (same variables as PlaybackStopped/Started/Finished)

Thanks!
Reply With Quote
  #212  
Old 02-22-2011, 08:55 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by iolaus View Post
Here is your reminder:

Plugin System Updates
1. Added core plugin events for PlaybackPaused and PlaybackResumed (same variables as PlaybackStopped/Started/Finished)

Thanks!
Beat you to it. SageAlert 2.0.0.1399 (released the other day) has support for these events.
__________________
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...
Reply With Quote
  #213  
Old 02-23-2011, 09:54 AM
war10ck war10ck is offline
Sage User
 
Join Date: Apr 2010
Location: Dallas, TX
Posts: 45
This plugin looks interesting but I can't think of a reason i would want Sage to send me notifications.

I'm curious to know how other users are taking advantage of this plugin. Anyone willing to share?

Thanks
Reply With Quote
  #214  
Old 02-23-2011, 10:12 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
basically get notification outside of the sage ui for system messages.... so recording failures, conflict warnings, system upgrades, plugin upgrades, etc
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #215  
Old 02-23-2011, 01:55 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Also, it might be worth noting that many of us have the web interface set up, so we can react accordingly if a conflict happens. We also might have remote access to our server and/or client to do remote troubleshooting, particularly if the spouse/bf/gf calls with the infamous "Sage isn't working." (Those are always great to receive while at work.) With the alerts forwarded to us, we may already know about the issue when the call comes in. :-)
__________________
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
Reply With Quote
  #216  
Old 03-09-2011, 08:49 PM
larryf larryf is offline
Sage Advanced User
 
Join Date: Jan 2006
Posts: 130
Sagealert messages on extenders?

Is there a way to have Sagealert messages display on extenders? (Like Infopopup/Caller ID displays an incoming caller ID on the extenders).

I was watching a program on an extender last night, and had no idea a recording in progress had failed... A visual display on the extender would have been a big help.

Thanks,
Larry
Reply With Quote
  #217  
Old 03-09-2011, 10:48 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by larryf View Post
Is there a way to have Sagealert messages display on extenders? (Like Infopopup/Caller ID displays an incoming caller ID on the extenders).

I was watching a program on an extender last night, and had no idea a recording in progress had failed... A visual display on the extender would have been a big help.

Thanks,
Larry
If there's a way to display a popup on an STV (or to do whatever the caller id plugin does) via Java then I'd be willing to write the SageAlert server type to do it, but I doubt there is. In order to do this, there has to be a way to invoke the popup via Java. I don't work with Studio/STVs at all so I really don't have any idea if it's at all possible from Java. Perhaps some others with that knowledge can chime in and let us know.
__________________
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...
Reply With Quote
  #218  
Old 03-10-2011, 07:44 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by larryf View Post
I was watching a program on an extender last night, and had no idea a recording in progress had failed... A visual display on the extender would have been a big help.

Thanks,
Larry
When your recording failed i believe you should have gotten a system message popup telling you there was an error in the recording. The message would have been one of the standard error messages

Quote:
Originally Posted by Slugger View Post
If there's a way to display a popup on an STV (or to do whatever the caller id plugin does) via Java
There probably is by setting a couple of variables with (AddStaticContext()) and then calling ExecuteWidgetChain(). You would just have to figure out what variables to set and Widget to call (i think fairly simple by examining the studio widget tree). I think the more tricky part would be getting the menu to launch in the correct context and which context to launch the message in (all UIContexts, only ones that are active, only the server context, only a specified context). I know pluckyhd did a fair amount of widget work in java in SMM so you might want to ping him for advice
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #219  
Old 03-10-2011, 04:33 PM
larryf larryf is offline
Sage Advanced User
 
Join Date: Jan 2006
Posts: 130
Quote:
Originally Posted by Slugger View Post
If there's a way to display a popup on an STV (or to do whatever the caller id plugin does) via Java then I'd be willing to write the SageAlert server type to do it, but I doubt there is. In order to do this, there has to be a way to invoke the popup via Java. I don't work with Studio/STVs at all so I really don't have any idea if it's at all possible from Java. Perhaps some others with that knowledge can chime in and let us know.
I did a bit of digging, it looks like I may have found a way to make it work, but not very pretty...

The author of YAC has a 'command line' program called yactextsend. While the YAC server is running, I can run 'yactextsend test 1234' from the command line and have it display the words test 1234 on all the extenders. So it appears I can use sagealert to run an external program on alerts, have it run yactextsend (maybe from a batch file?). I don't know how I would pass a variable to the batch file via sagealert, so I guess it would have to be a generic 'alert' message.

There is a yactextsend example source code here
http://sunflowerhead.com/software/yac/
along with a software developers kit and the textsend program... I'm a hardware guy, hopefully someone here can look and tweek this a bit to work.

Larry

Edited to say: I see how a variable can be passed via sagealert's 'process executer'

Last edited by larryf; 03-10-2011 at 04:52 PM. Reason: Found how to do pass a variable
Reply With Quote
  #220  
Old 03-10-2011, 04:47 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by larryf View Post
I did a bit of digging, it looks like I may have found a way to make it work, but not very pretty...

The author of YAC has a 'command line' program called yactextsend. While the YAC server is running, I can run 'yactextsend test 1234' from the command line and have it display the words test 1234 on all the extenders. So it appears I can use sagealert to run an external program on alerts, have it run yactextsend (maybe from a batch file?). I don't know how I would pass a variable to the batch file via sagealert, so I guess it would have to be a generic 'alert' message.

There is a yactextsend example source code here
http://sunflowerhead.com/software/yac/
along with a software developers kit and the textsend program... I'm a hardware guy, hopefully someone here can look and tweek this a bit to work.

Larry
You can do it via batch. SageAlert sets a whole bunch of environment variables containing all the details about the alert. You can then call this exe with those variables. So in your batch program:

Code:
@echo off

C:\path\to\yactextsend "%SA_SHORT%"
There are a bunch of vars to choose from:

%SA_SHORT% - The short version of the alert message (there's also SA_MED and SA_LONG)
%SA_SUBJ% - The subject
%SA_SOURCE% - The source event that caused this alert to be triggered

Hopefully that gets you going in the right direction...
__________________
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...
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
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
Plugin: SageAlert Slugger SageTV Customizations 201 06-28-2010 07:47 PM
SageAlert new release notifications Slugger Customization Announcements 2 03-06-2010 09:53 AM
Hulu: Possible to Use XBMC Hulu Plugin to create SageTV Plugin? Brent SageTV Customizations 8 02-24-2009 04:16 PM


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


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