Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sage Media Server driver (beta)
#21
I updated the XML macro, you will need to reload the SageMediaServer driver for it to take effect. It didn't like when a control character ended a string, like the title of one of tonight's "Two and a half men" episodes...
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#22
I added a QueryTextVal method, which makes it possible to have 2 different clients consulting different recorded shows, upcoming recordings or channel content... If you are not worried about simultaneous operations, you should stick to the easier Field methods... They make use of a few macros, so you can use some "static list browser" and "variable text" widgets.

MEng.User.CQC.Macros.Sage.GetList

<Moniker> <Name> <SortProperty> <SortOrder> <UnWatched> <List> <ListOfIDs>

SortProperty: {Title, Episode, Category, StartTime, EndTime, IsWatched, Description, OriginalAirDate, Rating, MovieYear, Channel, Duration}

SortOrder: True = Increasing, False = Decreasing.

UnWatched: True = Shows not previously watched, False = all shows.

SageRepo RecordedShows StartTime False True GVar:RSList GVar:RSListOfIDs

SageRepo UpcomingRecordings StartTime True False GVar:URList GVar:URListOfIDs


MEng.User.CQC.Macros.Sage.GetTimeslots

<Moniker> <Index> <List> <ListOfIDs>

SageRepo %(StdRTV:SelectIndex) GVar:CCList GVar:CCListOfIDs GVar:CCChannel GVar:CCChannelNumber


To fill a "static list browser" from the returned "quoted comma lists", you would use:

ChannelContent::SetBrowserList2(%(GVar:CCList), %(GVar:CCListOfIDs))


MEng.User.CQC.Macros.Sage.GetDetails

<Moniker> <Name> <ShowID> <Title> <Date> <Genre> <Desc> <Actors> <FirstRun> <HD>

SageRepo Channel %(IntfRTV:UserData) GVar:CCTitle GVar:CCDate GVar:CCGenre GVar:CCDescription GVar:CCActors LVar:IsFirstRun LVar:IsHD


<Moniker> <Name> <ShowID> <Title> <Date> <Genre> <Desc> <Actors> <ChannelName> <HD>

SageRepo RecordedShows %(IntfRTV:UserData) GVar:RSTitle GVar:RSDate GVar:RSGenre GVar:RSDescription GVar:RSActors GVar:RSChannel LVar:IsHD

SageRepo UpcomingRecordings %(IntfRTV:UserData) GVar:URTitle GVar:URDate GVar:URGenre GVar:URDescription GVar:URActors GVar:URChannel LVar:IsHD
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#23
Hey, dunno if this has been fixed in a recent version or not, but I just updated and got these errors:

Code:
05/06 22:52:54-cqc-server, CQCServer, CQCDrv_smedia_Thread11
{
    CQCKit, MEng.User.CQC.Drivers.SageTCP.SageMedia.DriverImpl_Dev.645, API Failed/Data Format
    A macro parse event occured
    Overrides must have identical parameters, return, and visibility as the overriden method
}
05/06 22:52:54-cqc-server, CQCServer, CQCDrv_smedia_Thread11
{
    CQCKit, MEng.User.CQC.Drivers.SageTCP.SageMedia.DriverImpl_Dev.653, API Failed/Data Format
    A macro parse event occured
    Expected a method call, object reference, or flow control statement here
}
05/06 22:52:54-cqc-server, CQCServer, CQCDrv_smedia_Thread11
{
    CIDMacroEng, CIDMacroEng_Parser.cpp.2184, Status/App Status, Error: 6505/0/0
    An unrecoverable error occured while parsing
}

I think maybe this is those breaking changes Dean talked about for the QueryVal thing? Maybe?
Reply
#24
beelzerob Wrote:I think maybe this is those breaking changes Dean talked about for the QueryVal thing? Maybe?
Yes, he replaced a Card4 by a String, so the latest version won't work on the .40+ beta. I'll probably be updating my CQC version next week or so, so I can update the driver then.
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#25
beelzerob Wrote:I think maybe this is those breaking changes Dean talked about for the QueryVal thing? Maybe?
Version .90 (and up) now requires CQC beta 2.4.40 and up...
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#26
Hello all. First, I really want to thank everybody for so many nice development efforts and helpfull forum threads. I have just purchased cqc for my automation purposes and it has really helped me get started.

So now I have got the sageplayer/sagerepo drivers running and deliver its magic to 2 HD200 extenders, serving movies from the mymovies repo. All working wonderfully.

My question is now regarding extending this setup to also use sage as the audioplayer head. Would this be possible in any way? All my music is in the JRMC repo, and it seems to me it should be possible to do something similar to what we do when starting movies from mymovies repo However, I think I am missing an "enqueueSong" and "playSong" field where I could paste an UNC path to an mp3 and have it play in sage?

I hope this could be possible as it would somewhat replace the need to have separate hardware for audioplayback (ignoring sync problems etc).
Reply
#27
Shildrak Wrote:However, I think I am missing an "enqueueSong" and "playSong" field where I could paste an UNC path to an mp3 and have it play in sage?
Have you tried using the same WatchShowPath field? As long as you can pass the full filename, it shouldn't matter if it's audio or video... As far as playlist are concerned, I don't think the driver handles them, but the underlying SageTCPServer.jar can definitely do it...
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#28
You're right. WatchShowPath will handle the audio as well, as long as the files are also imported into sagetv's own media repository. (I only had the music in JRMC and the exported xml into cqc when I first tried it). So now I'm up to synchronizing my music in 4 repositories: jrmc, cqc, squeezecenter and sagetv, but it works :-)

Thanks for the pointer.
Reply
#29
Fonceur,

I think I am running the latest version of the driver (downloaded .9 from the head of this thread, but it says .8.9 in the field once loaded).

When I write a number, say '5', into the 'SelectedChannelIndex' field, the driver disconnects. I also don't have anything populated in the ChannelNames, ChannelNumbers, ChannelNetworks fields.

Am I missing something about how these fields work?

Thanks!
Reply
#30
SamVimes2 Wrote:Am I missing something about how these fields work?
Make sure you also have the latest XML and SageTCPServer files... The empty channel fields would indeed be consistent with a mismatched version...
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  OpenWeatherMap Weather Driver Using OneCall API kblagron 13 5,574 02-24-2023, 02:07 AM
Last Post: kblagron
  Onkyo/Integra Receiver Driver sic0048 6 537 01-08-2023, 10:24 PM
Last Post: kblagron
  RainMachine Sprinkler Irrigation Controller Driver kblagron 60 24,143 07-17-2022, 08:36 PM
Last Post: kblagron
  SmartThings API V1 driver kfly 5 1,416 02-22-2022, 07:55 AM
Last Post: kfly
  Tesla Driver Driver kfly 14 6,826 02-21-2022, 10:11 AM
Last Post: kfly
  Help on editing existing Driver Spot 5 1,132 02-03-2022, 06:50 PM
Last Post: kblagron
  New to driver development - where to start? jokermac 2 1,009 09-22-2021, 04:01 PM
Last Post: Spot
  Yamaha RX-V673 IP control Driver jdmevo123 22 12,481 03-27-2021, 03:02 PM
Last Post: Spot
  Updated SMS Driver gReatAutomation 0 950 01-28-2021, 12:53 PM
Last Post: gReatAutomation
  Russound MCA-66 on TCP driver lapointe.sc@gmail.com 5 3,260 05-24-2020, 06:23 AM
Last Post: gReatAutomation

Forum Jump:


Users browsing this thread: 1 Guest(s)