SageTV Community  

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

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #2341  
Old 09-11-2009, 08:02 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by Gregavi View Post
I'm trying to get the Web Interface setup and I'm running into some problems that hopefully someone can helpme with. When I try to run the webserver plugin setup on my server, it stops as states "SageTV Service is Running. Please shut down the SageTV service". There is nothing Sage running at the time. So I'm stuck there with nothing to shut down. If I hit cancel it says "Installation Canceled" but the setup menu says "Setup was completed succssfully". If I point my web browser to http://localhost:8080/sage/Home I get nothing. I'm obviously missing something. Any help is greatly appreciated.
That message is only displayed if the installer finds a process named SageTVService.exe running. Look in task manager to see if that process is running. Use some of the tips provided by others here to shut it down then restart the installer.

Quote:
Originally Posted by Gregavi View Post
I have now tried the "manual" proceedure and when I point to http://localhost:8080/sage/Home I get nothing still.
Can you turn on debug logging and post your log file here?
__________________
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
  #2342  
Old 09-11-2009, 05:57 PM
Gregavi's Avatar
Gregavi Gregavi is offline
Sage User
 
Join Date: Aug 2009
Location: Santa Barbara, Ca.
Posts: 32
OK, I finally got it. It took closing Sage TV down through the Services menu. Who'da thought that would be necessary. Now I gotta figure out how to use this webserver thing. It seems waaaay different from what I'm used to, which is SlimServer. I'm assuming I will have the ability to access and play my music and video files from my laptop at my home stereo like with SqeezeCenter?
Reply With Quote
  #2343  
Old 09-11-2009, 06:45 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Glad you got it running.

The installer has to add an entry for the web server to the load_at_startup_runnable_classes line in Sage.properties so the web server will be started when SageTV is started. Any changes made to the Sage.properties file while SageTV is running are overwritten when SageTV is shut down. Because of this the installer alerts the user if SageTV is currently running.
__________________
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
  #2344  
Old 09-11-2009, 07:25 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Bug?

This may sound like a dumb question. But, for some reason when "Sage Recordings" are sorted by groups... all the movie aren't put in the like all the other groups. Is there a hidden option to get movies to be treated like the rest of the groups? I'm not sure how nobody hasn't noticed this problem before. If there's no option for this, what are the chances someone would be kind enough to fix the bug?

Thanks,
-Michael
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #2345  
Old 09-11-2009, 11:39 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
I can't reproduce that. I recorded two movies on the same channel. If I group either by category or channel, a group is created for them.

Are your recordings split into multiple pages? In that case, the items don't necessary get displayed together depending on the sort order and you might get a "group" of one on the page you're viewing - and other members of the group would be on other pages. You could go to "Show Options" and set "Results per Page" to "All" so you'll only have one page of recordings and see if it creates the grouping as you would expect.
__________________
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
  #2346  
Old 09-14-2009, 02:34 PM
BlueH2O's Avatar
BlueH2O BlueH2O is offline
Sage Advanced User
 
Join Date: Aug 2005
Location: Rochester, NY
Posts: 98
"play in extender" doesn't work?

When I try to play a live broadcast in an extender using the command from the web interface, I just get this message:

type:MediaFileId id:<some number> --java.lang.Exception: airing Id not found
Reply With Quote
  #2347  
Old 09-14-2009, 09:12 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Are you referring to the "Play in Extender" link on the left side of the details page? And where is the error message displayed - log file, web ui, extender ui?

What version of the web server are you using? I tried it on the latest code I have (basically what will be 2.25) and didn't have a problem. Could you save the page and either post it here or PM me and I'll give you my email address and you can email it. This will let me look at the parameters that are being submitted to the web server.
__________________
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
  #2348  
Old 09-15-2009, 10:44 AM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Webserver Future

I was thinking that the webserver was in need of an interface upgrade, so I checked out all the code and dependencies from SF last night and to my dismay, there is no separation of view and model in the servlets.

My plan would be to pull all HTML, etc out of the servlets and have them returning something XML (JSON, REST or SOAP) instead. Using this new back-end, a website could be created that is more independent from the core - meaning that people can modify the HTML without having to recompile Java servlets and it would be easier to have the site work with a mobile browser/device. Additionally, this is basically making a web API to the core API - meaning that more custom applications could use this to interact with Sage and having a unified/intuitive way of doing it.

Not having dealt with these ideas or the API before, I have a few newb questions that maybe some of the hardcore devs out there can answer.

Does something like this already exist for Sage? Again, I haven't really developed anything with the API and haven't taken a very active role among the Sage devs...so something like this may already exist.

Is there a plan by anyone to do this already? I don't want to duplicate efforts of make this competition if someone has already started to do this. Perhaps I can help in someway instead.

Is this a good idea?? I tend to think so, but maybe people are content with how the server is now or it is just a plain terrible idea.

Thanks for reading - and I definitely do not mean this post to be a judgement of anyone's code/project. It is merely my opinion on how the webserver can evolve to be better!
Reply With Quote
  #2349  
Old 09-15-2009, 01:41 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by KJake View Post
I was thinking that the webserver was in need of an interface upgrade, so I checked out all the code and dependencies from SF last night and to my dismay, there is no separation of view and model in the servlets.

My plan would be to pull all HTML, etc out of the servlets and have them returning something XML (JSON, REST or SOAP) instead. Using this new back-end, a website could be created that is more independent from the core - meaning that people can modify the HTML without having to recompile Java servlets and it would be easier to have the site work with a mobile browser/device. Additionally, this is basically making a web API to the core API - meaning that more custom applications could use this to interact with Sage and having a unified/intuitive way of doing it.

Not having dealt with these ideas or the API before, I have a few newb questions that maybe some of the hardcore devs out there can answer.

Does something like this already exist for Sage? Again, I haven't really developed anything with the API and haven't taken a very active role among the Sage devs...so something like this may already exist.
Yes, the remote APIs provide the model in the MVC pattern you discuss. They can return JSON structs, XML, etc. from any Sage API call.

Quote:
Is there a plan by anyone to do this already? I don't want to duplicate efforts of make this competition if someone has already started to do this. Perhaps I can help in someway instead.
Yes, sort of. There have been preliminary discussions about doing this work amongst a few of us in this forum, but nothing has really gotten off the ground. Our timeline has always been to start sometime this fall, but the project is hardly a definite thing at this time. Why? It's a huge undertaking.

Quote:
Is this a good idea?? I tend to think so, but maybe people are content with how the server is now or it is just a plain terrible idea.
Yes. But the goal [we've been discussing] isn't just to apply the MVC pattern to the current web server, but instead to completely update the UI - give it a Web 2.0 overhaul. Just applying the MVC pattern is in and of itself a rather large task, but with no real benefits (other than the one you mention of allowing others easier access to write different views of the models). Just applying MVC is more of an academic exercise, but doing it while refreshing the UI would be the goal, but, as I said above, it's a rather large undertaking.
__________________
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
  #2350  
Old 09-16-2009, 07:21 AM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Glad to know that something is being planned. Let me know if you need help anywhere and I'll see what I can do.

Thanks for pointing me to the sagex package, that saves a lot of work. I was able to throw together a simple TV recordings listing in a few minutes just using jQuery methods in a static page.
Attached Images
File Type: png screenshot.8.png (73.2 KB, 362 views)
Reply With Quote
  #2351  
Old 09-16-2009, 07:58 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
KJake,

A rewrite is definitely not a terrible idea. We've had some discussion about which tools to use and we're looking at using the Google Web Toolkit. This is what Slugger and stuckless are using in their current web projects for BMT, SRE, etc. I haven't used it yet so I've been spending time reading up on it and experimenting with it.

If you're interested in contributing in some way let us know.

BTW, I used the web server code as a starting point for the mobile web interface and went through the exercise of separating the HTML from the logic. That was no small task

Jason

P.S. - One area we're lacking in right now is web/graphics design. If there is anybody out there with those skills, we'd be interested in having your help. The SageTV community will thank you for it
__________________
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
  #2352  
Old 09-16-2009, 08:09 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
FWIW, I posted a little example of using client-side jQuery with JSON requests in the sagex-api thread: http://forums.sagetv.com/forums/show...&postcount=142
Reply With Quote
  #2353  
Old 09-16-2009, 08:16 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Quote:
Originally Posted by jreichen View Post
One area we're lacking in right now is web/graphics design. If there is anybody out there with those skills, we'd be interested in having your help. The SageTV community will thank you for it
Graphics! UI design is a terrible job. I like coding the back-end I'm not too shabby on _basic_ layouts - but they're really not flashy (since I don't like flashy). I'd be happy if you used some of the MythTV web interface as a guide - theirs is at least a bit more compact, less verbose.

I've heard good things about the GWT, especially if you're already a Java dev.

I'll keep my eye out for new developments, feel free to PM me if you need help, I'll see what I can do.
Reply With Quote
  #2354  
Old 09-18-2009, 12:52 AM
Gregavi's Avatar
Gregavi Gregavi is offline
Sage User
 
Join Date: Aug 2009
Location: Santa Barbara, Ca.
Posts: 32
Help...please

I need some help. Here's my setup: HD200 connected to HDTV via HDMI and my network via ethernet and to A/V Receiver via optical. I'm trying to use my HD200 in the following way:
From my laptop, which is also connected to my network, access files (audio, video, photos etc. i.e. play music, watch movies). I have installed the web interface plugin and can open browser to http://localhost:8080/sage/Home, but I can't see where I access my files on my server like I can with the remote on my TV. On the web interface I see "Media Library" but that only has search options. If I search I find artist, but I don't see how to play them on my music system. This was quite easy with my previous SlimServer setup by accessing the local intranet. Is this not capable of doing what I am trying to do? Do I need to do this with a Slim Server plugin? Is there a SlimServer plugin? If so, would I use it the same way that I used squeezebox and SlimServer or Squeezecenter? If that's the case, what about accessing movies and photos? Thanks in advance.

Last edited by Gregavi; 09-18-2009 at 12:54 AM.
Reply With Quote
  #2355  
Old 09-18-2009, 04:45 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
I don't use the Media Library much. There is no way to browse the items in the library like you can in Placeshifter or on an extender. Search is the only way to see items in the library. To play songs, go to the Media Library menu and select Export Playlists. That will allow you to stream the songs to an audio player on your laptop. I think playlist content has to be managed from Placeshifter.
__________________
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
  #2356  
Old 09-18-2009, 05:46 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Arrow V2.25 18 Sep 2009 For SageTV 2.2-6.6

Version 2.25 is now available on SourceForge.

ENHANCEMENTS
  • (slugger, stuckless, jreichen) Run as an application on the Jetty web server plugin (deploy as a .war file)
  • (jreichen) System Messages page and RSS feed (requires SageTV 6.5.17 or later)
The list is rather short this time, but I think they're a couple of good features.

Jetty Support
This release has a new build included that will deploy the web interface so it runs in Jetty. A lot of work went into maintaining compatibility so RSS and XML links from 3rd party apps that use the web interface as a data source will still work. The previous downloads for running nielm's web interface on its own web server (Tiny Java Web Server - TJWS) are still available for the time being, but it's definitely moving in the direction of being deployed in Jetty. Version 2.x will continue to be supported on TJWS, but version 3 will only run on Jetty.

For information about setting up the web interface on Jetty and for support, see this new thread.

Downloads
Beginning with this release, three downloads will be delivered for the web interface.

The first and second choices are Nielm's original webserver that runs on Tiny Java Web Server (TJWS). One in zip format and one with a Windows installer. Neither of these are for Jetty.

The 3rd one is the Jetty version of Nielm's webserver. This is the only one you should download if you want to run it in Jetty.

No matter what you should only download and install ONE of these three.
[Thanks to sleonard for clarifying the downloads.]
__________________
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.


Last edited by jreichen; 12-28-2009 at 12:05 PM.
Reply With Quote
  #2357  
Old 09-18-2009, 08:21 PM
Gregavi's Avatar
Gregavi Gregavi is offline
Sage User
 
Join Date: Aug 2009
Location: Santa Barbara, Ca.
Posts: 32
Quote:
Originally Posted by jreichen View Post
That will allow you to stream the songs to an audio player on your laptop.
I'm not trying to play songs on my laptop. I'm trying to use my laptop to control the HD 200 in order to play songs on my home audio system, that my HD 200 is connected to. Like with slimserver. I was under the impression that this could be done with the HD 200. It is one of the primary reasons I made the purchase.

Is this true? The HD 200 cannot be used this way? That would be shocking. Slim has been doing this for years. A very useful tool. To be able to control all your media from any computer in the network.

Any other comments from Sage TV experts?

Thanks in advance.
Reply With Quote
  #2358  
Old 09-19-2009, 08:57 AM
b-morgan b-morgan is offline
Sage User
 
Join Date: Oct 2007
Posts: 36
Auto-Delete flag modification

I'm sorry if this has been asked before but despite my best efforts, I could not get a search to find anything.

On the Home page under Video Disk Space is a link [Auto-Delete Recordings] which, when clicked brings up a list of recordings in the database with this flag set. On this page is the Action on selected: drop-down list which does NOT contain Set / Clear Auto-Delete flag.

Would it be possible to add these two options to this drop-down? I have some recordings that have this flag set due to an error on my part and I'd like to clear it. Is there another way to clear this flag?

Regards,

Brad
Reply With Quote
  #2359  
Old 09-19-2009, 09:18 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Several criteria are involved in determining whether a recording can be auto-deleted or not so there's no single flag to set that value. To prevent a recording from being auto-deleted do one or more of the following:
  • If it's currently a favorite recording, set the auto delete property on the favorite to No. This affects all recordings for that favorite
  • If it's currently a favorite or intelligent recording, mark the recording as a manual recording
  • Set the archived flag on the recording
__________________
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
  #2360  
Old 09-19-2009, 10:11 AM
b-morgan b-morgan is offline
Sage User
 
Join Date: Oct 2007
Posts: 36
Quote:
Originally Posted by jreichen View Post
  • If it's currently a favorite recording, set the auto delete property on the favorite to No. This affects all recordings for that favorite
  • If it's currently a favorite or intelligent recording, mark the recording as a manual recording
  • Set the archived flag on the recording
The first item is how I got into this mess in the first place. I've set the property to No but that doesn't seem to affect the already recorded programs.

I'm not sure what the archived flag means. Can you give me a quick answer or pointer to RTFM

Speaking of RTFM... Is there a document that describes the colors and icons displayed on the web pages?

BTW, I just installed 2.25 under Jetty. Aside from the username and password changing case (still using the defaults and trusting my firewall), it went pretty smoothly. I have this and SJQ installed under Jetty.

Regards,

Brad
Reply With Quote
Reply

Tags
web


Currently Active Users Viewing This Thread: 2 (0 members and 2 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: Mobile Web Interface 1.2 jreichen SageTV Customizations 281 06-17-2011 02:20 PM
Can't get Web-based User Interface to install SSBrian SageTV Customizations 3 11-04-2008 08:12 PM
Web User interface link for the metadata file. zzmystique SageTV Customizations 0 06-21-2008 02:26 AM
Idea to enhance the Web User Interface: Messaging jbarr SageTV Customizations 3 05-14-2007 03:59 PM
Linkplayer, Linktheater with SageTV Web User Interface fyodor SageTV Customizations 0 10-08-2006 06:03 PM


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


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