|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Utility: Windows Sidebar/Desktop Gadget
This is v2 of the Windows Sidebar/Desktop gadget for SageTV7 that can be run on any Vista or Windows 7 PC networked with the SageTV server. *Before it will work it is necessary to install the support plugin via the SageTV7 plugins interface which will ensure that the required dependencies are installed (see below).
**Note that the user name and password are stored and sent in plain text so this should only be used over a local network. Features
Installation
*Note that the Sage Web Interface is no longer required for this gadget to work but it can still be launched when you click on the logo (based on your Options selection) and when you click on a scheduled program in the flyout so you might still want to install it anyways. *If the gadget does not install and you are using an operating system language/locale other than US English then you may have to change the zip file before installation. *Unzip the downloaded file, rename the "en-US" folder to your locale id string, zip everything up again, rename the zip file to end with '.Gadget', and double-click again to install. v2.1 - 04/03/11 Download
__________________
-Craig Last edited by cncb; 04-03-2011 at 02:57 PM. |
#2
|
|||
|
|||
Now Playing Customization
The Now Playing information below the time progress bar can be customized. It can be a little "messy" because it is a javascript string representing the HTML displayed in that space but it is pretty powerful since you can show most any of the data about the current media file formatted in different ways. Note that the 'mf' variable represents the json object returned by the sagex remote api services for the current media file. Keep in mind it can be complicated and frustrating to debug errors in your string. I created the example below to illustrate how you can show a thumbnail and different text based on the current media type. Music TV Delete the existing text and copy and paste the text below exactly as is to the "Now Playing HTML string" text box in the gadget Options and increase the "Details area height" to ~200 to be able to see most information for this example. Code:
"<div><img height='75px' src='http://" + gUser + ":" + gPass + "@" + gServer + ":" + gPort + "/sagex/media/thumbnail/" + mf.MediaFileID + "' /></div>" + "<div style='text-align:left;padding:3px 3px 0px 3px'>" + "<div style='color:Yellow'>" + mf.MediaTitle + "</div>" + "<div>" + (mf.IsMusicFile ? "<div style='font-style: italic; color: #C0C0C0'>by" + "</div>" + "<div style='margin-left: 10px'>" + mf.Album.AlbumArtist + "</div>" + "<div style='font-style: italic; color: #C0C0C0'>from" + "</div>" + "<div style='margin-left: 10px'>" + mf.Album.AlbumName + " (" + mf.Album.AlbumYear + ")</div>" : (mf.IsTVFile ? mf.Airing.Show.ShowEpisode + "<br/>" + new Date(mf.Airing.AiringStartTime).format(gDateFormat + " " + gTimeFormat) : "" ) ) + "</div>" + "</div>" Recording Schedule Item Customization Starting with v2.1 you can now similarly customize the information displayed for each item in the Recording Schedule. The example below shows the channel logo and some additional information about the scheduled recording. You will need to increase the "Schedule Item Height" in the options to see more of the information. Code:
"<div class='RecordingTitle' style='height:20px;color:yellow'>" + "<div>" + "<img style='position:relative;top:3px' height='15px' src='http://" + gUser + ":" + gPass + "@" + gServer + ":" + gPort + "/sagex/media/logo/" + airing.Channel.StationID + "?type=small' />" + " " + airing.AiringTitle + "</div></div><div class='RecordingSub'>" + (isRecordingNow ? "-" + stop.format(gTimeFormat) : (date != today ? date : start.format(gTimeFormat))) + " " + airing.AiringChannelName + " (" + airing.AiringChannelNumber + ")</div>" + "<div class='RecordingSub' style='color:aqua'>" + airing.Show.ShowEpisode + "</div>" + "<div class='RecordingSub' style='white-space:normal;height:100%'>" + airing.Show.ShowDescription + "</div>"
__________________
-Craig Last edited by cncb; 04-03-2011 at 02:49 PM. |
#3
|
|||
|
|||
I look forward to this as I have not been able to get the previous version to work since upgrading to V7. I am away from home until the weekend so I will give it a try at that time and let you know if it works.
__________________
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 |
#4
|
||||
|
||||
Very nice. Only issue I'm having is the disk space shows N/A. My Sage server is a WHS and I have the gadget on a Windows 7 PC client.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#5
|
|||
|
|||
Were you able to install the gadget 'plugin' successfully on your server? Does the "Now Playing" feature work?
__________________
-Craig |
#6
|
||||
|
||||
Excellent work CNCB! It installed flawlessly and works very well. What a usefull little applet. Big improvements over last version.
|
#7
|
||||
|
||||
Quote:
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#8
|
||||
|
||||
This looks very nice. Any chance you could make a version that runs under XP?
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#9
|
||||
|
||||
The Gadget panel is a Microsoft OS-specific addition that was first available in Vista. No XP version I'm aware of.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#10
|
||||
|
||||
So the thumbnail and Now Playing is working great. And I know this has been some work for you but I had a thought. What would be really cool is if that was a little video window playing the Now Playing from a client. The wife had the news on in the bedroom and as I was my study I was thinking that would be really cool. I don't know how practical it is but I have seen other video playing gadgets. It's just a thought and may not even be practical or too much work.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#11
|
|||
|
|||
I agree this would be cool but not really feasible at the moment. Even if I got video playback working in the gadget, there is no way to get it synced with a Sage client (I don't believe this is even currently possible with Client or Placeshifter). To "simulate" gadget video playback you could use Client or Placeshifter, resize the window way down, and move it under the gadget .
__________________
-Craig |
#12
|
|||
|
|||
Quote:
__________________
-Craig |
#13
|
|||
|
|||
Looks great but I can't get it to connect. The older version worked fine and I validated the credentials are correct. The only difference is I'm using 8085 for the port. Is there maybe a issue with the new version where its not picking up the non-standard port.
I can fire up the old version and it works, compare the two configus side by side to verify they are the same, but the new version won't connect. Thanks Robert |
#14
|
|||
|
|||
I use a different port with no problems. Go to the "Installed Plugins" screen in Sage and select the "sagex-services" plugin, choose "Configure Plugin", scroll to the bottom, and make sure you are using the "HTTP Port" listed there in the gadget options.
__________________
-Craig |
#15
|
|||
|
|||
I didn't have sagex-services plugin installed yet. The older version did not require it. Its working now. I jumped and should have read the directions. :<) Thanks
Last edited by ace007; 02-25-2011 at 07:41 PM. |
#16
|
|||
|
|||
Works great, thanks! I could never get the previous gadget to work on Sage 7 for some reason.
__________________
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 |
#17
|
|||
|
|||
Glad to hear it. Hopefully the IE9 problems other people were having will go away too.
__________________
-Craig |
#18
|
|||
|
|||
Some suggestions for future enhancements:
-Show system messages in the gadget -Grab client aliases from the /webserver/extenders.properties file -Have a button for forcing EPG update -Have a button for rereading all media files I am sure that I will have more after using for a little while.
__________________
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 |
#19
|
|||
|
|||
I will keep these in mind but the "web server/interface" has these features and can be easily shown by clicking on the SageTV logo in the gadget if you set up the Options to do so. Also, clicking the System Message alert icon in the gadget will launch the web interface directly to the System Messages page.
__________________
-Craig |
#20
|
|||
|
|||
I realize that, and I use the web interface all the time, but I think it would be nice to also see them in the gadget, especially the system messages colour coded by severity.
__________________
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Utility: SageChanger STBs firewire channel changer for Windows | mikep | SageTV Customizations | 73 | 06-28-2017 08:47 AM |
Windows Experts - Location in registry for Desktop working area? | cncb | The SageTV Community | 6 | 06-05-2011 08:32 AM |
Utility: Vista Sidebar Gadget | cncb | SageTV Customizations | 171 | 02-24-2011 07:47 PM |
Display Windows desktop via SageTV? | Torrox | SageTV Software | 3 | 11-05-2007 02:28 PM |
Any way to view SageTV as a sidebar gadget? | SAGEaustin | General Discussion | 6 | 10-17-2007 07:56 PM |