View Full Version : Plugin: Web User Interface for SageTV 2.2-6.6 (V2.25 18 Sep 2009)
Pages :
[
1]
2
3
4
5
6
7
8
9
10
11
nielm
11-18-2004, 10:49 AM
Web based User Interface for SageTV 2.2-6.6 (http://forums.sage.tv/forums/downloads.php?do=file&id=26&act=down)
Control Sage remotely from your web-browser!
Screen shots (http://forums.sage.tv/forums/downloads.php?do=file&id=26)
Features:
Tv guide
recordings management
Favorites management
conflict resolution
manual recordings
timed recordings
Advanced Search
MediaFile download
Media Player
playlist Export
http://www.sage-community.org/~nielm/webserver/xml_button.png Xml show information export and import
http://www.sage-community.org/~nielm/webserver/rss_button.png RSS feeds for Recording Schedule, Recording Conflicts, and Intelligent Suggestions
Video conversion management
It's a 900K download and is a java web server embedded into the SageTV process: no IIS or Apache needed!
For full version History, see the Wiki (http://tools.assembla.com/sageplugins/wiki/WebServer#VersionHistory)
nielm
11-18-2004, 11:01 AM
Ack... messed up the zipfile... wait a sec!
Methius
11-18-2004, 11:03 AM
You enjoy that beer!!! :D :clap: :goodjob:
nielm
11-18-2004, 11:13 AM
Ok. Correct zipfile uploaded as at the time of this post!
Sorry 'bout that :)
abasu2003
11-18-2004, 11:21 AM
web server...did anybody guess that on the other thread?
you are a star, nielm
Little help understanding?
Say I'm out all day and just remember that theres something on the History Channel that I wanted to watch later that evening but I would be home til much later that night I could fire up any browser and point it to my Sage Webserver's address and schedule it to be recorded?
Just trying to understand how I could use it, I don't check in the forums here much so I'm not too up-to-date on requested features. :)
Ryokurin
11-18-2004, 11:47 AM
again, you blew my socks off. Got something to do this weekend again!
eruji
11-18-2004, 11:49 AM
tried to install it, i get this after i enter user and pass
Exception while processing servlet:
java.lang.NoClassDefFoundError: net/sf/sageplugins/sageutils/Translate
java.lang.NoClassDefFoundError: net/sf/sageplugins/sageutils/Translate
at net.sf.sageplugins.webserver.SageServlet.printMenu(SageServlet.java:188)
at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:189)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at Acme.Serve.ServeConnection.runServlet(Serve.java:1528)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1503)
at Acme.Serve.ServeConnection.run(Serve.java:1392)
at java.lang.Thread.run(Unknown Source)
i must be doing something wrong
mikejaner
11-18-2004, 11:56 AM
Awsome!! I can't wait to try it
nielm
11-18-2004, 11:59 AM
Say I'm out all day and just remember that theres something on the History Channel that I wanted to watch later that evening but I would be home til much later that night I could fire up any browser and point it to my Sage Webserver's address and schedule it to be recorded? yes
nielm all I get this
Exception while processing servlet:
java.lang.NoClassDefFoundError: net/sf/sageplugins/sageutils/Translate
java.lang.NoClassDefFoundError: net/sf/sageplugins/sageutils/Translate
at net.sf.sageplugins.webserver.SageServlet.printMenu(SageServlet.java:188)
at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:189)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at Acme.Serve.ServeConnection.runServlet(Serve.java:1528)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1503)
at Acme.Serve.ServeConnection.run(Serve.java:1392)
at java.lang.Thread.run(Unknown Source)
salsbst
11-18-2004, 12:08 PM
Congrats, Niel!
From the docs, it does not appear that one can control the IP address on which the server will listen -- and thus I'm guessing it's binding to 0.0.0.0. Do you think you could add ability to specify an IP address for a future release?
Cayars
11-18-2004, 12:10 PM
So was this a "Highly Requested" feature or what? :)
Nielm comes up with some pretty cool stuff!
nielm
11-18-2004, 12:14 PM
Exception while processing servlet:
java.lang.NoClassDefFoundError: net/sf/sageplugins/sageutils/Translate
Oops mkII -- fixed! new zipfile uploaded...
nielm
11-18-2004, 12:15 PM
From the docs, it does not appear that one can control the IP address on which the server will listen -- and thus I'm guessing it's binding to 0.0.0.0. Do you think you could add ability to specify an IP address for a future release?
already there:
Sage.properties: nielm/webserver/bind_address
(untested)
abasu2003
11-18-2004, 12:16 PM
Nielm,
I have everything working pretty well but am on to the customizations.
I am having a little bit of trouble understanding how to link the local files to file links in the Detailed Information.
I want to link it to a local directory on the server, so in the paths.properties file, I have an entry:
D:\tv\=file://localhost/D:/tv
if i click on it, it says I cant' link directly to the URL and i have to copy and paste it. Thats fine. So if i copy and paste it, it directs me to file://localhost/D:/tv, but the local host is the computer accessing the esrver applet, not the actual localhost. what am I doing wrong?
justme
11-18-2004, 12:17 PM
Big thanks, for this one. :clap: Both for me persoanlly and for the community as a whole. I think you may have just given me a reason to pull my old Dell Axim PPC out of the dresser draw this weekend. The poor thing has been setting there for monthes. It would be so cool to have it acting essentialy like a super-powered(EPG,recording schedule,etc) SageTV remote. :thumb:
/justme
salsbst
11-18-2004, 12:20 PM
already there:
Sage.properties: nielm/webserver/bind_address
(untested)Sweet! I'll stop asking for features now until after I've had a chance to try it. I should have known that there were more options than those which appeared in the docs -- being that I'm the king of underdocumentation!
Hey, I thought you were going to be drinking beer!
abasu2003
11-18-2004, 12:23 PM
Like I said, everythign was working fine for me
except, when I went to Upcoming Recordings, I got:
Exception while processing servlet:
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sage.SageTV.api(Unknown Source)
at net.sf.sageplugins.webserver.SageApi.Api(SageApi.java:16)
at net.sf.sageplugins.webserver.RecordingScheduleServlet.doServletGet(RecordingScheduleServlet.java:103)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at Acme.Serve.ServeConnection.runServlet(Serve.java:1528)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1503)
at Acme.Serve.ServeConnection.run(Serve.java:1392)
at java.lang.Thread.run(Unknown Source)
Caused by: sage.a.e: Error in method reflection of FilterByBoolMethod of java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at sage.r.a(Unknown Source)
at sage.ae.if(Unknown Source)
... 10 more
I think this is the only screen where this happens
nielm
11-18-2004, 12:26 PM
D:\tv\=file://localhost/D:/tv
if i click on it, it says I cant' link directly to the URL and i have to copy and paste it. Thats fine. So if i copy and paste it, it directs me to file://localhost/D:/tv, but the local host is the computer accessing the esrver applet, not the actual localhost. what am I doing wrong?
file://localhost/d:/tv is for when D: is a mapped drive on the web client system...
You need to either map a drive, or use file://server/share/ UNC-style path translations instead
abasu2003
11-18-2004, 12:27 PM
From the docs, it does not appear that one can control the IP address on which the server will listen -- and thus I'm guessing it's binding to 0.0.0.0. Do you think you could add ability to specify an IP address for a future release?
what do you mean by this, salsbt?
abasu2003
11-18-2004, 12:36 PM
ok, last question (for a while at least :) )
How do I customize the upcoming movies, and primetime properties.
For example, its not showing anythign for upcoming movies, and primtime starts at 4:00 p.m. (should be 8p.m. for me)
nielm
11-18-2004, 12:37 PM
except, when I went to Upcoming Recordings, I got:
Exception while processing servlet:
java.lang.reflect.InvocationTargetException
Whats the value of recording_schedule_filter in sage.properties
Try setting it to blank, delete all cookies and don't use the 'All' option in any of the filters until I do an update :)
phantomfsoc
11-18-2004, 12:47 PM
Nielm,
Just wanted to say, you've managed to make Sage 100% better. Screw BeyondTV...... They can keep it!
Stuntman
11-18-2004, 12:51 PM
I am seeing the same error as ABASU2003 when trying to view upcoming recordings..
Also, is there an easy way to fix the spelling of upcoming to remove the second 'm' in the program guide gui?
Thanks!!!
abasu2003
11-18-2004, 12:53 PM
Whats the value of recording_schedule_filter in sage.properties
Try setting it to blank, delete all cookies and don't use the 'All' option in any of the filters until I do an update
I did have my recording_schedule_filter=favorites but I deleted that. also deleted another filter_pretty=All to blank. Deleted the cookies and the cache, and I still got the same error
nielm
11-18-2004, 12:57 PM
I am seeing the same error as ABASU2003 when trying to view upcoming recordings..see above mailAlso, is there an easy way to fix the spelling of upcoming to remove the second 'm' in the program guide gui?in the menu bar it's just a matter of editing menu.properties
How do I customize the upcoming movies, and primetime properties.its in the docs - edit menu.properties
nielm
11-18-2004, 01:01 PM
I did have my recording_schedule_filter=favorites but I deleted that. also deleted another filter_pretty=All to blank. Deleted the cookies and the cache, and I still got the same error"favorites" is not a valid value, hence the problem...
did you shutdown, edit then restart?
If you are not running the service, there is an easier way... go to SageTV upcoming recordings, right click and set filter to all - the web interface will then get the good value.
I will make this more robust in the next version
jptaz
11-18-2004, 01:04 PM
Thanks for the great Birthday gift nielm :)
I can't wait to play with it.
John
salsbst
11-18-2004, 01:04 PM
what do you mean by this, salsbt?IP-based networked computers can have multiple IP addresses. Servers frequently do. I already (reluctantly) run a regular web server on the same box as SageTV server. Thus, if I want to use Niel's SageTV web server, I need to be able to tell it that it should only listen on (aka bind to) a specific IP address, rather than all IP addresses assigned to the machine. 0.0.0.0 is shorthand for "all IP addresses".
ToxMox
11-18-2004, 01:07 PM
Thanks for the great Birthday gift nielm :)
I can't wait to play with it.
JohnHappy Birthday! :clap::goodjob:
Cayars
11-18-2004, 01:17 PM
I haven't read the formal directions for this, so I don't know if it's mentioned or not but you can run this on a Client computer also. So if you already have the client installed on a computer and this computer already has a puched out IP address on your router it might be easier to run it from here.
Just thought I'd throw that out there in case it helps anyone.
abasu2003
11-18-2004, 01:18 PM
-ah, I didn't know if you meant recording_schedule_filter in Sage.properties or SageClient.Properties. Regardless, I deleted both filters (Sage.properties was basically "AsSageTV" with lots of asterisks) and now it works.
-Anyone else having problems with the movies, the problem is that in the menu.properties file, the "upcoming movies" search tag doesn't have "menu" capitalized (it should be) and also has the Category "films" which isn't a category .
-Also, when making changes, it should be noted that you should delete your cache before doing a refresh.
nielm
11-18-2004, 02:00 PM
-ah, I didn't know if you meant recording_schedule_filter in Sage.properties or SageClient.Properties. Regardless, I deleted both filters (Sage.properties was basically "AsSageTV" with lots of asterisks) and now it works.Ok, that explains why it occurred... It will be fixed in 1.1-Anyone else having problems with the movies, the problem is that in the menu.properties file, the "upcoming movies" search tag doesn't have "menu" capitalized (it should be) and also has the Category "films" which isn't a category .um... what Menu? (and film is a valid category for non US people...) Can you post the line that works for you pls.
-Also, when making changes, it should be noted that you should delete your cache before doing a refresh.none of the dynamic pages should be being cached (the graphics and css files are though).
yes
Thank you. :clap: Very awesome work.
Opus4
11-18-2004, 02:08 PM
for non US peopleEgads! :eek: Is this really intended for THEM instead of US? :eek2:
Anyway... I'm looking forward to finding time to set this up before my next trip... :goodjob:
- Andy
eruji
11-18-2004, 02:29 PM
i can confirm that clearing the:
recording_schedule_filter in Sage.properties
fixed my java errors.
when i click on Sage Recordings i get:
Exception while processing servlet:
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sage.SageTV.api(Unknown Source)
at net.sf.sageplugins.webserver.SageApi.Api(SageApi.java:16)
at net.sf.sageplugins.webserver.RecordingsServlet.doServletGet(RecordingsServlet.java:153)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at Acme.Serve.ServeConnection.runServlet(Serve.java:1528)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1503)
at Acme.Serve.ServeConnection.run(Serve.java:1392)
at java.lang.Thread.run(Unknown Source)
Caused by: sage.a.e: Error in method reflection of Sort of java.lang.IllegalArgumentException: Return type for Sort method is not a Comparable
at sage.r.a(Unknown Source)
at sage.ae.if(Unknown Source)
... 10 more
is there another property i have to clear to get this to work?
also wanted to say that this is a great addition to sage!
gotuitdan
11-18-2004, 02:30 PM
Hi Nielm,
I'm having a problem getting a connection with this even over IE on the same computer. Is it possible that something is hard-coded to "C:" being the master drive? My OS is on "F". Otherwise, are there any firewall issues with XP SP2? I opened TCP port 8080, but no luck.
Edit: I checked, and I have no log, but the properties file appears correct (no spaces, cut/paste from instructions). Also, just in case, IIS was disabled.
Also, I'm *not* running in service mode, and the directory rights *seem* ok. Do I need to share the folder or just accept that "Windows Firewall is configured to share...."
Thoughts?
thanks...
nielm
11-18-2004, 02:36 PM
i can confirm that clearing the: recording_schedule_filter in Sage.properties fixed my java errors.
when i click on Sage Recordings i get:
[...]
Caused by: sage.a.e: Error in method reflection of Sort of java.lang.IllegalArgumentException: Return type for Sort method is not a Comparable
is there another property i have to clear to get this to work?
Try sagetv_recordings_sort and sagetv_recordings_filter
nielm
11-18-2004, 02:39 PM
I'm having a problem getting a connection with this even over IE on the same computer. Is it possible that something is hard-coded to "C:" being the master drive? My OS is on "F". Otherwise, are there any firewall issues with XP SP2? I opened TCP port 8080, but no luck.There are no hard-coded paths...
There may well be firewall issues, but this should not affect connections from the same machine -- check the firewall exceptions (see the docs for more info)...
But there is probably something stopping the server from starting: check the log file in webserver/log, and check that the load_on_startup_runnable_classes is correct and has no spaces in it
gotuitdan
11-18-2004, 02:42 PM
I checked... No log file exists... Details are above in the edits on my original post...
thanks, Nielm... This is exactly the feature I was hoping for... now to get it working... :-)
eruji
11-18-2004, 02:56 PM
Try sagetv_recordings_sort and sagetv_recordings_filter
cleared sagetv_recordings_sort
but dont have a sagetv_recordings_filter
restarted service and still same error.
added sagetv_recordings_filter to my ini - still no luck
zoundz
11-18-2004, 02:57 PM
Echoing many others
Absolutely way cool, Nielm.
Any possibility of recognizing the lynx browser and simplifying things? It works OK with lynx, but it's a bit tricky to deal with the format. Just a question. This is definitely what was needed to address the remote access thing. Thanks
abasu2003
11-18-2004, 02:59 PM
-Anyone else having problems with the movies, the problem is that in the menu.properties file, the "upcoming movies" search tag doesn't have "menu" capitalized (it should be) and also has the Category "films" which isn't a category .
Whoops. what I meant to say was, "movie" wasn't capitalized and it should be.
This is what i have it set to:
Upcoming Movies=Search?TimeRange=336&Categories=Movie&SearchString=
EDIT: The time range makes it so that it displays movies for the next 2 weeks (time range is in hours)
P.S. I thought the film category might be an outside of U.S. thing (why else would you just make up a category name :) ) but i just got to thinking, how many people in the world really live outside of the U.S.? Can't be that many...certainly not enough to matter :p
abasu2003
11-18-2004, 03:15 PM
another error. I tried to delete a file and I got:
Exception while processing servlet:
java.lang.NullPointerException
java.lang.NullPointerException
at net.sf.sageplugins.webserver.AiringCommandServlet.doServletGet(AiringCommandServlet.java:130)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at Acme.Serve.ServeConnection.runServlet(Serve.java:1528)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1503)
at Acme.Serve.ServeConnection.run(Serve.java:1392)
at java.lang.Thread.run(Unknown Source)
Endymion
11-18-2004, 03:37 PM
web server...did anybody guess that on the other thread?
you are a star, nielm
I soooooo got that one... Do I get a prize? :D Now if only 2.1 would work for me....
abasu2003
11-18-2004, 04:10 PM
I just realized that Cayars had this post after yours:
Well if I were to say it's not a web scheduler, then what would your next guess be?
whats up with that? thats not nice...
Cayars
11-18-2004, 05:48 PM
Notice my choice of "wording"! I never said it wasn't (it's a whole lot more then that however) any web stuff. I only asked a question "if I were to say" :)
I of course knew what it was but it was totally not cool of me to have started that in the first place and "rob" Nielm of his grand launch "thunder".
nielm
11-18-2004, 06:09 PM
V 1.1 has been uploaded
Bugfixes: Better handling of invalid values in sort/filter/group options
Delete file when running in SageTVService now works
Default upcoming movies search should now work!
Take care when updating not to overwrite any modified properties files (realms.properties/menu.properties)
I have also updated the Troubleshooting guide (http://www.sage-community.org/index.cgi/wiki/WebserverTroubleShooting) which has more hints for those of you having start-up problems.
nielm
11-18-2004, 06:19 PM
Any possibility of recognizing the lynx browser and simplifying things? I was targetting modern graphical browsers with CSS2 support, and testing with Mozilla, IE and Opera. It was difficult enough getting these 3 to work :)
I am actually amazed how well it does work in lynx considering all the layout is in css, and most of the dynamic stuff in Javascript, neither of which Lynx does...
So, in summary, probably not...
AJ Bertelson
11-18-2004, 07:03 PM
This is by this coolest thing I have done with sagetv in a long while. It was incredibly easy to setup and get running. Nice job Nielm
So when is frey going to include this in there package?
Ryokurin
11-18-2004, 07:15 PM
this is something stupid, but how do you get it so that you can make changes outside of that computer? I typed in the ip with port 8080 and got a reponse from it, but it was 'Theres nothing to see here, move along!' I understand why and so forth but is there a way around it?
abasu2003
11-18-2004, 07:15 PM
nielm,
I can't get my channel logos to display correctly. I tried reading them from the server computer so it looked for them locally, but still no luck. I created the "channellogos" directory in teh "webserver\webroot\" directory and I only put my jpg files in there. I looked at the source code for the Upcomings recordings page and see that its looking for "channellogos\WBAL.jpg" and I definitely have that jpg in that directory. But I only get "WBAL logo" as the text, which i see is the alt listing. any ideas?
EDIT: I can even see the jpg file if I directly access it with <ipaddress>/channellogos/WBAL.jpg
Cayars
11-18-2004, 07:17 PM
Did you read the instructions? RTFM. :) It's not just http://computer:8080
abasu2003
11-18-2004, 07:17 PM
ryokurin,
you want the web address to be <ip address>/sage/Home
what you are pointed to is the index page, which is what nielm made. I am going to redirect this to the sage/Home directory, unless there is a reason you did this nielm
Ryokurin
11-18-2004, 07:19 PM
doh! leave it for me to stop reading at the sentence that had the correct path. my fault.
AndyS
11-18-2004, 11:12 PM
What can I say? I'm blown away. With this and the MediaMVP Client I think we now have an unbeatable PVR solution. I can't think of anything more that I need now - this was the last missing piece.
Congratulations Nielm - you have my gratitude.
Andy.
bstowers
11-18-2004, 11:48 PM
you want the web address to be <ip address>/sage/Home
what you are pointed to is the index page, which is what nielm made. I am going to redirect this to the sage/Home directory, unless there is a reason you did this nielm
I think it's that way because of security concerns. I saw this in the documentation:
there is a dummy document in the web root, so requests for http://hostname:8080/ will return a blank page, not a directory listing allowing further exploration of the site.
If you aren't exposing the server to the outside world, it's probably no big deal. Otherwise...I dunno. :)
nielm
11-19-2004, 12:53 AM
I am going to redirect this to the sage/Home directory, unless there is a reason you did this nielmRTFM: (http://www.sage-community.org/index.cgi/wiki/WebserverSecurity) It's an added security feature -- someone browsing to your IP cannot see what pages are available and that there is a password to crack: you first need to know that there is a sage subdirectory...
nielm
11-19-2004, 12:59 AM
I created the "channellogos" directory in teh "webserver\webroot\" directory and I only put my jpg files in there. It should be webserver\webroot\sage\channellogos (instructions updated, sorry!)
gotuitdan
11-19-2004, 08:30 AM
Hi Nielm,
So I'm still not getting this running for some reason. Netstat has no entries at 8080 at all. I enabled the debug console and see the following:
Fri 11/19 10:20:32.332 GetProperty - nielm/webserver/log_access=true ->true
Fri 11/19 10:20:32.332 GetProperty - nielm/webserver/log_user_agent=true ->true
Fri 11/19 10:20:32.333 GetProperty - nielm/webserver/log_referrer=true ->true
Fri 11/19 10:20:32.333 GetProperty - nielm/webserver/use_ssl=false ->false
Fri 11/19 10:20:32.333 Starting webserver with args: [-p, 8080, -root, webserver, -t, throttles.properties, -s, servlets.properties, -r, realms.properties, -a, aliases.properties, -lar, -nohup]
Fri 11/19 10:20:32.340 at java.lang.ClassLoader.defineClass0(Native Method)
Fri 11/19 10:20:32.342 at java.lang.ClassLoader.defineClass(Unknown Source)
Fri 11/19 10:20:32.601 at java.security.SecureClassLoader.defineClass(Unknown Source)
Fri 11/19 10:20:32.603 at java.net.URLClassLoader.defineClass(Unknown Source)
Fri 11/19 10:20:32.604 at java.net.URLClassLoader.access$100(Unknown Source)
Fri 11/19 10:20:32.605 at java.net.URLClassLoader$1.run(Unknown Source)
Fri 11/19 10:20:32.605 at java.security.AccessController.doPrivileged(Native Method)
Fri 11/19 10:20:32.607 at java.net.URLClassLoader.findClass(Unknown Source)
Fri 11/19 10:20:32.608 at java.lang.ClassLoader.loadClass(Unknown Source)
Fri 11/19 10:20:32.609 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
Fri 11/19 10:20:32.732 at java.lang.ClassLoader.loadClass(Unknown Source)
Fri 11/19 10:20:32.733 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Fri 11/19 10:20:32.735 at net.sf.sageplugins.webserver.StartServer.run(StartServer.java:104)
Fri 11/19 10:20:32.736 at java.lang.Thread.run(Unknown Source)
thoughts? thanks so much!
mikejaner
11-19-2004, 09:13 AM
Dewd,
I finally got a chance to install this web server and all I have to say is, you ROCK. Very nice, and great layout. I have no requests for bug fixes or added features, cause you got it right on the first try. Thank you for your effort and unexpected release of this.
I owe you a case of beers for this and your STV
Any chance to use this with 2.0.20 (since 2.1 does not work for me) ?
nielm
11-19-2004, 09:54 AM
Any chance to use this with 2.0.20 (since 2.1 does not work for me) ?
No. hence the title
nielm
11-19-2004, 09:59 AM
Starting webserver with args: [-p, 8080, -root, webserver, -t, throttles.properties, -s, servlets.properties, -r, realms.properties, -a, aliases.properties, -lar, -nohup]that shows my code is working, but it is unable to start the webserver code.. check that servlets.jar is in ProgFiles/java/r2rexxx/lib.ext
Also try starting the server outside of sage: in the sagettv dir, do:
java -cp . Acme.Serve.Serve (may give a clearer error msg)
AndyS
11-19-2004, 10:02 AM
Neilm - is there a downside to running the server outside of Sage? I like the idea of a separate process, just in case there's a problem with the webserver it wouldn't then crash Sage.
Andy.
abasu2003
11-19-2004, 11:04 AM
if anybody has the SSL encryption working, can you show me what your "nielm/webserver/ssl_args" property looks like. I'm a little confused as to the format looking at the wiki and after trying a few different arguments and syntaxes i still can't get it running
buck1952
11-19-2004, 11:28 AM
gotuitdan
servlets.jar java library (http://www.sage-community.org/~nielm/webserver/servlet.jar) is downloaded as servlets.zip, did you rename it to servlets.jar and copy it [not unpack it] to your Java\j2rex.x.x\lib\ext folder?
AndyS
11-19-2004, 11:28 AM
Question - is the webserver capable of handling SSL and non-SSL at the same time? It would be great to have non-SSL available for use around the house, but SSL via the internet.
Andy.
abasu2003
11-19-2004, 11:38 AM
from what i can tell, andys, it looks liek both are available at the same time. i just can't get ssl working.
EDIT: nope, totally wrong. also the reason why i couldnt' get it working :D
gotuitdan
11-19-2004, 11:40 AM
Thanks all! I figured it out from nielm's response, and buck1952 was right... I had unpacked what downloaded as "servelets.jar.zip" into the directory. Changing the name to "servelets.jar" and copying it in worked beautifully.
thanks much... This is *excellent*!
Hector
11-20-2004, 01:40 AM
Thanks for riding point on this, I made the exact same mistake :)
I agree, this IS excellent. Once again thanks for sharing your work Nielm.
peace . . .
Thanks all! I figured it out from nielm's response, and buck1952 was right... I had unpacked what downloaded as "servelets.jar.zip" into the directory. Changing the name to "servelets.jar" and copying it in worked beautifully.
thanks much... This is *excellent*!
Crashless
11-20-2004, 03:36 AM
All I can say is WOW. I was sitting at work, trying to find the time to set this up because I thought to myself: "that is going to be tough to do." But I just set everything up in like 10 minutes. Only thing I haven't done is SSL, and that's next.
Wow. It even looks great on my treo 600 browser. Excellent work!
Enormous
11-20-2004, 10:32 AM
abasu: The nielm/webserver/ssl_args line in my sage.properties looks like this:
'nielm/webserver/ssl_args=-keystorePass 123456'
This is assuming that I generated my key using all of the defaults as outlined here:
'keytool -genkey -keypass 123456 -storepass 123456'
I too was confused at first, until I realized that I didn't need to include any of the properties that weren't default. Hope this helps.
abasu2003
11-20-2004, 11:50 AM
enormous,
I tried that argument and it didn't work.
Just to make sure I'm doing everything else right, I typed in the keytool command line that you have and pushed enter through all of the questions about my personal information. then in the Sage.Properties file, I added the ssl_args line, also changed use_ssl=true. Am I missing anything else? I'm just trying to get it to work locally at this point
EDIT: I should also mention that the error I'm getting is "Connection is being refused"
gotuitdan
11-20-2004, 12:13 PM
I'm getting the same error that abasu2003 is getting. I've tried different ports, different keys, different sets of parameters, and the exact default from nielm. Even on the local computer running the Web server, I get the "connection is being refused" error. I'm experimenting with things, but no luck yet.
fidget
11-20-2004, 12:21 PM
enormous,
I tried that argument and it didn't work.
Just to make sure I'm doing everything else right, I typed in the keytool command line that you have and pushed enter through all of the questions about my personal information. then in the Sage.Properties file, I added the ssl_args line, also changed use_ssl=true. Am I missing anything else? I'm just trying to get it to work locally at this point
EDIT: I should also mention that the error I'm getting is "Connection is being refused"
IIRC, "Connection is being refused" means that there is no server configured at the destination port. Using 'netstat -a' from a command prompt will dump the local port usage and you should be able to see if something is listening at the desired port.
abasu2003
11-20-2004, 12:32 PM
So, I went into the logs, and I found that it couldn't find my key. For some reason it was looking for it in a system32 directory. So as one of my arguments, I specified the file (with the right "ajsdf~1" format) and now I have this error in the logs.
Reading request: Unrecognized SSL message, plaintext connection?
The above error actually shows up in the log when I try to access teh unencrypted server. When I access teh encrypted one, I still get the connection refused. I looked at nestat and its not opening the 8443 port for use.
EDIT: When I try to specify -port 8443, none of the ports open up. Is there another port I can use for the SSL? Cna you just randomly pick a number?
gotuitdan
11-20-2004, 12:54 PM
I've tried 8443 and I've tried setting the port to 8080 (which works without SSL)... No luck yet.
thatdude90210
11-20-2004, 04:08 PM
This is very cool. I did run into that .jar as .zip file thing for a moment though. Works great after realizing that, tested it out by using a dialup modem to get out of my network and was able to schedule a recording from that.
krutaw
11-20-2004, 05:32 PM
V 1.1 has been uploaded
Bugfixes: Better handling of invalid values in sort/filter/group options
Delete file when running in SageTVService now works
Default upcoming movies search should now work!
Take care when updating not to overwrite any modified properties files (realms.properties/menu.properties)
I have also updated the Troubleshooting guide (http://www.sage-community.org/index.cgi/wiki/WebserverTroubleShooting) which has more hints for those of you having start-up problems.
Neilm~
You rock dude. This was the final piece of the puzzle for me as far as functionality. :) I was able to get it up and running without any major effort.
Thanks again! :)
zoundz
11-20-2004, 06:04 PM
Independent of Nielm's ssl implementation, for those of you who have a linux system on your network backchannel, there is another totally secure way to implement this.
Any linux system that is running sshd and that you can access through port 22 can be used for this purpose. You need to be able to connect to the linux box from the outside world using an ssh connection. This can be configured easily to be virtually totally secure and unhackable. The only other thing that you need on the linux side is to run a local proxy. I use Tinyproxy listening on port 8888. You can use whatever you want. The proxy port doesn't need to and emphatically shouldn't be open to the outside world. It is just a backchannel proxy.
On your remote Windows system, you need a program called Putty (google it) and it's associated utilities. Using Putty you can create an RSA public/private key pair for access to the sshd system. If you configure sshd to only accept key pair logins, it's un-crackable. Once you can log onto the linux box from the outside world using Putty, you are home free. Putty can be configured to open a tunnel from any port on your local machine to any ip port pair on the other side of sshd on the linux box. You configure Putty to tunnel from some port (say 8080) to localhost:8888 where Tinyproxy is listening on the linux box. (I don't run the proxy until I connect to the server and then I kill it when I'm done, but that's just my paranoia) If you now configure your browser to use localhost:8080 as a proxy, you can connect straight to your SageTV web host. You log on the ssh connection, set up the proxy on the linux side, set your browser to use the local proxy port and that's it
http://<SageTV machine IP address>:8080/sage/home
Bingo.
In case it's not obvious, this method will allow you to securely access your backchannel in many ways. Any servers that you are running can be accessed directly through the Putty tunnel without opening their ports to the outside world. (eg POP3, SMTP)
Enjoy
danward79
11-21-2004, 12:38 AM
Hi Neil,
Thanks for your hardwork. I tried it on my main pc, it was easy to install. I am now going to try and integrate it into Netremote.
Dan
GREAT
thats what im missing
i love it. nielm, when you come to germany...cive me a call... :nod:
:clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap:
installed it - worked out of the box.
:dance:
Thanks again for your effort nielm. No other community has such a lot of experts sharing their work with the community.
You guys make SageTV even more succeeding.
:goodjob:
nielm
11-21-2004, 10:49 AM
Question - is the webserver capable of handling SSL and non-SSL at the same time? It would be great to have non-SSL available for use around the house, but SSL via the internet.no, Each server process can only handle one socket type.
nielm
11-21-2004, 10:50 AM
Neilm - is there a downside to running the server outside of Sage? I like the idea of a separate process, just in case there's a problem with the webserver it wouldn't then crash Sage.No, it needs to run inside the sage process to access Sage's data.
JasonJoel
11-21-2004, 11:12 AM
May be klnown issue, but...
When I look at the Sage recordings in the web server, it doesn't seem to group the movies together in a folder.
On Sage when I look at my recordings list it shows MOVIES (21) as a folder.
In the web server it lists each movie as a recording (i.e. at the root level, not in a folder).
Jason
JasonJoel
11-21-2004, 12:29 PM
Anyone using the webserver in SSL able to get it working with Firefox?
I have SSL setup (although the server is still on 8080, never went to 8443 for some reason... Any thoughts there?).
Works fine from IE6.
When I try to visit the web site from Firefox it asks if I want to accept the certificate, I say YES.
It then warns about the name being from "unknown", I click OK.
Then it says it can't connect because the certificate is invalid or corrupt: error -8182.
Any thoughts? I can just use IE6 to get there for now, but would be better if it worked in Firefox as that is my main browser.
Jason Bottjen
Enormous
11-21-2004, 12:40 PM
Jason,
I get the same error when I try to access the webservice from the same machine that is hosting it. But if I go to another computer on my home LAN, and connect, it works fine. It also works fine in IE regardless of which machine I am on. So I guess it's a Firefox specific problem, maybe with the way that it handles the certs. Hope that sheds some light on it.
JasonJoel
11-21-2004, 01:35 PM
Weird, I AM trying it from a different computer than the Sage server. I don't have Firefox installed on the server.
I think it is something with how Firefox is handling certificates. I'm going to try and delete all certificates and see what happens.. I'll post back what I find. (EDIT: Nope that wasn't it. But see the next post for what DID work for me.)
In any case, it isn't THAT big of a deal. I'm sure it will get sorted out sooner or later.
Jason Bottjen
Jason,
I get the same error when I try to access the webservice from the same machine that is hosting it. But if I go to another computer on my home LAN, and connect, it works fine. It also works fine in IE regardless of which machine I am on. So I guess it's a Firefox specific problem, maybe with the way that it handles the certs. Hope that sheds some light on it.
JasonJoel
11-21-2004, 01:54 PM
Ok. Interesting.
In order to get the SSL web server working correctly under FIREFOX I had to insure that "TLS 1.0" (transport layer security) is enabled under TOOLS -> OPTIONS -> ADVANCED.
At least for me, if you don't you get the error -8182 when trying to connect.
Hope that helps someone to get it to work! If that makes it work for you, post back so we can confirm this solves the issue.
Jason Bottjen
turak
11-21-2004, 01:54 PM
Great job. You should add the "rename servlet.zip to servlets.jar" to the troubleshooting guide. It seems alot of people (including myself) miss that one. This is definately worth the couple of hours I spent trying to get the server started before realizing I wasn't supposed to unpack the servlet.zip.
abasu2003
11-21-2004, 02:12 PM
when you guys use SSL, if you check netstat, does it open up both 8080 and 8443?
JasonJoel
11-21-2004, 02:23 PM
Mine only opens 8080.
I'm not sure why, but on my machine it doesn't seem to use 8443 at all. I can't even connect if I try to use that port.
On my machine this works:
HTTPS://machine:8080/sage/Home
This does NOT work:
HTTPS://machine:8443/sage/Home
My SSL setting in the Sage.Properties are all default (I used all defaults when setting it up), except use SSL is set to TRUE (naturally).
Jason Bottjen
when you guys use SSL, if you check netstat, does it open up both 8080 and 8443?
abasu2003
11-21-2004, 02:40 PM
OK, so I figured out whats going on.
There is a Sage.properties entry called "nielm/webserver/port=" that is set, by default, to 8080.
While its totally intuitive to know to change this, i guess my inexperience with webservers really showed through. but at least it looks like a few ppl made the same mistake as me so i don't feel so bad :)
RedCoat999
11-21-2004, 03:25 PM
Great job. You should add the "rename servlet.zip to servlets.jar" to the troubleshooting guide. It seems alot of people (including myself) miss that one. This is definately worth the couple of hours I spent trying to get the server started before realizing I wasn't supposed to unpack the servlet.zip.
Are you serious??? ^%$^%$^%$#@#@$ No wonder nothing is happening!
Enormous
11-21-2004, 05:37 PM
In order to get the SSL web server working correctly under FIREFOX I had to insure that "TLS 1.0" (transport layer security) is enabled under TOOLS -> OPTIONS -> ADVANCED.
Jason: Good find. I did this on my server machine, and that cleared up the problem.
nielm
11-22-2004, 12:35 AM
The servlets.zip problem is an IE problem! The file hosted on the webserver is servlets.jar
Opera downloads it as servlets.jar
Firefox downloads it as servlets.jar
IE downloads it as servlets.zip (stupid IE!)
I have added a note in the installation instructions to rename it...
You guys who have figured out running it as an SSL server, it would be great if you could update the wiki instructions :)
ChrisAllenFiz
11-22-2004, 01:41 AM
Thanks NeilM, nice to have a mod that doesn`t
a) require loads of tweaking to get working
b) doesn't slow down my 900Mhz sage box to an unusable level
Keep up the good work
Chris
nielm
11-22-2004, 02:15 AM
I am quite surprised that after a whole weekend you have not found any bugs yet -- I am sure I left a few in there for you to find :)
Chris: beat you: My Sage server is a PIII 600mhz equivalent :) (Via EPIA M10000)
abasu2003
11-22-2004, 02:16 AM
now that i have everything working, i can fully sign off on this as the best plug-in ever (my apologies to comskip). Its really phenomenal how simple but so effective this plug-in was.
nielm
11-22-2004, 03:16 AM
Stylesheet media types (http://www.w3.org/TR/REC-CSS2/media.html): Which one is selected depends on the browser and what it thinks it is displaying on!
I have only tested screen and print because I don't have a browser that supports handheld (and according to codestyle.org (http://www.codestyle.org/css/media/tv-BrowserSummary.shtml), none do!).
As an example: do print preview (in browsers that support it), and you can see that the 'print' stylesheet is used (colors switch to black on white, menu bar is hidden, options buttons are hidden, all groups are expanded in sage recordings and search etc)
ChrisAllenFiz
11-22-2004, 04:43 AM
I am quite surprised that after a whole weekend you have not found any bugs yet -- I am sure I left a few in there for you to find :)
Chris: beat you: My Sage server is a PIII 600mhz equivalent :) (Via EPIA M10000)
Ah well, mine is actually a c3 900Mhz running in a microAtx board, so I win! Having a few memory issues. I was wondering if the webserver used much memory? My box with only sage and ultravnc running is struggling to stay under 256Mb real memory used.
Chris
nielm
11-22-2004, 05:38 AM
Chris: damn!
Webserver should not use much extra memory when idle (maybe a couple of extra Kb, but I have never actually measured it). Each time it serves a page it will allocate a bunch of memory (depending on the page and what info it needs to get), but this will be garbage-collected later by java...
On my system now, SageTVService (with webserver) is using 45Mb, and SageTV (no webserver, sleeping) 111Mb (according to task manager)
After serving a few pages (big searches and a couple of EPG list showing 24hrs and all 55 channels), its still at 45Mb (which surprises me!)
ChrisAllenFiz
11-22-2004, 06:05 AM
Chris: damn!
Webserver should not use much extra memory when idle (maybe a couple of extra Kb, but I have never actually measured it). Each time it serves a page it will allocate a bunch of memory (depending on the page and what info it needs to get), but this will be garbage-collected later by java...
On my system now, SageTVService (with webserver) is using 45Mb, and SageTV (no webserver, sleeping) 111Mb (according to task manager)
After serving a few pages (big searches and a couple of EPG list showing 24hrs and all 55 channels), its still at 45Mb (which surprises me!)
Fair enough. I think I need to rationalise my windows services a bit and see if I can get it down to a more manageable level, either that or get another couple of sticks of sdram off fleabay!
I think that maybe the memory issue is the guide data. I usually run with about a week`s worth and this time used 14 days, which obviously will lead to more memory usage.
Chris
RedCoat999
11-22-2004, 08:53 AM
I am quite surprised that after a whole weekend you have not found any bugs yet -- I am sure I left a few in there for you to find :)
Chris: beat you: My Sage server is a PIII 600mhz equivalent :) (Via EPIA M10000)
Beat you both, see my signature....
Bandit
11-22-2004, 09:55 AM
All I have to say is...OMG!!!!
This is and the MVP client released so close to eachother, I may not be able to take it! Have this installed and its working awesome...can't believe how nice it is.... :clap:
Enormous
11-22-2004, 10:46 AM
Nielm,
I too have to say thank you, and commend you on the excellent work. I've been admiring it all weekend, and I am still impressed.
Three cheers for Nielm!!! :jump: :clap: :goodjob:
atari52oo
11-22-2004, 08:41 PM
I gotta say good job too! More then I could have ever expected!
:thumb:
jmossman
11-22-2004, 08:44 PM
Is there any way to remove the background or maybe add it as a feature?
The reason I ask, is that I use the sage web-server through a remote desktop and the background causes a great lag. Yes, I know I can just open the port (8080) to the outside world but I like to minimize the amount of ports I have open.
Hold that thought....
Well I just answered my own question... I just renamed background.jpg under the webserver\webroot\sage directory to something else
Maybe someone else can use this info... so that is why I'll still submit it...
Thanks,
Jack
Endymion
11-22-2004, 11:08 PM
I finally got 2.1.10 working (thanks George), and this was the first add-on I installed. All I gotta say is freaking sweet! Worked superbly from the start. Nielm, you are a golden god :D
nielm
11-23-2004, 12:05 AM
Is there any way to remove the background or maybe add it as a feature?edit sage_screen.css and remove the lines containing:
background-*
The next version will have the option to use different CSS files via a cookie, so you can have one CSS file for home intranet, and a different one for external access.
ekiwi
11-23-2004, 02:06 AM
ok have been running sage since march and have never had it not record stuff for me. i have never come home and found sage had abended
finnally got sage 2.1 to work for me early last week and is still working for me
what i like is it will go into standby and come out.
this worked for 4 days
added this webserver aplet 1.1
next 2 days in a row when i brought the machine out of standby found sage was not running.
remove the load at startup line from the properties
this morning and this evenwing when i got home brought machine out of standby and found sage still running and programs had been recorded in the interum
no obvious errors in the event logs
I know this is not conclusive
but i realise that other who are running this are probably not using standby as they are sort of mutually exclusive, however i plan to use wake on ring (ie call home forces machine on) then i can use the web server to setup a recording
if there are otherlogs i can look at or thing i can check i am happy to do this just dont know what other info to supply you
-e
ChrisAllenFiz
11-23-2004, 06:50 AM
Neil, I have a possible bug for you. When deleting a file, you get the "are you sure" dialog, and then when you click ok, the next page never loads, and you have to go back to find a valid page. The page that fails to load is at URL
http://<ipaddress>:8080/sage/MediaFileCommand?command=DeleteFile&MediaFileId=1374634&returnto=Recordings
this page works the first time a file is deleted, when a login is required, but not after that. When you refresh the page you get an unknown airing error, so the file has actually been deleted
Chris
nielm
11-23-2004, 12:56 PM
added this webserver aplet 1.1
next 2 days in a row when i brought the machine out of standby found sage was not running.
I don't use standby normally (my PC has no way of waking it up unless you press the power button!) but I did a quick test and it seemed to work... The webserver has no code in it that should stop the entire sage process: even if there is some catastophic failure, this would only stop the webserver thread, and the process should continue running...
Are you using service mode or not? (service mode has the automatic recovery option, so that even if it crashes, it will be restarted)
nielm
11-23-2004, 12:59 PM
Neil, I have a possible bug for you. When deleting a file, you get the "are you sure" dialog, and then when you click ok, the next page never loads, and you have to go back to find a valid page.The web request that does the delete returns a 302/redirect value instructing the browser to go to a different page, so I guess if the file is deleted, the redirect is failing...
Which browser are you using?
ekiwi
11-23-2004, 01:09 PM
I am not using service, just because there was a lot of talk that the issues people where having where because of usinghte service option.
Is it worth giving it a try? Or do the issues with the service outway the benefits.
-e
note I only have one machine ie its the live machine, as i said before i have never had a issue with it not working after a while, all my issues have been evident from the launch of the app, ie all b/w, weird pb issues or weird encoding issues, never that it didnt record something. so testing will have to happen on evenings where there is nothing i want to really watch during the night so that i dont miss anything important
nielm
11-23-2004, 04:03 PM
I have no issues at all running the service (but my UI occaisionally crashes, and has some directX problems requiring restarts, so doing the recordings in a separate process is a big benefit for me)
thatdude90210
11-23-2004, 04:44 PM
I am not using service, just because there was a lot of talk that the issues people where having where because of usinghte service option.
I use standby, I'm not running service either. I've been using standby since I found out that the latest Sage tv supports waking to record, and since my newly build Sage machine has no problem with standby (my old one used to crash everytime going to standby).
Anyway, this webserver works just fine on my machine for the last few days. Even got it to wake up dialing from my workplace's to set a recording.
Jakebucky
11-23-2004, 06:33 PM
I think I see one small thing that isn't working as intended. I'm trying to list up some Video's following the example given on the customization page. In my menu I am listing Video=Video. I set my path and alias up. When I click my Video menu it wants to go to http://localhost:8080/sage/video but shows nothing. When I go to http://localhost:8080/video my items list fine. Is it not intended to use menu's to get to say videos?
sting7777
11-23-2004, 07:15 PM
First off - Great plugin - thanks!
I set up a timed recording and the month is off. October=November November=December etc.
ChrisAllenFiz
11-24-2004, 12:39 AM
The web request that does the delete returns a 302/redirect value instructing the browser to go to a different page, so I guess if the file is deleted, the redirect is failing...
Which browser are you using?
I was using IE when the problem occurred.
Chris
nielm
11-24-2004, 02:29 AM
I think I see one small thing that isn't working as intended. I'm trying to list up some Video's following the example given on the customization page. In my menu I am listing Video=Video. I set my path and alias up. When I click my Video menu it wants to go to http://localhost:8080/sage/video but shows nothing. When I go to http://localhost:8080/video my items list fine. Is it not intended to use menu's to get to say videos?
you can put any URL in the menu, but you are entering a relative path relative to the /sage web path, so ot goes to /sage/video. You need to enter Video=/video to go to http://localhost:8080/video
nielm
11-24-2004, 02:31 AM
I set up a timed recording and the month is off. October=November November=December etc.D'oh! Will be fixed shortly!
nielm
11-24-2004, 02:34 AM
I was using IE when the problem occurred.I will change the redirect method in the next version to see if it helps...
RedCoat999
11-24-2004, 07:42 AM
Am I missing something, but I cannot find where to add a Favorite???
nielm
11-24-2004, 07:54 AM
What you see is what you get (for the moment!)
(so no favorites, playlist management, system setup etc etc etc)
Its more of a 'Oh I forgot to set the PVR for xxx' or a 'whats on tonight' type of tool...
gotuitdan
11-24-2004, 08:13 AM
nielm,
a thought: If the user has enabled and added MPEG4 re-compression, it would be nice to be able to choose "compress" and enact the compression to start via the web server. This would make streaming an easier option via the web... :-)
just a thought.
thanks!
AndyS
11-24-2004, 08:00 PM
Is there any chance that you could add a 'cancel recording' option? I keep seeing stuff that IR is recording and it would be nice to be able to stop those recordings remotely.
Andy.
atari52oo
11-24-2004, 08:45 PM
Nielm,
I think I found one minor bug. After you mouse-over the three menus to expand them, they will not hide themselves again unless you click the menu title.
nielm
11-25-2004, 12:14 AM
Is there any chance that you could add a 'cancel recording' option? I keep seeing stuff that IR is recording and it would be nice to be able to stop those recordings remotely.Same as in sage -- set the show to Don't like or Watched to stop IR from recording it. This is why there are checkboxes in the Upcoming recordings, and an 'action on selected' dropdown at the bottom.
(manual recordings have a Recording Options/Cancel Recording button)
nielm
11-25-2004, 12:15 AM
I think I found one minor bug. After you mouse-over the three menus to expand them, they will not hide themselves again unless you click the menu title.Yep -- next release will have auto-hiding menus...
krutaw
11-25-2004, 07:02 AM
Yep -- next release will have auto-hiding menus...
nielm~
Since you're obviously working on another version of the web server, are you taking requests?
I think it would rock if I could access the libraries as well as the sage recordings. :)
nielm
11-25-2004, 07:15 AM
next release will be bug fixes only, until I decide where I want to go with this...
LostInSpace
11-25-2004, 10:44 AM
It's great great great! I'm loving it... I just installed it and it looks great. I'll now test it but I'm confident.
CONGRATULATIONS... It's all I was waiting for
Ferdinand
cmaffia
11-26-2004, 12:07 PM
Just setup webserver and it worked in one shot along with IP Forwarding on my Linksys Router so I can access from work on the internet :-)
One problem I see. Recordings that need parental code input dont prompt you from the browswer. The prompt just sits at the TV and you cant remotely start programs from that point on.
Also what am I doing wrong concerning Channel Logos?
I copied my current channellogos folder from my SageTV directory to the Sage directory in the Webserver/sage location but they still dont show up in my Browser
fidget
11-26-2004, 12:54 PM
Also what am I doing wrong concerning Channel Logos?
I copied my current channellogos folder from my SageTV directory to the Sage directory in the Webserver/sage location but they still dont show up in my Browser
Are all of your logos in .GIF format? The web server will only do JPEG. That, and you need to enable the display of logos (the selection is available from the bottom of the Grid View page).
Cayars
11-26-2004, 12:55 PM
I believe the channel logos are case sensitive. They need to be spelled exactly the way the call lets are shown which is normally all caps. So you could have CBS.jpg and it would work where cbs.jpg would not.
Nice catch on the parental codes.
nielm
11-26-2004, 02:05 PM
One problem I see. Recordings that need parental code input dont prompt you from the browswer. The prompt just sits at the TV and you cant remotely start programs from that point on.
oops! I will have to look into how to fix that!
Also what am I doing wrong concerning Channel Logos?
I copied my current channellogos folder from my SageTV directory to the Sage directory in the Webserver/sage location but they still dont show up in my BrowserCheck the docs (http://www.sage-community.org/index.cgi/wiki/WebserverCustomisation) for a couple of ways to debug this..
Its not a case-sensitivity issue as Windows filesystems are not case sensitive
cmaffia
11-26-2004, 02:32 PM
oops! I will have to look into how to fix that!
Check the docs (http://www.sage-community.org/index.cgi/wiki/WebserverCustomisation) for a couple of ways to debug this..
Its not a case-sensitivity issue as Windows filesystems are not case sensitive
DUH!!!!! Didn't see CHANNEL LOGOS ENABLED Option...within the browser options....Nevermind!
Again, I really have to sing my praises with this plugin.. it is FRIGGIN AMAZING!!!!! Frey should take this plugin and cayars latest STV and make it part of the core package! Then again, I guess having SageTV extremely simple out of the box leaves enhancements like these possible. Just would be such more of a selling point if all of these functions were out of the box.
ron.smythe
11-27-2004, 09:55 AM
Hi,
first and formost, this has got to be one of the best tools going for Sage! Thanks nielm for all the hard work :clap:
Now the bad news, I've tried a number of different posted solutions, but for some reason I get the same error message no matter what I do:
[Couldn't create custom socket factory Acme.Serve.SSLServerSocketFactory or call creation method. Standard socket will be created. java.lang.ClassCastException]
my .keystore file is in it's default location, but I have tried to put the absolute path in to the propities file to no avail.
Any help appreciated.
cmaffia
11-27-2004, 01:53 PM
I am such a geek! I hit a wi-fi spot while shopping today and programmed my sage from my Palm. Works great using my Palm's Web Pro
AndyS
11-27-2004, 07:34 PM
I'm not sure if this is a bug or a feature....
I just found the Custom Channel-Grid option. I really like this because although I have nearly 100 music channels defined in Sage, I don't need them to be displayed by the webserver.
Is there a way you can make my selection the default for future visits to the Guide? (I use Grid View). Currently I have to re-select my displayed lineup every time I visit the page. I guess a 'reset' option to reselect all channels would also be in order.
Andy.
nielm
11-28-2004, 03:09 AM
I just found the Custom Channel-Grid option.
Is there a way you can make my selection the default for future visits to the Guide? (I use Grid View).either set it as a traditional bookmark (making sure that the startdate/starthr URL arguments are not set) or add it to your menu.properties:
My Channels Grid=EpgGrid?Channel=x&Channel=y?Channel=z
You can of course then add
My Channels PrimeTime=EpgGrid?starthr=18&Channel=x&Channel=y?Channel=z
etc etc etc...
Note that process running the webserver needs a restart to re-read menu.properties.
Note also that you need to avoid that your text editor word-wraps the line
nielm
11-28-2004, 03:11 AM
[Couldn't create custom socket factory Acme.Serve.SSLServerSocketFactory or call creation method. Standard socket will be created. java.lang.ClassCastException]
I have never even tried running SSL on my system, but a quick look at the code has me stumped, and I know others have this working! Which Java JRE are you running?
nielm
11-28-2004, 11:54 AM
Recordings that need parental code input dont prompt you from the browswer. The prompt just sits at the TV and you cant remotely start programs from that point on. Quick question on this:
Does this occur when setting a program to record, or does it happen when starting to watch a live or pre-recorded program via the web browser...
(if the latter, then I will not do anything about this! -- its the same type of issue as when you start watching a program and don't have enough spare tuners: the UI will present a pop-up that has to be handled by the UI)
(parental restrictions do not work for me as I dont have the EPG data that includes the restrictable categories, so I cannot do any testing on this)
cmaffia
11-28-2004, 06:26 PM
Quick question on this:
Does this occur when setting a program to record,
or does it happen when starting to watch a live or pre-recorded program via the web browser... (if the latter, then I will not do anything about this! -- its the same type of issue as when you start watching a program and don't have enough spare tuners: the UI will present a pop-up that has to be handled by the UI)
(parental restrictions do not work for me as I dont have the EPG data that includes the restrictable categories, so I cannot do any testing on this)
Never tried when setting a program when it records.
Yes it is the latter, but the problem is it SHOULD prompt you because you can not control the tuner remotely from this point on. Sometimes one doesn't know if there is a parental restriction on a recording until this prompt pops up
cmaffia
11-28-2004, 08:16 PM
Another request I have is to be able to search the EPG for any phrase.
I believe right now you can only search program titles but I would like to be able to type in an actors name and find all programming related to him/her. Is this possible in future releases?
Thanks
mikejk67
11-29-2004, 12:17 PM
First of all thanks for the great addon. However my company blocks port 8080 and I've tried to edit the sage.properties file "nielm/webserver/port" to a different value, but everytime I restart sage tv it revert to 8080. I believe I did it correct in word pad no wrap and even reopened the file and it is correct, but restart tv services and it's 8080 again. Works fine from a compute on my network. I would like to schedule from workl
thanks
ron.smythe
11-29-2004, 01:14 PM
Hi nielm,
I'm running 1.4.1_02, woops time for an upgrade I think!!
Maybe that's the issue.
mikejk67
11-29-2004, 01:19 PM
I guess just threatening the computer to post scares them. I did find an autoback of sage properties and changed both to a different port and of course it worked.
Laurion
11-30-2004, 09:09 AM
Here's an apparent bug:
# http URL to aliased path to video directory -- see aliases.properties
# note that host name is not specified to build a relative URL
# d:\sage-video\=http:/video/
Only, it doesn't work that way in Safari on my mac. It works fine under Firefox on the PC, but the mac gives me http:/video/filename ... which is exactly what the web server is passing it, so why should it treat it like a relative URL? Is there some way instead that the webserver could take a webroot address as an argument, and build a full URL off of that? Or should I just edit my line to read the equivalent of
d:\sage-video\=http://myhostnameorip/video/
?
nielm
11-30-2004, 09:37 AM
Only, it doesn't work that way in Safari on my mac. It works fine under Firefox on the PC, but the mac gives me http:/video/filename ... Thats a bug in Safari, but you have already figured the workaround: Should I just edit my line to read the equivalent of
d:\sage-video\=http://myhostnameorip/video/
?yep..
nielm
11-30-2004, 09:40 AM
Yes it is the latter, but the problem is it SHOULD prompt you because you can not control the tuner remotely from this point on. Sometimes one doesn't know if there is a parental restriction on a recording until this prompt pops upYou have the same problem if a tuner is recording something, or if you have run out of tuners and you remotely start playback of livetv -- these both put popups on the UI screen...
The thing is, even when you are remotely shecduling it, someone is sitting there watching the TV, so I would assume that they could cancel the popup...
cmaffia
11-30-2004, 10:42 AM
You have the same problem if a tuner is recording something, or if you have run out of tuners and you remotely start playback of livetv -- these both put popups on the UI screen...
The thing is, even when you are remotely shecduling it, someone is sitting there watching the TV, so I would assume that they could cancel the popup...
OK thanks
BTW, I've been using it everyday for the last 5 days and it works great.
I'd like to be able to search for wildcards when doing program search and lastly is there a way that I can view my photos with the web browswer without having them copied to my local sage machine? I was hoping I could use the network path for photos like the way Sage is currently accessing them.
chrysek
11-30-2004, 12:06 PM
I love this plugin, I wish it had also some streamer capability to watch video trough the web... I know that there are some java applications that do stream video out trough web... Yes, I am not looking for God knows what quality, but just simple way to watch something trough the web interface... Example, I am at work and I recorded some news broadcast, wouldnt it be nice to be able to watch it at work in a small window? yeah that would be awesome....
Problem that I can see is only probably the conversion to a streaming format... oh well, it was just a thought and something that would be just an extra feature....
:) Great job, this is amazing, I think this plugin should be standard installation of Sage, it shouldbe part of Sage.... :)
Chris
ldavis
11-30-2004, 01:38 PM
I second chrysek's suggestion. I had just finished typing out a similar request. I can think of how I might watch something using using WM Encoder and girder to trigger to encoder to start streaming but it would be cumbersome and would not allow streaming of live TV. I would also like to watch news over the webserver if it is possible.
Lain
Crashless
11-30-2004, 01:47 PM
If it were possible to remotely trigger a compress routine (that is already integrated to a lot of STVs) one could set the destination to a mapped folder and view it remotely that way. It wouldn't be streaming per se, but it would require MUCH less work to implement.
The only part missing is the trigger from the webserver.
TVWatcher
11-30-2004, 02:34 PM
Hello,
First, let me join the chorus in saying the is ONE TERRIFIC plug-in - should definitely be a part of the core!! :clap: Lookin' forward to more!
I installed webserver, picked up on the zip -> jar file issue. I'm able to access the webserver from my internal network, but errors out when attempting to connect via the Internet. I am using Linksys and have forwarded the default 8080 port to the SageTV PC. No prob with Linksys forwarding other ports for other apps (VNC, Remote Desktop, etc.) Below is the only info that is reported in the webserver\log file:
[Fri Nov 26 16:39:49 EST 2004] Reading request: Connection reset
Any insight would be greatly appreciated.
TIA
Crashless
11-30-2004, 02:43 PM
You might have remote admin turned on in your linksys. You'll either need to disable it or redirect the port. It's in the standard 192.168.1.1 config site for the linksys, every model is slightly different, so I can't tell you exactly where, but it's there.
TVWatcher
11-30-2004, 03:44 PM
Thanks Crashless, actually the remote admin was changed to 8081 a while ago; sorry, forgot to mention that.
TVWatcher
12-01-2004, 07:44 AM
Okay, just to knock out the default 8080 port, I changed the port to 8088 in honor of one of the earlier Intel processors ;) It worked great! And just for the fun of it, I also opened the port for the STV client -- this too worked great, but obviously took a lot more bandwidth!
Happy Watchin' :)
Crashless
12-01-2004, 02:40 PM
Okay, just to knock out the default 8080 port, I changed the port to 8088 in honor of one of the earlier Intel processors ;) It worked great! And just for the fun of it, I also opened the port for the STV client -- this too worked great, but obviously took a lot more bandwidth!
Happy Watchin' :)
Great to hear it's working. Strange about your 8080 though, maybe your ISP is blocking it?
As for the sage client remotely - get Verizon's new FIOS fiber service and you'll be fine on bandwidth.
:nod:
srothwell
12-02-2004, 08:08 AM
Hi...
I followed nielm's instructions for installing the web server.
When I enter the http://localhost:8080/sage/Home , all I get is Page Cannot Be Found.
I have double-checked everything.
The only thing that might be suspect is the .jar file. I did what he said, no matter what i.e. tried to save the java class libraries as, I renamed it to servlets.jar (even though the .zip file is a valid ZIP file and will uncompress).
If you try to actually run the renamed .jar file, it gives an error saying it's corrup.
Did I do something wrong?
Stacy
nielm
12-02-2004, 08:44 AM
When I enter the http://localhost:8080/sage/Home , all I get is Page Cannot Be Found.Does accessing static pages (such as: http://localhost:8080/sage/sagelogo.gif work (should show a sage logo)
If so then there is probably a problem with the servlet startup...
Was there anything in the webserver log file (sagetv/webserver/log/AWS-date.log?
The only thing that might be suspect is the .jar file. I did what he said, no matter what i.e. tried to save the java class libraries as, I renamed it to servlets.jar (even though the .zip file is a valid ZIP file and will uncompress).
If you try to actually run the renamed .jar file, it gives an error saying it's corrupt. yep - thats normal :) (jar files are actually zip files with a different extension containing several .class files, and some can be runnable... This one is not -- hence the message).
srothwell
12-02-2004, 08:58 AM
Niel,
Thanks for the quick response.
The GIF file doesn't show up.
And, there's no log file, OR log directory......
EEKK!
cmaffia
12-02-2004, 09:11 AM
BTW this works great still with the current 2.2.1 beta
nielm
12-02-2004, 09:12 AM
Check the Trouble shooting guide (http://www.sage-community.org/index.cgi/wiki/WebserverTroubleShooting) -- there are a few things in there to diagnose where things are going wrong...
srothwell
12-02-2004, 11:41 AM
Niel,
Ok.... on the CMD promot NET thing..... when sage server is running, it does show up as MEDIASERVER:8080 MEDIASERVER:0 LISTENING
So, I guess the webserver is starting?
However, this is NO log file at all.
Also, in the troubleshooting guide, it says:
check that there are directories Acme/Serve and net/st/sageplugins/webserver in the SageTV directory containing .class files
There is no "st", there is an "SF" directory where the troubleshooting says it should be an "ST" I tried to change the SF to an ST and it caused ALL sorts of problems with Sage loading. Then I checked the ZIP file for webserver, the directory structure has SF not ST.
I also checked the rights to the directory. I set all users to full access.....
EDIT: Also, in the installation instructions is says the \lib\ext file is called SERVLET.JAR, but the file actually downloads as SERVLETS.JAR (plural). Which one is correct?
What else do you recommend?
Stacy
nielm
12-02-2004, 11:55 AM
yes it should be SF not ST...
hmmm. bizzare.
What do you get if you browse to http://localhost:8080/
You should get a message 'There is nothing to see here' and be redirected to about:blank in 2 seconds...
If you get anything else, then that is not my webserver on port 8080 :)
It's still odd that the log directory is not created - it should be created on startup, so I am guessing that my webserver is not actually being started...
Did you try enabling the debug console ? The webserver is started just before the Sage UI, maybe there is a message in there...
Did you also try starting the webserver outside of Sage?
srothwell
12-02-2004, 12:16 PM
Anyone remember that great TV commerical where the guy is interviewing for a job and the boss' nameplate says "MR. DUMASS" and they guy keeps calling him "DUMB-ASS" instead of his real name which is pronounced "Du-MAS"?
Well, feel free to call me "MR. DUMB-ASS"
Other than the log file not being there, there isn't a problem.
It never occurred to me that I had to open IE and select the web page from the SAME COMPUTER that Sage Server was running on!!!!
I was trying to get to it from another PC in my house............ (currently frying the egg that just sloshed off my face.... mmmm.. good :rolleyes2
I imagine the next set of instructions tells me how to access it from another computer and the internet.....
Sorry to waste your time.......... :bang:
Stacy
nielm
12-02-2004, 12:38 PM
LOL :)
The log file only gets created when there is a problem -- so when it is not there, it is either working fine, or has such a major problem that it cannot even get started :)
lovingHDTV
12-02-2004, 01:04 PM
Has anyone used the web interface with PocketIE on a PDA?
I would love to see the entire interface available via the web browser, and I would then use my PDA as a remote.
TakeFlight
12-02-2004, 02:16 PM
Yes, I use my iPAQ to get to my Sage box via the web interface. It works great. There are a few pages that are a little squished but for most pages it shows up great on the PDA screen. It is really handy being able to set up a show to record from anywhere when I'm on the road since I have a GPRS internet connection on my iPAQ H6315. :thumb:
Has anyone used the web interface with PocketIE on a PDA?
I would love to see the entire interface available via the web browser, and I would then use my PDA as a remote.
srothwell
12-02-2004, 03:52 PM
Niel,
For version 1.2 or 2.0, what about adding a link that would download the file you're looking at.
If I select Sage Recordings, then select the show, it would be great to be able to click and download the file. Yes, I know it can be 3GB, but.....
Stacy
cmaffia
12-02-2004, 04:17 PM
Yes, I use my iPAQ to get to my Sage box via the web interface. It works great. There are a few pages that are a little squished but for most pages it shows up great on the PDA screen. It is really handy being able to set up a show to record from anywhere when I'm on the road since I have a GPRS internet connection on my iPAQ H6300. :thumb:
I posted this a few days ago but YES works great on my Wi-Fi Palm Tungsten C
nielm
12-02-2004, 04:55 PM
For version 1.2 or 2.0, what about adding a link that would download the file you're looking at.Already there :)
http://www.sage-community.org/index.cgi/wiki/WebserverCustomisation
(2/3 of the way down: Direct links to video files)
srothwell
12-02-2004, 06:55 PM
Niel,
Got the translation working great with spaces and all.
One (last) question for the night.....
Is there some kind of file size limit on the webserver?
I can transfer over http (using Save Link as....) any of the shows that are <1GB (takes about 12 minutes). However, anything over 1GB will immedately transfer only 1KB of the file, then close it.
I've tried it on every recording and it fits all the time.... All the comments under throttle.properties are completey remarked out, as default.
If I just click on it, it will try to load the whole thing to play in a browser's Quicktime window.
Past this..... we're great!
And..... is there a way to remove the DELETE NOW (or better yet.... password protect it with an additional password) from the detail menu?
Thanks for all the help today!
Stacy
AJ Bertelson
12-02-2004, 07:39 PM
Well I am mr dumbass then.
I created the no-ip account but I am getting stuck on how to get the sagetv webserver to update to that page.
cmaffia
12-02-2004, 07:44 PM
Niel,
Got the translation working great with spaces and all.
One (last) question for the night.....
Is there some kind of file size limit on the webserver?
I can transfer over http (using Save Link as....) any of the shows that are <1GB (takes about 12 minutes). However, anything over 1GB will immedately transfer only 1KB of the file, then close it.
I've tried it on every recording and it fits all the time.... All the comments under throttle.properties are completey remarked out, as default.
If I just click on it, it will try to load the whole thing to play in a browser's Quicktime window.
Past this..... we're great!
And..... is there a way to remove the DELETE NOW (or better yet.... password protect it with an additional password) from the detail menu?
Thanks for all the help today!
Stacy
Can someone copy and paste an example of how they got links to work?
I want to be able to be able to get to my photos the way sage gets to them via mapped network drives. Manual says I need to put in the webroot to access but that seems inconvenient when I already have them mapped on a networked drive
nielm
12-03-2004, 02:54 AM
I want to be able to be able to get to my photos the way sage gets to them via mapped network drives. Manual says I need to put in the webroot to accessDoes it? (http://www.sage-community.org/index.cgi/wiki/WebserverServingOtherFiles) -- it seems to menition using aliases to directory paths outside of the web-root...
nielm
12-03-2004, 02:56 AM
Stacy: no limits I am aware of, but it might be a integer overflow problem -- I will have a look...
DeleteNow can not be removed, and password protection can be applied (there is an example in realms.properties, but it will also affect all the other commands like 'Don't Like', and 'Watched'
nielm
12-03-2004, 02:59 AM
I created the no-ip account but I am getting stuck on how to get the sagetv webserver to update to that page. Not sure what you mean here... A no-ip account (and the client software) gives your sage computer a 'name' (such as 'ajb.no-ip.com') on the internet that will follow your computer even if your IP address changes...
If you also open a hole in your firewall to allow incomming traffic from the internet to the Sage webserver, this would mean that you can access the sage webserver *on your Sage computer* from anywhere on the internet by going to:
http://ajb.no-ip.com:8080/sage
(note: not a real address!)
srothwell
12-03-2004, 06:48 AM
Stacy: no limits I am aware of, but it might be a integer overflow problem -- I will have a look...
DeleteNow can not be removed, and password protection can be applied (there is an example in realms.properties, but it will also affect all the other commands like 'Don't Like', and 'Watched'
Thanks for checking on the integer overflow problem. I went through and checked my system again and I don't think it's anything I'm doing.
Stacy
srothwell
12-03-2004, 06:57 AM
Since installing webserver, sucessfully, yesterday my MediaMVP client will no longer play live TV.
Now, it will not watch live TV anymore. If you select a program that on right now (either by EPG or "Live TV") it will remove the menu, show the OSD and just have black with the time counter not moving. The time counter will show how much of the live program has past (time bar being RED).
However, it WILL playback shows that have already been recorded --- unless the show was told be recorded from the MVP (i.e. from the MVP I told ER to record). If I try to look at that, it will still show only the black screen. But, if I go downstairs and tell a different machine (PC) to record ER then the MVP will play that back fine while it's still recording.
The MVP client is NOT on the Sage Server. It is on a completely separate PC, so no components of web server have been installed on the MVP client PC.
A third PC's client software works just like it's supposed to.... no problems with Live TV.
Anyone having trouble like this?
Thanks,
Stacy
AJ Bertelson
12-03-2004, 07:30 AM
Not sure what you mean here... A no-ip account (and the client software) gives your sage computer a 'name' (such as 'ajb.no-ip.com') on the internet that will follow your computer even if your IP address changes...
If you also open a hole in your firewall to allow incomming traffic from the internet to the Sage webserver, this would mean that you can access the sage webserver *on your Sage computer* from anywhere on the internet by going to:
http://ajb.no-ip.com:8080/sage
(note: not a real address!) How do I get the sagetv webserver to point to my No-ip address though, that is the problem I am having.
walts81
12-03-2004, 07:47 AM
nielm,
I was wondering if you could help me with something? I have the sage webserver running and it works for the most part. I have a dynamic dns registered at a .gotdns.com account. When accessing the webserver using that address, it works fine. However, I have a .info domain name mapped to the .gotdns.com account and I also have masking turned on (so that you will only see the .info address in the address bar). When I access the webserver using the masked .info address, the options don't work. Such as, when I select to see 100 channels at a time rather than 10. Or select to see channel logos. The screen will refresh but the options won't work. I figured it was something to do with the mask since it works without it. Just wondering if there was any way around this? Also, when I goto delete a show, I get an error (no matter whether I use the masked domain or not). I have downloaded the servlet.jar file. I've tried renaming it to servlet.jar, servlets.jar, servlet.zip, and servlets.zip. Same error no matter which. This is the error I get:
Exception while processing servlet:
java.lang.NullPointerException
java.lang.NullPointerException
at net.sf.sageplugins.webserver.AiringCommandServlet.doServletGet(AiringCommandServlet.java:130)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at Acme.Serve.ServeConnection.runServlet(Serve.java:1528)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1503)
at Acme.Serve.ServeConnection.run(Serve.java:1392)
at java.lang.Thread.run(Unknown Source)
Thanks,
Josh
nielm
12-03-2004, 08:13 AM
How do I get the sagetv webserver to point to my No-ip address though, that is the problem I am having.Its the other way around: the no-ip address points to the machine running the sagetv webserver...
You (some where else on the internet) then point your browser to the no-ip hostname, which resolves to the IP address of you sageTV machine at home, so the browser on the internet connects directly to the sage webserver on your home system.
AJ Bertelson
12-03-2004, 08:37 AM
do I just do the
****.no-ip/info/(name of the sagetv box)
With the name of the sagetv box being the name that sagetv server runs on?
nielm
12-03-2004, 08:40 AM
When accessing the webserver using that address, it works fine. However, I have a .info domain name mapped to the .gotdns.com account and I also have masking turned on (so that you will only see the .info address in the address bar). When I access the webserver using the masked .info address, the options don't work.I don't really know what masking is, but, The options use cookies: the cookies could be being set on the wrong domain name...
As for the other problem, do any of the other commands work (set watched/don't like)? Check the log file (webserver/logs/*.log) to see if there was a startup problem...
Stacy: I can't help much with the mediaMVP... Can't think of any reason why the webserver would interfere with it either...
nielm
12-03-2004, 08:53 AM
do I just do the
****.no-ip/info/(name of the sagetv box)
With the name of the sagetv box being the name that sagetv server runs on?
I don't use no-ip (I use dyndns) but...
If you registered your domain name as:
hostname: xyz .no-ip.info
then you browse to:
http://xyz.no-ip.info:8080/sage/
And assuming your firewall lets you in, and the IP address associated with xyz.no-ip.info is correct (the no-ip software client running on your sage box should do this) then it should work...
Your sage box 'becomes' that hostname: xyz.no-ip.info on the internet...
lovingHDTV
12-03-2004, 10:22 AM
AJ,
I just set this up yesterday and will try to tell you exactly what I did.
1. Setup webserver on server machine and made sure it worked via http://localhost:8080/sage/Home per instructions. This worked great.
2. Went to a second machine on my home network and went to http://hp933:8080/sage/Home (hp933 is the name of my SageTV server). This worked.
3. Registered with dyndns.org and created my machine name there sagetv. It automatically sensed by IP address and setup up sagetv.dyndns.org to point to my ip address. dyndns can automatcially sense your ip if you are accessing it from a computer on your local network (in your home).
4. Browsed to http://sagetv.dyndns.org:8080/sage/Home, did not work. I then had to do a little debug. I have a cable modem, connected to a cable modem router, connected to a 8 port hub. I went into my cable modem router and set up a DMZ for my computer hp933. What this does is send all traffic sent to my cable modem, unchanged straight to my computer hp933.
5. Browsed to http://sagetv.dyndns.org:8080/sage/Home again. Bingo! it worked. Now I know the dyndns thing works but I don't want to leave a DMZ open on my network. So I have to fix this!
6. Went back into my router setup (http://192.168.0.1), each router may be different. I then forwarded tcp port 8080 to my hp933 computer. This acts in a similar fashion to a DMZ, but only for that one port.
7. Browsed to http://sagetv.dyndns.org:8080/sage/Home, Bingo! works.
I'm now setup to access my SageTV server from anywhere on the internet.
Caveats: My router serves up IP addresses to my computers via DHCP. My port forwarding is done to IP addresses. This means there may come a time where my hp933 ip changes and the web interface will break. There are ways to fix this but I've not bothered with them. If it breaks I will reconfigure my router to point to the new IP address and be off and running.
Hope this helps some,
dave
AJ Bertelson
12-03-2004, 04:08 PM
got it to work nielm, I just used the link that you posted and changed it to the domain name that I registered.
is there anyway to add in favorite options?
mrgibbysworth
12-03-2004, 07:09 PM
WOW this is great... can you edit favorites using webserver?
abasu2003
12-03-2004, 10:01 PM
WOW this is great... can you edit favorites using webserver?
is it too early to ask for requests?
nielm
12-04-2004, 06:25 AM
3 requests in a row :)
As I said a while back, this is remote programming 'I forgot to set the VCR type' of stuff for the moment... (I don't even have enough time to fix the existing bugs!)... I would like to develop it further, but that depends on a lot of things (job, family, life, and how long it will take me to rebuild my sage server which died completely last night -- doesn't even boot any more!)
AJ: glad you got it working... I have added that last line to the instructions...
Everyone, if you think you can improve on my instructions in the wiki, please do -- thats what a wiki is for!
cmaffia
12-04-2004, 09:24 PM
Does it? (http://www.sage-community.org/index.cgi/wiki/WebserverServingOtherFiles) -- it seems to menition using aliases to directory paths outside of the web-root...
Thanks I tried that briefly but no success.
I will try again
mayamaniac
12-05-2004, 04:37 AM
Awesome plugin. :thumb: :jump: :goodjob:
Didn't test it out until now. Kinda glad I'm late as the instructions are now better and some bugs have been ironed out since initial release. But great job, nielm. This is faster and easier to use than the web guide in BeyondTV. Now if I can find some software that can stream LiveTV over the internet, then I can do without BTV for good.
ToonGal
12-05-2004, 08:11 AM
For the web EPG guide, you use css to highlight the <a> tag, but only if the actual <a> link is hovered. Here's some code that I'd recommend to highlight the entire <td> cell if/when any part of it is hovered. I think you basically use a <td class="show">. If you enhance show with a "show_hover" tag, and simulate the example below, you can easily have it highlight on the <td> cell, which I think would be easier to track.
Anyway, here's the HTML example:
<head>
<style type="text/css">
<!--
td.test {
background: blue;
}
td.test2 {
background: cyan;
}
-->
</style>
</head>
<body>
<table summary="test">
<tr><td class="test" onmouseover="this.className='test2'"
onmouseout="this.className='test'">Hello world!</td></tr>
</table>
</body>
When building your <td> list, also, I'd do it in as generic a css way as possible. I'm assuming you have full access to the TV data, so you should keep this open to allowing <td> cells to be painted according to content (i.e. movies=purple, sports=green, etc.) and maybe even configurable in the .css file you have open to users to change. Just a thought.
More quick feedback, when browsing down the channel list in grid view (and I assume in others), when you scroll arrow down, it increases in channel until it hits EOL. Then the next arrow puts you back at the start of list. However, when at the SOL, and click an up arrow, it doesn't do anything. For those with a long channel list, an up arrow getting to the EOL page might be useful.
You might want to add a dialog text box for 'top channel' to move to a specific channel quickly, but that's a lot more work than what I have suggested here.
Having trouble with the v2.1.10 and v2.2.1 key, but haven't found any bugs in trial mode. Playing around with this while my son's been asleep, so I can see this great web server, but might downgrade eventually if more issues.
Son just walked in, and he's mine for the day, so that's all the feedback I have so far. Great work from what I've seen on this Nielm. :) This is the type of access I think that gives SageTV the best expansibility in the HTPC/PVR marketplace. Glad to see you're one of the people who's enhancing SageTV.
Speak to you soon, gang.
nielm
12-05-2004, 08:50 AM
thanks for the tip toongal... this is my first XHTML/CSS project so there are a few things I needed to learn, and still do!
I wanted to avoid javascript based functionality as much as possible (I am aware that a lot of users turn it off), which is why I am trying to do highlighting with css' :hover attribute, but that only works on certain elements (I use TR and DIV)...
The other problem with your example is that I am also using the TD class for the border colorization, but it can be worked around (it looks like I will have a whole bunch of TD classes for (fav/manrec/dontlike/recording)+(movie/sports/news)+(hover/nohover) (eek: 24 classes!).
The other option I looked at was make the containing Div 100%x100%, which then highlights the whole cell, but also means that the show is not vertically centered...
Background highlighting may come soon: I have only just got it working in Sage itself! (I use XMLTV data)
ToonGal
12-05-2004, 10:49 AM
The boy's eating lunch, so I have 15 mins or so. Rebuilt your exact model with a quick hack that achieves what I mentioned in my last post.
If I had more time, I'd build a model that basically has the <td> encompassing the entire content in the cell, highlighting everything in the <td> tag, and changing the <a> tag to surround the ENTIRE contents of the <td> cell, so you don't have to highlight the show title to select the cell.
sage_screen.css: (just stuck this in the global section for now)
td.show_hover {
color: #ffd800;
background: #0355a7;
}EPG.html: (changed the first entry in the EPG, but same for all cells)
<tr><td class="show" onmouseover="this.className='show_hover'" onmouseout="this.className='show'">
<div class="crop" style="width:120px; height:52px">
<a title="Paid Programming
6:00 AM - 6:30 AM
" href="DetailedInfo?AiringId=3650140">
Paid Programming</a><br/>
<br/>6:00 AM - 6:30 AM
</div></td></tr>
thanks for the tip toongal... You're welcome... ;) I didn't really have any time to parse through your .css file(s), but I did look enough to think it is more complicated than it needs to be. The way I drew your example up would ignore those who ignore javascript and not harm them at all.
Manually adding this into the HTML / .css files did seem to achieve what I was describing in the earlier example. Let me know if this isn't specific enough. Happy to include more detail if necessary. Back l8r.
nielm
12-05-2004, 12:36 PM
toongal: you are right that this is one of the things I am not 100% happy with... and it took a long time experimenting to get the combination of elements to work correctly..
Just to clarify why it is how it is:
the Td class is used for the cell border color, cell height and to v-align the contents
The div is used to set the width of the cell and to crop the contents (only works if width is set)
The div has to be auto-height to get v-align to work...
The only way to set the bgcolor is on the TD, so to get the varous combinations of border colors and background colors to work, I would need 24 td classnames (ouch!)
Its a pity td:hover doesnt work...
ToonGal
12-05-2004, 12:56 PM
I'm missing something, or maybe you are. I have a basic understanding of your syntax / structure and why you implemented it as you did. (This probably took forever, I bet...) ;) I understand the td:hover, as you have defined it, doesn't work as you expected it to. However, if you use my example exactly in your current structure, it DOES choose a background color on highlight and undo it on exit. And it only took one extra class definition.
Basically, the "show" class definition you use in your current <td> tag is just fine for the 'default' display of the grid. But for <td> cell elements you want to highlight, just use the 'onmouseover' and 'onmouseout' javascript tags to switch the class from "show" to "show_hover" on hover, and back to "show" on out. I manually added it to the saved webserver file I have, and it seems to have worked just fine.
If you implement it this way, instead of yours, there are 'n' (n=number of things you want to paint) infinite colors/combinations to implement, instead of 24 hard-coded permutations to achieve the same result. To be specific, "show" can be your default, "show_movie" could be for a movie cell, "show_sports", etc. and have "show_hover" for the highlighted item. This would allow end users to change the color combinations in the .css file too, and your default definition for each of them (hover included) can be the same as "show".
nielm
12-05-2004, 01:42 PM
I realise setting the bgcolor on hover will work, but have a look at the epg grid which includes something with a favorite/manrecord/don't like/current recording -- the td class is showfavorite, showmanrecord, showdontlike, showmanrecord, showrecording to give the cell the correct border color (white/red/black/yellow)...
To keep the border color and have background colors for program types, I would need td class names:
show_favorite_sports, show_dontlike_sports, etc...
show_favorite_movie, show_dontlike_movie, etc...
show_favorite_news, show_dontlike_news, etc...
To keep the border color with the hovering, I would also need:
show_favorite_hover, show_dontlike_hover etc...
Thats where wll the many class names come from...
Other ways I tried were wrapping the td by a span, (the span classname defines the show type background) and use the css parent selector to set the bgcolor on the td (didn't work)
One way that will work is putting another table in the TD, and using the child table to set the bgcolor... (uck)...
I will include the many class names in the next version...
ToonGal
12-05-2004, 03:12 PM
To do it the way you've done it so far, you WOULD need multiple combinations for classes to combine your border color control with your background color control. And if you did it that way, the permutations for the combinations would be massive for your .css file.
Here's the key of how I would implement it differently. You use one table entry for each cell value, and use the automatic "border-color" with class definitions. This is where I think you meant <table> in <table> in your last post to achieve more complex things.
I would make each cell value NINE entries in your single <table>, in a 3x3 matrix. The center square would be equivalent to your current "data" value, and make the rest of the values would be empty data with a border color definition. With this, you can make dedicated classes for the EPG data table easier and combine them as you please, with the work being done by the your generator instead of by the .css file.
This would also make the .css file very readable, as you can have classes in the border color realm (border_normal, border_manual, border_watched), the background color (back_normal, back_hover, back_sports), and have them easily expandable. By just adding classes for each, they are accessible to the generator without any extra work.
This way would also make the entire center data cell available as a <a> tag to click, to highlight the entire cell contents on click, and more flexibility to maintain any changes/additions. (I'd also turn off the underline text for the <a> tag if/when you can highlight the entire cell, to make it cleaner and more like the native SageTV.)
Anyway, time to take the boy to Grandma's house for play / dinner. I'll probably check back in later tonight before I have to return to my "real world" things...
The more I look at this, the more impressed I am with the architecture. Wish Studio was available to play, because if you have access to this much of the wiz.bin data, I can think of tons of neat features you can add in general.
Hope you see this as constructive and helpful, N. :)
srothwell
12-05-2004, 06:55 PM
Niel,
Any luck on figuring out why files over 1.2GB can't be downloaded from the web server into another PC?
Thanks,
Stacy
nielm
12-06-2004, 06:37 AM
Sorry Stacy, I was distracted by my Sage server blowing it's PSU!
I had a quick look, and it seemed to work for me (Opera/WXp)...
Are you sure that the .mpg file is 3Gb, (and not split at all into multiple files)
The next question is which browser/OS are you using for the download: the browser itself may be having integer overflow issues (the file length is passed in the HTTP response header...), or the tiarget filesystem may not be able to handle large (>2Gb) files..
A quick test for me on Win2K/NTFS for a 3.8Gb file results in: IE6 Sp1: fails half the time (creates 0-byte file), the other half the time it is unable to display progress but does download the full file
Firefox 1.0: unable to display progress but does download the file.. except that when it gets to 2Gb, it goes a bit crazy and starts counting down from -2Gb. File is downloaded OK though
Opera 7.54: works fine with correct progress bar
Score 1 for Opera :)
Stuntman
12-06-2004, 11:35 AM
I'm having a heck of a time trying to get my server to serve up the videos I have recorded! Maybe somebody can tighten the obviously loose screw in my head!
I have all my recorded videos on drive e: in the following actual directory
E:\TV
That same folder is shared as:
\\server\TV
How can I get the Webserver to link the video's in the E:\TV folder correctly?
My current paths.properties file has the following:
e:\TV\=http:/video/
My current aliases.properties has the following
from=/;dir=webroot
from=/video/;dir=e:\TV\
Thanks!!!!!!
samgreco
12-06-2004, 06:24 PM
nielm,
WOW. I finally got some time to try this and I can't believe how easy you made this.
Literally within minutes, I had it up and running. I checked it at work, and it's smooth as silk.
Now I can go on vacation and not worry if I forgot to set something up to record :D
Thanks so much for all of your efforts.
Sam
:goodjob:
srothwell
12-06-2004, 09:26 PM
Sorry Stacy, I was distracted by my Sage server blowing it's PSU!
I had a quick look, and it seemed to work for me (Opera/WXp)...
Are you sure that the .mpg file is 3Gb, (and not split at all into multiple files)
The next question is which browser/OS are you using for the download: the browser itself may be having integer overflow issues (the file length is passed in the HTTP response header...), or the tiarget filesystem may not be able to handle large (>2Gb) files..
A quick test for me on Win2K/NTFS for a 3.8Gb file results in: IE6 Sp1: fails half the time (creates 0-byte file), the other half the time it is unable to display progress but does download the full file
Firefox 1.0: unable to display progress but does download the file.. except that when it gets to 2Gb, it goes a bit crazy and starts counting down from -2Gb. File is downloaded OK though
Opera 7.54: works fine with correct progress bar
Score 1 for Opera :)
That's Microsoft for ya! Guess which one I'm using..... IE..... And you got it.... makes a 0-byte file.
Sorry about your system.... Yikes! Been there.... swore at that :-)
So, you know of any cool little (free) FTP servers that I can tack on to your system?
Stacy
jreichen
12-06-2004, 11:16 PM
nielm, this is a great add-on. Nice work :)
I get a 7 byte file when I try to download both a 1GB and a 2GB file. Those are the only two sizes I have tried. I attached my config and log files and the mpg that is downloaded.
I'm using Firefox 1.0 on a Windows XP SP2 client. My Sage server is Win2K SP4. The Web server is version 1.1.
When I try it in IE 6 I have to right click and choose "Save Target As..." in order to save the file. It also is a 7 byte file but the Save dialog defaults it to an .htm extension. When I hover over the link, the URL in the status bar ends in .mpg. Weird.
This isn't critical to me yet but I thought you might want to know.
nielm
12-07-2004, 12:58 AM
I get a 7 byte file when I try to download both a 1GB and a 2GB file. Those are the only two sizes I have tried. I attached my config and log files and the mpg that is downloaded.The log file is reporting that it looks like an HTTP request when you are using HTTPS...
It could be that you are using http links in your paths.properties file!
Some users have reported problems with Firefox, SSL, and using localhost (http://forums.sage.tv/forums/showpost.php?p=69748&postcount=92)
I did the download tests with normal HTTP.
Stuntman
12-07-2004, 08:58 AM
Can somebody glance at these settings and let me know if you see anything obviously wrong with them? I've tried just about every combo I could think of but all I see in my detailed view is the file path, no download links.. Thanks all!
I have all my recorded videos on drive e: in the following actual directory
E:\TV
That same folder is shared as:
\\server\TV
How can I get the Webserver to link the video's in the E:\TV folder correctly?
My current paths.properties file has the following:
e:\TV\=http:/video/
My current aliases.properties has the following
from=/;dir=webroot
from=/video/;dir=e:\TV\
Thanks!!!!!!
nielm
12-07-2004, 10:58 AM
all I see in my detailed view is the file path, no download links..
My current paths.properties file has the following:
e:\TV\=http:/video/
If you are not seeing links then it is most likely that your video file path does not match the entry in paths.properties...
The part before the = in paths.properties must exactly match the first part of the video file path as shown in the detailed info screen.
Stuntman
12-07-2004, 02:44 PM
If you are not seeing links then it is most likely that your video file path does not match the entry in paths.properties...
The part before the = in paths.properties must exactly match the first part of the video file path as shown in the detailed info screen.
That fixed it.. if I reference using the UNC //server/tv/ it now does what it is supposed to do!
Thanks!
gprichardson1
12-07-2004, 04:37 PM
Hi everyone,
Wow, this web browser is awesome! I'mhaving one problem with it that sounds similar to Stuntman's, but I'm not sure. I've got a bunch of recorded shows that I've archived and via SageTV I access them via Media Library & DVD -> Archived Shows Recorded with SageTV. Should I be able to see these via the web browser? Or will I only be able to see things stored in SageTV Recordings?
If I should be able to see them, I'm not sure why I can't. If the web browser isn't designed to look into the archived list, that's cool. Along that line, then, is there a way in SageTV that I can move an archived show BACK into the SageTV Recordings area?
Thanks!
-Gary
jreichen
12-07-2004, 11:14 PM
The log file is reporting that it looks like an HTTP request when you are using HTTPS...
It could be that you are using http links in your paths.properties file!
Some users have reported problems with Firefox, SSL, and using localhost (http://forums.sage.tv/forums/showpost.php?p=69748&postcount=92)
I did the download tests with normal HTTP.
Well that was easy enough, sorry for wasting your time on that one :) You'd think it would complain about not being able to connect rather than download a small file.
Firefox correctly reported the file size of a 1GB file, but for a 3GB file it says "unknown file size." Both play correctly from beginning to end with Windows Media Player 10.
One thing to consider: The text next to the filename says [http], not [https].
Thanks for the tip on Firefox. I had that same problem but my TLS 1.0 was checked. I clicked OK on the Options and it worked after that.
nielm
12-08-2004, 02:18 AM
Or will I only be able to see things stored in SageTV Recordings?
If the web browser isn't designed to look into the archived list, that's cool.The web server only displays what you would see in Sage Recordings, so archived shows are filtered out...
If you have mapped your video directory to a webserver path, just browsing to the directory http://localhost:8080/videos/ will give you a list of all filenames in the video directory (a messy solution but it will work).
I don't know how to un-archive files -- there is no option in SageTV to do this, but IIRC, some users have had success in un-archiving them when they moved the files do a different video directory (following the procedure in the FAQ).
Take care when doing this, as there is the possibility that you will lose the show information for the files and they will appear in the imported video files (but moving the file back, and restoring the wiz.bin should recover the info)...
gprichardson1
12-08-2004, 06:38 AM
Hi Nielm,
Thanks for the info Re: archived shows. I guess I'll just have to re-think where I keep shows from now on.
'nother quick question. In the web interface, if I click on the details of a show from the Program Guide, one piece of info that's missing that'd be a big help is Original Air Date. Basically, that'd tell me if the show is a new show or a repeat. For example, there are two CSI shows on Thu. night on CBS - one at 8pm and the other at 9pm. Can't tell if either or both are new or repeats. It'd be great if that extra bit of info could be included in the show description.
Thanks,
-Gary
AndyS
12-08-2004, 09:02 AM
I second the request for Original Air Date, and also a First-Run/Repeat flag if that's possible.
Andy.
Opus4
12-08-2004, 10:35 AM
I don't know how to un-archive files -- there is no option in SageTV to do this, but IIRC, some users have had success in un-archiving them when they moved the files do a different video directory (following the procedure in the FAQ).
Take care when doing this, as there is the possibility that you will lose the show information for the files and they will appear in the imported video files (but moving the file back, and restoring the wiz.bin should recover the info)...Yes, moving a recording will remove its archived status (and will also remove the Manual Recording status). Here is the FAQ entry mentioning it, but please check the caveats noted at the start of the previous entry. The part about it getting moved to the lib is still a mystery, but deletion of moved files should be fixed in the next release. For now, be sure to set the property seeker/clear_partials_and_unwanted_when_ir_off=false if you plan to move anything.
Back to the webserver... I finally figured out how to get through my firewall & am looking forward to using this access the next time I'm travelling. :goodjob:
- Andy
wexsmith
12-08-2004, 04:16 PM
nielm, thank you for taking the time to make this. There are many times when I'm at work and a friend says, "Hey you have to watch this show!" Now I can just logon and schedule it to record before I forget about it. Ahh yes...and the most important part; my wife will make good use of this.
"She happy, me happy." :nod:
srothwell
12-08-2004, 08:47 PM
Please forgive what is probably stupidity but......
When I installed webserver, I found it a pain in the rear to use port 8080 and have to enter :8080 in the web address. Besides, I thought it would be cool to use the web server for other things like a family home page with silly pictures of the kids, etc.
So, I changed everything to be port 80 so the port doesn't have to be explicitly entered every time. Now, if you enter the address, it just uses the index.html page in the root directory of nielm's server (sage still isn't referenced -- you have to know the exact URL).
What was the purpose of setting port 8080 as the default instead of port 80?
Stacy
mdmint
12-08-2004, 08:47 PM
Sounds like the main missing component has arrived, a great new plugin! :clap: Haven't installed and tested it yet but from the feedback should be a snap.
Question: does anyone know how it'd be possible to use this feature if using Sage and Hibernate? In other words, how to access my Sage Server remotely if Hibernating. For that matter, how to wake the Server up from a Sage Client... :confused:
DynamoBen
12-08-2004, 11:15 PM
8080 is the normal port number for remote access. Most routers have an admin page that is served out on 8080. 80 is generally only used for serving out webpages accessible to the public. The reason why you can't get right to the sage home page even when it is set to port 80 has to do with security. Take a look at the security section in the wiki for this plug-in.
Methius
12-08-2004, 11:47 PM
Well, this plugin works perfect, only one downside:
Since installment, my pc won't go into standby anymore on its own.
Any help on that?
nielm
12-09-2004, 02:40 AM
Since installment, my pc won't go into standby anymore on its own.I cannot think of any reason why the webserver would cause this - if nothing is connecting it should be idle... but then I cannot test it either because my system cannot do S1/S3!
nielm
12-09-2004, 03:18 AM
What was the purpose of setting port 8080 as the default instead of port 80?I already had a webserver running at port 80, so needed to use another port, and from the logs, I get frequent hack attempts with people trying buffer overflow attacks, trying to use it as an open proxy, trying to find whats available, trying to access webmail accounts (extract from my logs below)... Moving it to a less frequently attacked port was just an extra security consideration.
So, yes 8080 is extra typing, but thats what bookmarks/favorites are for :)
84.112.25.16 - - [25/Sep/2004:00:42:59 +0200] "CONNECT 1.3.3.7:1337 HTTP/1.0" 403 271
195.92.95.37 - - [25/Sep/2004:02:00:39 +0200] "HEAD /icons/apache_pb.gif HTTP/1.0" 200 0
212.89.8.121 - - [25/Sep/2004:12:45:19 +0200] "GET /scripts/nsiislog.dll" 403 -
61.72.49.67 - - [26/Sep/2004:03:20:26 +0200] "GET /scripts/..%255c%255c../winnt/system32/cmd.exe?/c+
212.186.16.149 - - [27/Sep/2004:01:34:03 +0200] "SEARCH /\x90\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb
69.41.168.16 - - [27/Sep/2004:03:35:30 +0200] "CONNECT 69.41.168.16:80 HTTP/1.0" 403 271
202.159.228.131 - - [27/Sep/2004:14:15:07 +0200] "GET /sumthin HTTP/1.0" 403 278
205.177.252.110 - - [27/Sep/2004:14:35:24 +0200] "CONNECT 1.3.3.7:1337 HTTP/1.0" 403 271
nielm
12-09-2004, 03:23 AM
Question: does anyone know how it'd be possible to use this feature if using Sage and Hibernate? In other words, how to access my Sage Server remotely if Hibernating.simple answer: you can't!
For that matter, how to wake the Server up from a Sage Client... :confused:IF the server is on the local network, and supports 'wake up on LAN', then you can run a program to send the 'magic wakeup packet' to ther server to wake it up...
http://gsd.di.uminho.pt/jpo/software/wakeonlan/mini-howto/wol-mini-howto.html
Methius
12-09-2004, 04:43 AM
Nevermind, I reinstalled the plugin, restarted the pc and now it works like a charm!
Thanks for this plugin, great work!
mdmint
12-10-2004, 01:10 AM
Question: does anyone know how it'd be possible to use this feature if using Sage and Hibernate? In other words, how to access my Sage Server remotely if Hibernating.
simple answer: you can't!
I think I've thought of a way it may be done, WOR - wake on ring. Install a cheap modem! Call it first to wake up Server then come in via Internet. (hopefully not via modem :D )
IF the server is on the local network, and supports 'wake up on LAN', then you can run a program to send the 'magic wakeup packet' to ther server to wake it up...
http://gsd.di.uminho.pt/jpo/software/wakeonlan/mini-howto/wol-mini-howto.html
Unfortunately I don't think I can get any of this to work since I'm using hibernate rather than standby but am going to try. Server hardware (like raid controllers) aren't designed to support sleep mode so when I try standby all 8 HDs keep spinning and their 6 cooling fans are going too and PS(s) {redundant} on. BTW comes out & returns to and from hibernate fine for sched recordings so far. :)
nielm
12-10-2004, 01:27 AM
Some systems leave the LAN powered even on hibernate (My EPIA does, even though WOL does not work!)...
srothwell
12-10-2004, 10:33 AM
Hey, Neil,...
I just came home froma trip and found the log file for the webserver had some errors in it. Everything works remotely and I saw no errors, though.
Here is the log..... can you tell what's wrong?
Stacy
[Wed Dec 08 00:01:23 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Wed Dec 08 00:05:41 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Wed Dec 08 00:08:40 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Wed Dec 08 00:10:17 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Wed Dec 08 00:11:22 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 00:11:35 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Wed Dec 08 00:11:36 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 04:07:47 EST 2004] Status-Code 414: Request-URI Too Long
[Wed Dec 08 13:46:00 EST 2004] Status-Code 414: Request-URI Too Long
[Wed Dec 08 15:15:10 EST 2004] Status-Code 414: Request-URI Too Long
[Wed Dec 08 18:50:17 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Wed Dec 08 20:29:57 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 20:30:23 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 20:30:23 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 20:30:50 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 21:15:45 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 21:15:52 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Wed Dec 08 22:59:57 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 23:14:43 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 23:16:29 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Wed Dec 08 23:21:15 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Wed Dec 08 23:21:33 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Wed Dec 08 23:25:03 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 23:26:56 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 23:31:34 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Wed Dec 08 23:43:38 EST 2004] Status-Code 414: Request-URI Too Long
[Thu Dec 09 01:48:00 EST 2004] Status-Code 400: Bad Request(empty)
[Thu Dec 09 01:48:00 EST 2004] Status-Code 414: Request-URI Too Long
[Thu Dec 09 03:12:19 EST 2004] Status-Code 414: Request-URI Too Long
[Thu Dec 09 08:42:55 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Thu Dec 09 08:43:24 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Thu Dec 09 08:43:37 EST 2004] /sage/Recordings: invalid value: 'GetShowExternalID' found for option: sagetv_recordings_sort using defaults
[Thu Dec 09 18:06:31 EST 2004] Status-Code 414: Request-URI Too Long
[Thu Dec 09 21:34:48 EST 2004] IO problem running servlet: java.net.SocketException: Connection reset by peer: socket write error
[Thu Dec 09 23:51:10 EST 2004] Status-Code 414: Request-URI Too Long
[Fri Dec 10 00:59:42 EST 2004] Status-Code 414: Request-URI Too Long
[Fri Dec 10 12:26:35 EST 2004] Status-Code 414: Request-URI Too Long
nielm
12-10-2004, 10:46 AM
turn on access logging and you will see that the bad request/uri too long are hack attempts, like in my post above!
Connection reset by peer is the user cancelling the request while data is being transmitted (I should hide that, it is not really an error)
and invalid value for option means that the sort order in sage.properties or the cookie in the webserver is set to an invalid value, and it is falling back to the default value...
srothwell
12-10-2004, 12:54 PM
turn on access logging and you will see that the bad request/uri too long are hack attempts, like in my post above!
How do you turn on access logging? Tried a forum search but couldn't find it.
nielm
12-10-2004, 01:04 PM
try the docs (http://www.sage-community.org/index.cgi/wiki/WebserverCustomisation) - Advanced server configuration
srothwell
12-10-2004, 01:23 PM
try the docs (http://www.sage-community.org/index.cgi/wiki/WebserverCustomisation) - Advanced server configuration
:rolleyes2
sleonard
12-10-2004, 03:14 PM
Last night I set up the ability to link to recordings from the details page and also setup links to files in other folders as well. I first defined an alias then a path and then added a menu item in menu.properties. This all works great and I am very impressed so I went a little further. Let me give the details first.
Added in alias.properties: from=/MP3;dir=\\192.168.1.4\MP3\
Added in paths.properties: \\192.168.1.4\MP3\=http:/MP3/
Added in menu.properties: MP3's=/MP3/
Like I said before this works perfect and gives me a directory listing of /Sage/MP3/ but I added a basic index.htm to the MP3 folder and now I get that displayed instead of a directory listing. This means A) You could set up a folder purely for a non-Sage related web site :) and B) You could write the index.htm to link to the MP3/Video files using the graphics and other elements from the Sage webserver and avoid the directory listing. :) :)
I want to do B) but I don't know much HTML and thus don't know how to write the code that links to the various files without knowing in advance what those files are.
For example if you were to do this in SageRecordings the current directory listing shows everything including comskip.txt and comskip.vprj files as well as the show.mpg files. I would like to show just the show.mpg files using an index.htm but here I run into the problem that the file links are static and the show.mpg files are being created and deleted constantly. Is there a way to create dynamic links to all the current show.mpg's and not to any other files?
ellweber
12-11-2004, 09:10 PM
I've tried lots of different syntax for aliases and paths but I can't seem to get outside the same computer the web server is on to get to files on a locally mapped network drive.
I just want to use the Sage webserver (great job Niel) to get to some JPEGs that are in a folder on a second computer that I have shared and mapped as "Q:" on my Sage computer. I can access everything on the Sage computer successfully.
Could someone who has succeeded in doing this post some examples of the proper syntax for the aliases.properties and/or paths.properties files.
Thanks,
Lynn
Bandit
12-11-2004, 10:17 PM
I am such a geek! I hit a wi-fi spot while shopping today and programmed my sage from my Palm. Works great using my Palm's Web Pro
OMFG - I didnt even think of that idea...I just got a new Treo Cell phone so I can now program my sage no matter where I am!!!!!!!!!!
atari52oo
12-12-2004, 01:35 PM
After looking through my sage webserver log today I came across this:
[Sat Dec 11 20:08:58 PST 2004] /211.44.124.13 GET /cgi-bin/openwebmail/openwebmail.pl 404| null| Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
[Sat Dec 11 20:09:01 PST 2004] /211.44.124.13 GET /cgi-bin/openwebmail/openwebmail.pl 404| null| Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
[Sat Dec 11 20:09:02 PST 2004] Status-Code 400: Bad Request(empty)
[Sat Dec 11 20:09:02 PST 2004] /211.44.124.13 null null 400| null| null
[Sat Dec 11 21:22:31 PST 2004] /24.131.48.148 GET /scripts/root.exe 404| null| null
[Sat Dec 11 21:22:32 PST 2004] /24.131.48.148 GET /MSADC/root.exe 404| null| null
[Sat Dec 11 21:22:33 PST 2004] /24.131.48.148 GET /c/winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:43 PST 2004] /24.131.48.148 GET /d/winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:44 PST 2004] /24.131.48.148 GET /scripts/..%5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:45 PST 2004] /24.131.48.148 GET /_vti_bin/..%5c../..%5c../..%5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:45 PST 2004] /24.131.48.148 GET /_mem_bin/..%5c../..%5c../..%5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:46 PST 2004] /24.131.48.148 GET /msadc/..%5c../..%5c../..%5c/..Á../..Á../..Á../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:46 PST 2004] /24.131.48.148 GET /scripts/..Á../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:47 PST 2004] /24.131.48.148 GET /scripts/..À/../winnt/system32/cmd.exe 403| null| null
[Sat Dec 11 21:22:47 PST 2004] /24.131.48.148 GET /scripts/..À¯../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:48 PST 2004] /24.131.48.148 GET /scripts/..Á?../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:49 PST 2004] /24.131.48.148 GET /scripts/..5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:51 PST 2004] /24.131.48.148 GET /scripts/..5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:52 PST 2004] /24.131.48.148 GET /scripts/..%5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 21:22:53 PST 2004] /24.131.48.148 GET /scripts/..%2f../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 22:16:11 PST 2004] Status-Code 414: Request-URI Too Long
[Sat Dec 11 22:16:11 PST 2004] /24.80.111.205 null null 414| null| null
[Sat Dec 11 23:39:11 PST 2004] /24.199.122.205 GET /scripts/root.exe 404| null| null
[Sat Dec 11 23:39:11 PST 2004] /24.199.122.205 GET /MSADC/root.exe 404| null| null
[Sat Dec 11 23:39:12 PST 2004] /24.199.122.205 GET /c/winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:12 PST 2004] /24.199.122.205 GET /d/winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:12 PST 2004] /24.199.122.205 GET /scripts/..%5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:13 PST 2004] /24.199.122.205 GET /_vti_bin/..%5c../..%5c../..%5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:14 PST 2004] /24.199.122.205 GET /_mem_bin/..%5c../..%5c../..%5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:15 PST 2004] /24.199.122.205 GET /msadc/..%5c../..%5c../..%5c/..Á../..Á../..Á../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:16 PST 2004] /24.199.122.205 GET /scripts/..Á../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:16 PST 2004] /24.199.122.205 GET /scripts/..À/../winnt/system32/cmd.exe 403| null| null
[Sat Dec 11 23:39:18 PST 2004] /24.199.122.205 GET /scripts/..À¯../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:18 PST 2004] /24.199.122.205 GET /scripts/..Á?../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:19 PST 2004] /24.199.122.205 GET /scripts/..5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:20 PST 2004] /24.199.122.205 GET /scripts/..5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:20 PST 2004] /24.199.122.205 GET /scripts/..%5c../winnt/system32/cmd.exe 404| null| null
[Sat Dec 11 23:39:20 PST 2004] /24.199.122.205 GET /scripts/..%2f../winnt/system32/cmd.exe 404| null| null
Looks like someone is attempting to hack...
Would probably be a good idea for everyone to keep an eye on their logs from time to time.
FYI
nielm
12-12-2004, 03:12 PM
There are countless worms, virus and bored schoolkids constantly trying to hack IP addresses at random with no intelligence behind the attacks...
The one with /scripts/... is Nimda
The one that produces Request URI too long is Code Red...
sleonard
12-12-2004, 04:19 PM
The web server only displays what you would see in Sage Recordings, so archived shows are filtered out...
If you have mapped your video directory to a webserver path, just browsing to the directory http://localhost:8080/videos/ will give you a list of all filenames in the video directory (a messy solution but it will work).
If you put an index.htm inside /videos (in this example) that will display instead of a directory listing. You could create an html doc using the Sage web background and style sheet that links only the current video files. The links would have to be dynamic as the files may be automatically created and deleted (as in tv shows).
Wheemer
12-13-2004, 02:27 PM
I tried to create a shortcut to the webserver like http://userid:password@localhost:8080/sage/home but it doesn't work.
Is there a way to avoid the username and password prompt from my local computers?
Great work btw!
nielm
12-13-2004, 04:27 PM
I tried to create a shortcut to the webserver like http://userid:password@localhost:8080/sage/home but it doesn't work.This will work in everything *EXCEPT* IE (again!) IE blocked user/passwords in URLs because it could be used for URL spoofing, such as of the form: http://www.cnn.com:cnn@sage.tv/... Other more sensible browsers prompt you with an 'Are you sure'
ellweber
12-13-2004, 04:35 PM
Niel or anyone,
I have everything working very well including SSL encrypted user ID and password. This is really a great contribution to the community. I would sure appreciate some help with the below question. Thanks again..........
I've tried lots of different syntax for aliases and paths but I can't seem to get outside the same computer the web server is on to get to files on a locally mapped network drive.
I just want to use the Sage webserver (great job Niel) to get to some JPEGs that are in a folder on a second computer that I have shared and mapped as "Q:" on my Sage computer. I can access everything on the Sage computer successfully.
Could someone who has succeeded in doing this post some examples of the proper syntax for the aliases.properties and/or paths.properties files.
Thanks,
Lynn
Wheemer
12-14-2004, 01:56 AM
I switched to firefox and I am very impressed. So there's still no way to avoid having to click something? I want to set this as my home, but I don't want to have to click something everytime I open the browser.
Thanks, btw, this thing rocks!
nielm
12-14-2004, 02:51 AM
I just want to use the Sage webserver (great job Niel) to get to some JPEGs that are in a folder on a second computer that I have shared and mapped as "Q:" on my Sage computer. I can access everything on the Sage computer successfully.
I hate to say it, but it is in the docs :) (http://www.sage-community.org/index.cgi/wiki/WebserverServingOtherFiles) The only problem that you might be having is that if you run the sageTV service, it cannot access mapped drives at all, and can only access network drives as UNC paths (using \\host\share\) if it is configured to start as a real user (not LocalSystem). (I have just updated the wiki to include this!)
nielm
12-14-2004, 02:53 AM
So there's still no way to avoid having to click something?Nope, not unless you completely turn off authentication!... There is no way in the webserver backend of specifying a set of hosts which do not require passwords...
vBulletin® v3.7.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.