SageTV Community  

Go Back   SageTV Community > SageTV BETA Release Products > SageTV Beta Test Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 02-20-2010, 05:59 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Jeff, 2 more "feature" enhancements for System Messages API

1. IsSystemMessage(object): This would be handy for my object serializers. Currrently is uses the IsMediaFile(), IsChannel(), etc, but I can't actually serialize the SystemMessages because I can test for them. Actually any time you add a new object type, it would be handy to add the Is"ObjectType" api, so that I can update the serializers (xml & json) to include that object type.

2. GetSystemMessageVariableNames(object): I can get variables by "name", but there is no way to tell what variables are stored against the SystemMessage. This would be handy for me, because when I display the system messages, i'd like to also display the variables are stored with the message. In my case, for bmt, I can use the variables as a means to better organize the message, showing things such as the query details.
Reply With Quote
  #42  
Old 02-20-2010, 04:38 PM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
Is there a way to that the capture card system message failure could trigger a batch file or something that could automatically power cycle a capture card device, such as a HD-PVR or HDHomerun failure?

Dave
Reply With Quote
  #43  
Old 02-20-2010, 05:41 PM
timg11's Avatar
timg11 timg11 is offline
Sage Aficionado
 
Join Date: Sep 2008
Posts: 472
Quote:
Originally Posted by davephan View Post
Is there a way to that the capture card system message failure could trigger a batch file or something that could automatically power cycle a capture card device, such as a HD-PVR or HDHomerun failure?

Dave
I modified my Sage System Message program a while ago to implement that exact function. I forgot to upload it, but it is there now. The download page is here.

This program is rather crude, but it does let you run a program to reset the HD-PVR.
__________________
HD300 extender with (2020 New Build) SageTV 64 bit V9.2.2.903 (service mode), Running on Windows 10 (64 bit), Intel Core i7-10700K CPU, 16G RAM, GIGABYTE Z490 UD motherboard. NVidia GTX1650 Super; Viewsonic LCD on one output and Mitsubishi WD57734 HDTV via DVI/HDMI on other output. HDHomeRun HDHR5-4US tuner, Hauppauge "Siena" 1512 HD-PVR2 connected to Cisco Cable modem from Spectrum, tuned with USB-UIRT.
Reply With Quote
  #44  
Old 02-21-2010, 07:52 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by stuckless View Post
1. IsSystemMessage(object): This would be handy for my object serializers. Currrently is uses the IsMediaFile(), IsChannel(), etc, but I can't actually serialize the SystemMessages because I can test for them. Actually any time you add a new object type, it would be handy to add the Is"ObjectType" api, so that I can update the serializers (xml & json) to include that object type.
I second this request. It would also be nice to have API's like GetSystemMessageForX(), GetEditorialForX() and GetSeriesInfoForX() - similar to GetAiringForID(). Since I often do things across HTTP requests, I find myself inventing my own ways of finding objects where I would expect the Sage APIs to do the dirty work for me.

Currently for system messages I had to come up with my own system for determining a unique ID for a message based on message code and timestamps, then on subsequent HTTP requests I have to loop over the array returned by GetSystemMessages() to find the message I'm looking for. Not exactly ideal. SeriesInfo looks like it could be a problem as well because I have two series with the same name. Hopefully I'll find another property I can append to determine uniqueness.

Thanks,
Jason
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #45  
Old 02-22-2010, 10:22 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
I'm with jreichen. I also had to do the same kind of thing in SJQ. I ended up creating keys for all system messages based on the md5 hash of the concatenation of the message text and the timestamp of the message. The possible downfall of my approach is that it assumes that more than one instance of the same system message can never be generated at the exact same time. To date, this assumption has held true and I've had no problems (knock on wood).

In case anyone wants to know exactly what I'm doing, here's the util class I created to generate unique keys for system messages and to find a system message based on the unique key:

http://code.google.com/p/sagetv-addo...sageUtils.java

I agree with jreichen that the Sage API itself should be providing these kinds of services.
__________________
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
PlaceShifter Functionality shhas SageTV Placeshifter 2 04-29-2006 04:43 AM
has this functionality been added? JPW SageTV Beta Test Software 19 04-24-2004 07:11 AM
Does this functionality currently exist? newbie21 SageTV Software 7 01-27-2004 10:56 AM


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


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