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
mayamaniac
12-13-2005, 09:52 PM
Great update, a lot of nice features. Thanks for all the hardwork, nielm.
Are there any special settings I need to set to get Media Library stuffs to work? Neither WMP, QT, nor VLC plays. It doesn't work on Music and Pictures either. When trying to watch or view a file, nothing happens. VLC opens in the browser, but no picture or sound. Same goes for Music. For pictures, I click on View and I get an Error 404.
I'm not running SSL or HTTPS, just regular webserver. Are there certain ports that needs to be opened on the firewall side? Everything else seems to be working, just all the media stuffs aren't working. Any ideas?
AndyS
12-13-2005, 10:36 PM
Sorry if this has been raised already - I did a search but couldn't find it.
The install went fine - everything basically seems to work properly and I can stream audio and video without a problem.
I went into the EPG and clicked on a show that is currently being recorded. I got the following message "Unknown airing/media file ID passed".
Any ideas?
Andy.
nielm
12-14-2005, 04:14 AM
Are there any special settings I need to set to get Media Library stuffs to work? Neither WMP, QT, nor VLC plays. It doesn't work on Music and Pictures either. When trying to watch or view a file, nothing happens. VLC opens in the browser, but no picture or sound. Same goes for Music. For pictures, I click on View and I get an Error 404.
It should be automatic
Things to check:
You are running it on the server (not a remote client)
When you unpacked, you updated Sagetv/webserver/servlets.properties (it should contain at the last 2 lines:
servlet./sagepublic/MediaFile.code=net.sf.sageplugins.webserver.MediaFileServlet
servlet./sagepublic/PlaylistGenerator.code=net.sf.sageplugins.webserver.PlaylistGeneratorServlet
Whats the URL that is generating the 404 error?
nielm
12-14-2005, 04:14 AM
The install went fine - everything basically seems to work properly and I can stream audio and video without a problem.
I went into the EPG and clicked on a show that is currently being recorded. I got the following message "Unknown airing/media file ID passed".Congratulations: You have found a NEW BUG!!
You prize is: a free upgrade (please allow a few days for delivery!
:)
jimmyb
12-14-2005, 10:09 PM
I am confused. I thought if we have Sage TV Services running we could access Sage thru the Webserver without having Sage running?
mkanet
12-14-2005, 10:23 PM
Any chance somebody could please help me?
I need a little bit of help getting it to run in SSL mode.
In the Wiki documentation, it says to:
Set the property nielm/webserver/port=8443
Set the property nielm/webserver/ssl_args= with arguments from the following list
-keystoreFile (default %HOME%/.keystore
-keystorePass (default 123456)
-keystoreType (default JKS)
-algorithm (default SunX509)
-clientAuth (default false)
-port (default 8443)
-protocol (default TLS)
-backlog (default 1000)
-ifaddress (default none)
There is no sample provided for the ssl_args= command-line.
Can somebody please confirm that the below syntax is correct?
ssl_args= -keystoreFile %HOME%/.keystore, -keystorePass 123456
Also, the web pages I go to that are secure use port 443. Why is the
default port set to 8443? If I set it to 443, can I point my web browser to:
https://localhost/sage/Home (https://localhost:8443/sage/Home)
I'm guessing when typing HTTPS in the web browser, its not needed to also specify a port #. Right?
Thanks in advance!
gplasky
12-15-2005, 06:50 AM
I am confused. I thought if we have Sage TV Services running we could access Sage thru the Webserver without having Sage running?
Who said you couldn't? This is how mine is setup. Just running Sage service and I access the Webserver and mark programs to record all the time, see what is recording, etc.
Gerry
jimmyb
12-15-2005, 08:08 PM
Thanks for your reply Gerry. That is what I thought I USED to do. Now what would cause it to stop? I can only log on when Sage is runing or sleeping.
gplasky
12-15-2005, 09:11 PM
Are you sure you running the service? Do you have it logging in with a user and a password and NOT as a local service? If you log in as a local service did you tell the service it can interact with the desktop? I have user name and password and no issues.
Gerry
Thomas Wischgol
12-15-2005, 11:36 PM
After upgrading to version 4.1.3 the menus of the web server do not work anymore. I only get a message "error in menu_items.js: check syntax". I checked the file and it looks okay to me. Is there anybody else having this problem?
Thomas
rickgillyon
12-16-2005, 01:31 AM
I only get a message "error in menu_items.js: check syntax".
What browser are you using?
Is it up-to-date?
You tried a reinstall?
nielm
12-16-2005, 02:17 AM
Thanks for your reply Gerry. That is what I thought I USED to do. Now what would cause it to stop? I can only log on when Sage is runing or sleeping.
This suggests that either
you are *not* running the service...
or
you have configured the webserver in SageClient.properties (used by the GUI frontend in service mode), not in Sage.properties (used by the service)
or
you ahve configured it on both, with different ports, and are using the wrong port.
or
the service is failing to start...
Run SageTV Service control app and see what the status is.
Or right click My Computer -> Manage -> Services+apps -> Services -> SageTV and check the status...
The GUI front end should auto-start the service if it is enabled...
jimmyb
12-16-2005, 06:45 AM
After upgrading to version 4.1.3 the menus of the web server do not work anymore. I only get a message "error in menu_items.js: check syntax". I checked the file and it looks okay to me. Is there anybody else having this problem?
Thomas
Rick if you read my previous posts up on the previuos page, I had the same problem. I was entering ......sage/home/ instead of ......sage/home (no trailing slash). Simple fix but was operator error.
jimmyb
12-16-2005, 07:12 AM
Nielm - I guess it is working ... but :)
I have Sage.prop at port 8080 and per our previous discussions the Client.prop setup at 8090. I also purchased a Client license (if this effects anything).
With services running and Sagetv closed I can log on as 8080 and see all BUT I cannot watch Live TV (control Sage / Play TV) as I can when I log on using the Client port. When I log on as Client port 8090 I get an error message .." The connection was refused when attempting .........."\
If Sage is running I can then log on with client port 8090 and all works well including the Play TV feature. Is this the way it works?
Thomas Wischgol
12-16-2005, 08:18 AM
What browser are you using?
Is it up-to-date?
You tried a reinstall?
I tried it with Mozilla and Internet Explorer, both are up-to-date. I reinstalled the webserver but this did not change anything. The only thing I noticed is that if I put additional html files into the webroot folder I only get an empty body when I try to access it through a web browser.
I checked the log files this morning and found this message:
Server socket: java.net.BindException: Address already in use: JVM_Bind
I get this message every time I restart Sage after I upgraded. This sounds like some kind of conflict somewhere but I do not really have an idea what it might be at this point. Any ideas?
Thanks,
Thomas
Thomas Wischgol
12-16-2005, 08:33 AM
I checked the log files this morning and found this message:
Server socket: java.net.BindException: Address already in use: JVM_Bind
I get this message every time I restart Sage after I upgraded. This sounds like some kind of conflict somewhere but I do not really have an idea what it might be at this point. Any ideas?
I just checked the processes that use port 8080 and it was SageTVServer. I enabled service mode during my last install and it seems to have copied to config files so that both the server and the client tried to start the webserver. After adjusting this issue, however, I still get the same error messages
Thomas
mkanet
12-16-2005, 09:30 AM
I'm not sure what's going on. Can people see my posts here in this thread? Or perhaps nobody subscribed to this thread has answers to my questions about enabling SSL? I don't think my questions were that complicated. I already tried my best to figure this out on my own and through Wiki documentation...
Would somebody be kind enough to please help?
I need a little bit of help getting it to run in SSL mode.
In the Wiki documentation, it says to:
Set the property nielm/webserver/port=8443
Set the property nielm/webserver/ssl_args= with arguments from the following list
-keystoreFile (default %HOME%/.keystore
-keystorePass (default 123456)
-keystoreType (default JKS)
-algorithm (default SunX509)
-clientAuth (default false)
-port (default 8443)
-protocol (default TLS)
-backlog (default 1000)
-ifaddress (default none)
There is no sample provided for the ssl_args= command-line.
Can somebody please confirm that the below syntax is correct?
ssl_args= -keystoreFile %HOME%/.keystore, -keystorePass 123456
Also, the web pages I go to that are secure use port 443. Why is the
default port set to 8443? If I set it to 443, can I point my web browser to:
https://localhost/sage/Home (https://localhost:8443/sage/Home)
I'm guessing when typing HTTPS in the web browser, its not needed to also specify a port #. Right?
Thanks in advance!
ellweber
12-16-2005, 10:32 AM
This is what my Sage Client Properties file contains:
nielm/webserver/aliases_file=aliases.properties
nielm/webserver/backlog=
nielm/webserver/bind_address=
nielm/webserver/cgibin_dir=
nielm/webserver/charset=UTF-8
nielm/webserver/enableSageEncoderOpts=false
nielm/webserver/log_access=false
nielm/webserver/log_referrer=false
nielm/webserver/log_user_agent=false
nielm/webserver/port=443
nielm/webserver/realms_file=realms.properties
nielm/webserver/root=webserver
nielm/webserver/sage_recordings_includes_archived_files=true
nielm/webserver/servlets_file=servlets.properties
nielm/webserver/session_timeout=
nielm/webserver/ssl_args=-keystoreFile .keystore
nielm/webserver/throttles_file=throttles.properties
nielm/webserver/use_ssl=true
nielm/webserver/video_path_translation_file=paths.properties
This is a working intallation with SSL. The .keystore file is located in C:\Program Files\SageTV\SageTV
I just followed the documentation and particularly the .keystore generation proceedure found here: http://www.sage-community.org/index.cgi/wiki/WebserverSsl
Also, you might want to consider extending the validity beyend 900. I fell into that trap for few hours once!
Hope this helps a little.
Lynn
mkanet
12-16-2005, 10:41 AM
Thank you Lynn! It looks like I have enough information now. It also looks like your config uses the standard port 443 verses 8443. I'm guessing its as simple as pointing a webbrowser to:
https://localhost/sage/Home (https://localhost:8443/sage/Home) ???
So currently, the only way to make this work is with an "unsigned certificate"?
Thanks again for helping!! :)
gplasky
12-16-2005, 11:06 AM
Thank you Lynn! It looks like I have enough information now. It also looks like your config uses the standard port 443 verses 8443. I'm guessing its as simple as pointing a webbrowser to:
https://localhost/sage/Home (https://localhost:8443/sage/Home) ???
So currently, the only way to make this work is with an "unsigned certificate"?
Thanks again for helping!! :)
Also keep this in mind: Note: Setting the port number in both "nielm/webserver/port=" and "nielm/webserver/ssl_args=" can cause the webserver to not respond. Try to just set the port using the "nielm/webserver/port=" line when using SSL.
Gerry
rickgillyon
12-16-2005, 11:21 AM
I'm not sure what's going on. Can people see my posts here in this thread?
Who said that? :D
nielm
12-16-2005, 12:24 PM
I have Sage.prop at port 8080 and per our previous discussions the Client.prop setup at 8090.
...
With services running and Sagetv closed I can log on as 8080 and see all BUT I cannot watch Live TV (control Sage / Play TV) as I can when I log on using the Client port. When I log on as Client port 8090 I get an error message .." The connection was refused when attempting .........."\
If Sage is running I can then log on with client port 8090 and all works well including the Play TV feature. Is this the way it works?yep.
The webserver running in the server/service on port 8080 cannot control the client (as it is a separate process)
The webserver running in the client on port 8090 needs the client to be running for it to be running :)
Homebuilder
12-16-2005, 04:01 PM
I had trouble accessing from the internet, I found a way that worked for me...I added :8080 to the address line
So instead of xxx.xxxxxxxx.net/sage/home
I used xxx.xxxxxxxx.net:8080/sage/home
I am behind a linksys router..not sure if thats why... but it now works.
Homebuilder
12-16-2005, 04:10 PM
Hi,
Got my server up and running, yippie!!!
Really looking forward to exploring this more... Quick question, request or bug submission...
I put alot of files in my import folders....divx movies, tv series in divx... any way to just browse all items in folders? will it support folder in folder browsing?
When I do a search, my files do all come up, but so does all of my hauppauge inputs..example:
Hauppauge WinTV PVR PCI II Capture #2 Composite Fri, Dec 16
6:03 PM - 6:03 PM -
Hauppauge WinTV PVR PCI II Capture #2 Composite Fri, Dec 16
6:03 PM - 6:03 PM -
Hauppauge WinTV PVR PCI II Capture #2 Composite_2 Fri, Dec 16
6:03 PM - 6:03 PM -
Hauppauge WinTV PVR PCI II Capture #2 Composite_2 Fri, Dec 16
6:03 PM - 6:03 PM
etc etc etc etc...
This is an awesome plug in just as it is. If it is possible to browse files and folders like in windows, that would be great, if not, is it possible to not have tuner inputs show on searches?
Thanks again for a great tool!
mkanet
12-17-2005, 10:45 AM
I followed the instructions on Wiki PERFECTLY. I quadruple checked the steps to make sure I have no errors. I checked my browser settings for SSL and recreated .keystore several times.
I even tried to do it the way mentioned above (putting keystore file in sage dir). I immediately get the error popup below:
So, what am I doing wrong? I'm pulling my hair out trying to figure out why following the directlons EXACTLY doesnt work.
PLEASE help. I'm completely stuck!
EDIT: I about to just give up. I tried it one last time and everything started working!!! Maybe something got stuck who knows? Lesson learned: Following directions PERFECTLY does work :D
mkanet
12-17-2005, 11:29 AM
Okay, I found out the problem. But I need help to solve the problem:
If I use port 8443 (or ANY other port except for 443), I am able to login via SSL.
However, if I change "nielm/webserver/port=8443" to "nielm/webserver/port=443", the web browser acts as if there is no server to be found.
Would having IIS installed complicate things? I disabled IIS, but still got a message saying unable to connect.
gplasky
12-17-2005, 01:37 PM
Port 443 is also used by RPC. Do you remote desktop into that machine?
Gerry
mkanet
12-17-2005, 01:52 PM
Yes, I remote control to my machine.
Hmm.. that's strange, the remote control port that I had to open up on my router was 3389 in order for Remote Desktop to work. Are you "sure" what you're saying is true?
gplasky
12-17-2005, 05:02 PM
Yes, I remote control to my machine.
Hmm.. that's strange, the remote control port that I had to open up on my router was 3389 in order for Remote Desktop to work. Are you "sure" what you're saying is true?
Sorry-my mistake. Another source just listed it as RPC over HTTP. That port is used for Exchange.
TCP Port 443 - HTTPS HTTP SSL
TCP Port 443 - HTTPS World Wide Web Publishing Service
TCP Port 443 - HTTPS SharePoint Portal Server
TCP Port 443 - RPC over HTTP Exchange Server 2003
Those are the default uses of that port by Microsoft. I'm assuming you're not running Sharepoint on that server either.
Gerry
mkanet
12-17-2005, 05:06 PM
I dont have Sharepoint, Frontpage extensions for authoring, nor exchange.
Edit: Opps.. Well, I have IIS running, with the WWW publishing service for http... It looks like XP's SSL service it turned off and set to manual
Last Edit: I'm going to run a port scan to see if there's something using 443 currrently. I'm not sure if this is the case, but makes most sense to me. I have a gut feeling it's somehow related to IIS (even though XP SSL service it not active).
Whatever it is, ONLY port 443 isn't allowed and gives the error.
nielm
12-18-2005, 05:07 AM
command line tool for displaying which process is using which port on Windows:
http://www.diamondcs.com.au/openports/
mkanet
12-18-2005, 10:16 AM
The openports tool worked perfectly! Now we know that having a default/typical install of IIS running in the background will use port 443.
---------- Output.txt----------------------------------------
inetinfo.exe [1648]
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1031 0.0.0.0:0 LISTENING
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING
TCP 0.0.0.0:21 0.0.0.0:0 LISTENING
UDP 0.0.0.0:3456 0.0.0.0:0 LISTENING
--------------------------------------------------------------
Great tool. Thanks guys for helping! :)
Blkhrtd
12-19-2005, 07:59 AM
Neilm, thank you so very much for the time and effort you've put into this project and all the other one's you work on as well. This webserver is excellent. This was the one missing element that my MythTV friends would taunt me with. I was able to download, follow the directions on the Wiki and have it up and running within 10 mins or so. Very nice.
Thank you very much for your time and effort.
-Shadrach
Stuntman
12-19-2005, 09:16 AM
Not a biggie.. was wondering if anybody else sees this..
If I go to 'schedule recordings' then select 'upcoming recordings' I get a list of all upcoming recordings as expected.. if I then hover over 'program guide' the dropdown menu then comes down BUT the 'for encoder' dropdown on the recording schedule screen seems to overlay the 'program guide' menu...
See the attached image...
2945
Is there a workaround for this? It certainly isn't a show stopper, but thought I'd mention it!
nielm
12-19-2005, 10:36 AM
its a bug in IE :(
Workaround: use a better browser (Firefox/Opera!)
Stuntman
12-19-2005, 10:56 AM
its a bug in IE :(
Workaround: use a better browser (Firefox/Opera!)
:)
Yeah, I use both (there are still some places that FireFox just doesn't cut it with, thought it's Microsoft's fault as most site developers develop for IE functionality, right or wrong!) I'm using IE7's beta too.. so it doesn't appear to be something they have fixed, or plan to fix...
mkanet
12-20-2005, 04:47 PM
Is there a way to change "Today PrimeTime" and "Tomorrow PrimeTime" to start from 8pm instead of 6pm? I couldnt find any information on this on Wiki.
Alfiegerner
12-20-2005, 07:34 PM
Can anyone help me debug this? I've reverted back to 2.28 temporarily to try and get everything stable for a bit and now can't seem to get the webserver running. I've followed the trouble shooting guide but am getting no logs.
These are the exceptions displayed by the debug console:
Wed 12/21 2:28:47.781 (Retryable)Error communicating with encoding server:java.i
o.EOFException
Wed 12/21 2:28:48.504 Exception in thread "Startup-net.sf.sageplugins.webserver.
StartServer" Wed 12/21 2:28:48.504 at net.sf.sageplugins.sageutils.SageApi.
Api(SageApi.java:17)
Wed 12/21 2:28:48.505 at net.sf.sageplugins.sageutils.SageApi.StringApi(SageAp
i.java:85)
Wed 12/21 2:28:48.505 at net.sf.sageplugins.sageutils.SageApi.GetProperty(Sage
Api.java:130)
Wed 12/21 2:28:48.505 at net.sf.sageplugins.webserver.StartServer.run(StartSer
ver.java:28)
Wed 12/21 2:28:48.505 at java.lang.Thread.run(Unknown Source)
nielm
12-21-2005, 02:11 AM
Is there a way to change "Today PrimeTime" and "Tomorrow PrimeTime" to start from 8pm instead of 6pm? I couldnt find any information on this on Wiki.edit the menu_items.js -- they are just saved URLs in the menu file -- just change the '18' to '20':
[
'Today PrimeTime',
'EpgGrid?starthr=18',
{
'title' :'Show the EPG Grid view for today at 18:00h'
}
],
[
'Tomorrow PrimeTime',
'EpgGrid?starthr=18&startdate=1',
{
'title' :'Show the EPG Grid view for tomorrow at 18:00h'
}
],
nielm
12-21-2005, 02:22 AM
Can anyone help me debug this? I've reverted back to 2.28 temporarily to try and get everything stable for a bit and now can't seem to get the webserver running. I've followed the trouble shooting guide but am getting no logs.
The logs you give are very odd -- the webserver code is failing to call Sage API functions on startup so it fails to start...
Is sage 2.2.8 working at all ? Did you uninstall the previous version before reverting?
Alfiegerner
12-21-2005, 02:48 AM
Hi nielm, thanks for the response.
Yeah apart form the webserver its working fine. If its an unfamiliar exception I wouldn't worry about it too much - I've done so much installing / uninstalling of all sorts of apps lately its probably something in my setup. Also, as soon as I get back tonight I'll be installing the latest 4.14 beta as I'm desperate to try out the PAL MVP support. I'll let you know how I get on.
Just to let you, when i did have the webserver up and running before I was totally blown away with it. :goodjob: Brilliant bit of software. The only feature request I'd like to see in it is a thumbnail / gallery type set up for the picture imports.
owilsky
12-21-2005, 11:40 AM
I have a strange problem, I cannot add a favourite that is only recorded on a specific day. I try to record "The Simpsons", but only on Saturdays, because that is the newest season. Monday-Friday there are reruns of older seasons.
But I only get this exception whenever I enter a"Saturday":
id:5745103 -- java.lang.reflect.InvocationTargetException: Exception while executing SageApi: "UpdateFavorite" numargs=15
I guess it is not a problem with the webserver, because I am not able to create that favourite within the SageTV GUI, but who knows....
Has anybody else seen this? I also tested it with the original SageTV3.xml without any imports, but no luck...
Alfiegerner
12-21-2005, 04:47 PM
Can anyone help me debug this? I've reverted back to 2.28 temporarily to try and get everything stable for a bit and now can't seem to get the webserver running. I've followed the trouble shooting guide but am getting no logs.
These are the exceptions displayed by the debug console:
Wed 12/21 2:28:47.781 (Retryable)Error communicating with encoding server:java.i
o.EOFException
Wed 12/21 2:28:48.504 Exception in thread "Startup-net.sf.sageplugins.webserver.
StartServer" Wed 12/21 2:28:48.504 at net.sf.sageplugins.sageutils.SageApi.
Api(SageApi.java:17)
Wed 12/21 2:28:48.505 at net.sf.sageplugins.sageutils.SageApi.StringApi(SageAp
i.java:85)
Wed 12/21 2:28:48.505 at net.sf.sageplugins.sageutils.SageApi.GetProperty(Sage
Api.java:130)
Wed 12/21 2:28:48.505 at net.sf.sageplugins.webserver.StartServer.run(StartSer
ver.java:28)
Wed 12/21 2:28:48.505 at java.lang.Thread.run(Unknown Source)
Just in case anyone else gets this problem - a clean install of java sorted it for me, including deleting the whole c:\program files\java directory.
I've been using the webserver for several months now, and just installed the latest version. Very nice! But, I ran into a problem - in the EPG, if I choose a program, "Play in SageTV" doesn't show up, (the first choice is "Record") and the web remote errors out with "Webserver running in Service mode -- cannot execute any commands". What am I missing?
Thanks,
Rob
nielm
12-23-2005, 01:18 AM
If you are using service mode, the webserver cannot control the front-end because it is a separate process.
You need to configure the webserver *also* in the sageclient.properties using a different port to control the client front-end... (this is in the wiki docs somewhere)
I'll read the docs. Seems strange though - SageTV service control shows Service State: Stopped. I never ran Sage as a service.
Rob
ToxMox
12-23-2005, 05:54 AM
robk I'm curious. What version of Sage are you running?
jreichen
12-23-2005, 05:58 AM
I'm having the same problem and am not running as a service. 'Currently watching' doesn't show up on the home page either.
Nielm: I found that 'GetAllWidgets' is returning a zero-length array so hasUI is false.
Sage 4.1.3.67. Webserver 2.3
Toxmox-
I'm running 4.1.3.67, installed over previous version, saved old sage.properties and wiz.bin .
Rob
nielm
12-23-2005, 07:36 AM
Ok.. looks like the webserver needs an update to be able to control the front-end on v4.1...
I did suspect this during the beta of 4.1, but have not yet had time to do a fix, and will probably not be able to do anything before mid Jan... (haven't even had time to upgrade my own system to 4.1!)
It's related to the way a single Sage process has to handle multiple front-ends for MVPs -- if anyone cares, you have to call GetUIContextNames() and then instead of the Java API call: sage.SageTV.api() you have to call sage.SageTV.apiUI(String uiContext, String method, Object[] args)...
I'm sure it will be worth the wait! Thanks for a great add-on to Sage. Have a Happy Holiday!
Rob
I'm sure this is something very obvious I've missed, but I sure can't find it. I did an install of Sage 4.1.3.67, I have Java version 1.5.0_06, and I'm not running Sage as a service. I also didn't do my install on the standard C drive/path. I ran through teh instructions on http://www.sage-community.org/index.cgi/wiki/WebserverInstall (though many of them were skipped because it wasn't an upgrade, and I wasn't installing on a Client). Upon starting SageTV, the web service never starts. That took me to the troubleshooting (http://www.sage-community.org/index.cgi/wiki/WebserverTroubleShooting) page. I verified taht nothing is on port 8080, and I have no log directory at all. I redid the load_at_startup line several times (without spaces), but after starting Sage, my entries are automatically removed [is that normal?].
I didn't have servlets.jar under my Java install directory (It didn't say to anywhere in the install doc as far as I could tell!), but after reading that part, I placed a copy of that (as well as all other JARs in my Sagetv/jars directory... you can never be too safe) into the proper Java....lib/ext dir. No change.
I have *no* !Acme/ or net/ directories at all, nor do I have any class files anywhere that I know of. They wern't in the install file either, unless I'm supposed to unpack those jar files or something....
I do have a webserver directory under SageTV/ with all the .properties files in there.
Running from a command line, I get the follwoing message:
Exception in thread "main" java.lang.NoClassDefFoundError: Acme/Serve/Serve
So where am I supposed to get the missing files/directories from?
Also note - I haven't yet installed my video capture card yet. Is that the answer to my problem?
Ok... I extracted the .jar files (maintaining the directory structure) into my SageTV directory. Starting it from the command prompt now works, but SageTV still doesn't appear to attempt to start it (and still removed my load_at_startup... entry on startup). Do I just need to move the new folders/files (javax, net, Acme) somewhere else? Should I have installed something previously that would have taken care of all of this for me? It all sounded so simple, yet I'm so lost...
gplasky
12-31-2005, 05:02 PM
If you're modifying the properties file and losing those changes you're either running the service and haven't stopped it or you're putting Sage to sleep in the system tray and not actually quitting Sage. Quit Sage.
Gerry
Thanks - that was exactly it. I know I asked it not to run as a service, but none the less, I had the service still running aftr I quit Sage. Stopping the service & reapplying the mod to the properties file solved my problem.
Next question - Is it possible to run this website under IIS instead of it's own site? Having only one port accessable through the firewall at work, it would be nice to have everything running on port 80 (not just the Sage things). I can do it using a proxy redirector if needed, but would like to avoid taht if possible.
Thanks for the quick help!
DRM2PVR
01-03-2006, 03:58 PM
I am having similar issues as those listed above when installing on a fresh build of Sage 4. I have installed the webserver in the past easily but it looks like the installation instructions have changed. Is this all that is required now?
Installation from (http://www.sage-community.org/index.cgi/wiki/WebserverInstall):
1. Download and unzip Webserver_2_3 into c:\Program Files\SageTV\SageTV\
--This places nielm_sageutils.jar, nielm_sagewebserver.jar & servlet.jar into c:\Program Files\SageTV\SageTV\JARs\* as well as adding the new directory of c:\Program Files\SageTV\SageTV\webserver
2. Stop Sage and Edit c:\Program Files\SageTV\SageTV\Sage.properties file adding:
load_at_startup_runnable_classes=net.sf.sageplugins.webserver.StartServer
3. Start sage and navigate to:
http://localhost:8080/sage/Home
After running through the above, the webserver didn't start. I double checked that the Sage.properties entry remained after restart as well as having no spaces. I get the following error when trying to start the server.
C:\Program Files\SageTV\SageTV>java -cp . Acme.Serve.Serve -p 8080
Exception in thread "main" java.lang.NoClassDefFoundError: Acme/Serve/Serve
Additionally,
I have tried copying all the jar files into my Java directories, manually unpacking the jar files to create the ACME and net directories within /Sage/ all to no avail.
I can manually start the server from the command line successfully, but not with sage. When I "Q" to exit the command line server, the following log is genereated.
[Tue Jan 03 18:16:15 PST 2006] Accept: java.net.SocketException: socket closed
For now, I have returned my Sage install back to normal with no /ACME/ directory or references in the /net/sf/ to sageutils or webserver. I still have the jar files in my java's ext directory and the webserver, JARs directory in sage.
Any ideas?
UniKyrn
01-04-2006, 08:57 AM
I've searched this thread to see if had been requested before, and didn't see it, so ...
Would it be possible to add markers and command triggers for commercial detection (comskip) to the Sage Recordings display?
Mahoney
01-04-2006, 09:26 AM
Next question - Is it possible to run this website under IIS instead of it's own site? Having only one port accessable through the firewall at work, it would be nice to have everything running on port 80 (not just the Sage things). I can do it using a proxy redirector if needed, but would like to avoid taht if possible.
Until Nielm gets back to you - the short answer is no. Have a look here for the reasons:
http://forums.sagetv.com/forums/showthread.php?p=113044&highlight=IIS#post113044
dblaine2
01-11-2006, 08:49 AM
Hi Nielm,
I have your latest web server installed and I am trying to setup multiple users per the wiki. So using the example of admin and guest, I logon using guest but I am able to make changes which shouldn't happen. What am I doing wrong?
Here is my realms file:
# Username/passwords for protected web pages
# Format:
# Prompt=/path,user:password
# multiple users/passwords can be given for the same prompt/path
#
SageTV Web Interface=/sage,guest:guest
SageTV Web Interface=/sage,admin:admin
# Example customsation
# The following lines protect pages that perform actions
# with different username/password, giving 2 levels of
# priviledge: read-only and read-write
# these must be put before the top level user/password for them
# to take effect.
#
#SageTV Web Actions=/sage/Command,write:only
#SageTV Web Actions=/sage/AiringCommand,write:only
#SageTV Web Actions=/sage/ManualRecord,write:only
#SageTV Web Actions=/sage/ResolveConflict,write:only
#SageTV Web Actions=/sage/TimedRecord,write:only
SageTV Web Actions=/sage/Command,admin:admin
SageTV Web Actions=/sage/AiringCommand,admin:admin
SageTV Web Actions=/sage/ManualRecord,admin:admin
SageTV Web Actions=/sage/ResolveConflict,admin:admin
SageTV Web Actions=/sage/TimedRecord,admin:admin
My Pictures=/pictures,guest:guest
# note that there is now a url defined in servlets.properties
# defined as /sagepublic/MediaFile
# this should be left unprotected to allow media players to play
# files without specifying a username/password.
dblaine2
01-11-2006, 09:23 PM
Nielm,
Another question that I was wondering... I have SageEncoder setup and working. Would it be possible to change the HTTP link that you have on the webserver to point to the WMV or DIVX output from SageEncoder instead of the MPEG file? How could that be done? I am already assuming that SageEncoder would be set to output to the same directory as the original MPEG video files.
nielm
01-12-2006, 05:07 AM
Another question that I was wondering... I have SageEncoder setup and working. Would it be possible to change the HTTP link that you have on the webserver to point to the WMV or DIVX output from SageEncoder instead of the MPEG file? How could that be done? I am already assuming that SageEncoder would be set to output to the same directory as the original MPEG video files.it would have to be a change in the Java code... I will add it to the todo list, but it will not be a priority...
nielm
01-12-2006, 05:22 AM
Hi Nielm,
I have your latest web server installed and I am trying to setup multiple users per the wiki. So using the example of admin and guest, I logon using guest but I am able to make changes which shouldn't happen. What am I doing wrong?
Works fine for me... (opera and IE)
Which action were you doing?
Note that your browser may be remembering and reusing the admin:admin login from a previous logon -- make sure that you close/reopen the browser to clear the logon cache before logging on as a different user.
Note also that there are some commands missing from the list in the realms file -- for 'proper' protection, you also need the following paths protected:
SageTV Web Actions=/sage/MediaFileCommand,admin:admin
SageTV Web Actions=/sage/ForceEpgUpdate,admin:admin
SageTV Web Actions=/sage/EditShowInfo,admin:admin
SageTV Web Actions=/sage/EncodeCommand,admin:admin
SageTV Web Actions=/sage/FavoriteCommand,admin:admin
nielm
01-12-2006, 05:26 AM
I've searched this thread to see if had been requested before, and didn't see it, so ...
Would it be possible to add markers and command triggers for commercial detection (comskip) to the Sage Recordings display?its possible, but I don't use comskip so it is very low priority :) If anyone wants to add it, do it in a similar way to sage encoder and send me the updated java files :)
dblaine2
01-12-2006, 06:43 AM
Works fine for me... (opera and IE)
Which action were you doing?
Note that your browser may be remembering and reusing the admin:admin login from a previous logon -- make sure that you close/reopen the browser to clear the logon cache before logging on as a different user.
Note also that there are some commands missing from the list in the realms file -- for 'proper' protection, you also need the following paths protected:
SageTV Web Actions=/sage/MediaFileCommand,admin:admin
SageTV Web Actions=/sage/ForceEpgUpdate,admin:admin
SageTV Web Actions=/sage/EditShowInfo,admin:admin
SageTV Web Actions=/sage/EncodeCommand,admin:admin
SageTV Web Actions=/sage/FavoriteCommand,admin:admin
OK, I have added all the actions (thanks), restarted the webserver and flushed the IE's cache, but the guest account is still able to do all the actions.
dblaine2
01-12-2006, 06:54 AM
DOH! I'm such a dunce! The order in the file matters (of course you didn't catch it either so I feel better:D ). Its working now.:jump:
nielm
01-12-2006, 07:24 AM
you know, i actually read that line in realms.properties, and wondered 'is this really correct?' I guess it is :D
nielm
01-12-2006, 09:08 AM
New version V2.4 Dec 11 2006 -- Sage 4.1 and higher required
For SageTV 4.1 and later only
BUGFIX: Removed 'null' menu items
BUGFIX: Channel logos default to enabled
BUGFIX: Fixed webremote and Sage command functionality for v4.1
ENHANCEMENT: Added now playing info for media extenders
ENHANCEMENT: Added WebRemote for media extenders (click the extender name in the Home page)
ENHANCEMENT: Added Show marker icons to show display (optional default=on)
ENHANCEMENT: Added File size indication to show display (optional default=on)
ENHANCEMENT: Added Episode ID to show display (optional - default=off)
ENHANCEMENT: Fallback menu for browsers that support JavaScript but not JavaScript DOM (eg Pocket IE)
BUGFIX: Added more protected paths for write:only user.
ENHANCEMENT: Added support for picture/album/mediafile thumbnails
dblaine2
01-12-2006, 10:38 AM
ENHANCEMENT: Added support for picture/album/mediafile thumbnails
Man I wish you could back port this enhancement for older Sage revs.....
rickgillyon
01-12-2006, 10:41 AM
Man I wish you could back port this enhancement for older Sage revs.....
Out of interest, why would you not use the latest ver?
bcjenkins
01-12-2006, 10:52 AM
Next question - Is it possible to run this website under IIS instead of it's own site? Having only one port accessable through the firewall at work, it would be nice to have everything running on port 80 (not just the Sage things). I can do it using a proxy redirector if needed, but would like to avoid taht if possible.
Thanks for the quick help!
Actually the Sage web server is a web server capable of serving other pages. Not knowing what you use IIS for (any ASP, etc.) you may be able to get it to display your current web content with no real issue.
B
mkanet
01-12-2006, 10:54 AM
Maybe I'm missing something obvious, but I am not seeing any of the Show marker icons except for MarkerFirstRun. For example, none of the HDTV shows display the MarkerHDTV.gif icon. I was only able to see the first run icon when listing the upcoming recordings.
Also, does this enhancement mean that I should also see first run & HDTV icons in the EPG grid like the Standard SageTV Program Guide? If not, is there anyway we could have this added? It's hard to tell which shows are HD format until after I click on the show and read the detailed information.
EDIT: I am able to see some of the new icons if I select "watched shows" from the drop down menus, but still no way to show HDTV icons.
As always, thanks Neilm for adding value to this great addon!
dblaine2
01-12-2006, 10:58 AM
Out of interest, why would you not use the latest ver?
My wife is happy with the Cayars STV in Sage 2.2.8. 'Nuf said.
dblaine2
01-12-2006, 11:02 AM
BTW Nielm its 2006. See the title of the post.
dblaine2
01-12-2006, 11:39 AM
Hi Nielm,
One other thing I noticed in v2.3
I went to Watch (Streamed) content and it brought up the Sage Media Player with a black screen. I clicked on properties and see the Location has no host portion in the URL.
Here is what I see:
https://sagepublic/PlaylistGenerator?Command=Generate&pltype=wvx@fntype=url&MediaFileId=1969932
nielm
01-12-2006, 11:55 AM
ENHANCEMENT: Added support for picture/album/mediafile thumbnails
Man I wish you could back port this enhancement for older Sage revs.....love to -- except that the API for getting thumbnails as a Java image is only available in 4.1 :)
This and the webremote changes lock this version into 4.1... Sorry!
One other thing I noticed in v2.3
I went to Watch (Streamed) content and it brought up the Sage Media Player with a black screen. I clicked on properties and see the Location has no host portion in the URL.
I am also not sure if media players can stream over https links (never used https myself), but it may also be a bug :)
nielm
01-12-2006, 12:00 PM
Maybe I'm missing something obvious, but I am not seeing any of the Show marker icons except for MarkerFirstRun. For example, none of the HDTV shows display the MarkerHDTV.gif icon. I was only able to see the first run icon when listing the upcoming recordings.Some of the icons (archived/manrec/favorite) are only shown for Recorded files, but you should be able to see watched/don't like on search results
I was not able to test HDTV icon because I don't have HDTV (wrong continent!) I am copying the logic from the STV, so it should work just as well (for search results, recsched and recordings)...
Also, does this enhancement mean that I should also see first run & HDTV icons in the EPG grid like the Standard SageTV Program Guide? Not at present
TakeFlight
01-12-2006, 12:15 PM
BTW Nielm its 2006. See the title of the post.
Also, the latest update in the first post shows Dec 11 2006. Wow, we are getting updates from the future now! ;)
dblaine2
01-12-2006, 12:30 PM
love to -- except that the API for getting thumbnails as a Java image is only available in 4.1 :)
This and the webremote changes lock this version into 4.1... Sorry!:)
Hmm I might have to upgrade:blush:
I am also not sure if media players can stream over https links (never used https myself), but it may also be a bug :)
Well I connected to through HTTP and all worked ok. So apparently it won't stream over HTTPS :(
dblaine2
01-12-2006, 02:02 PM
Well nielm it is a bug. I went looking and found this function in player.js:
function MakeAbsoluteURL(clipurl) {
if ( clipurl.match("^[a-z]+://") == null )
clipurl=location.href.substr(0,location.href.indexOf('/',7))+clipurl;
return clipurl;
}
so I had to change
(0,location.href.indexOf('/',7))+clipurl;
to
(0,location.href.indexOf('/',8))+clipurl;
so it would support https...
nielm
01-12-2006, 02:17 PM
Well nielm it is a bug...Bug report -- and bug fix in the same post :D Very cool! :clap:
mkanet
01-12-2006, 02:17 PM
Can comebody PLEASE confirm if the MarkerHDTV.jpg icon is being displayed?
I am able to see all the icons EXCEPT for that one see (Invasion is supposed to have an HD icon):
http://68.126.184.234:8082/public/nohd.jpg
srothwell
01-12-2006, 02:49 PM
New version V2.4 Dec 11 2006 -- Sage 4.1 and higher required
For SageTV 4.1 and later only
BUGFIX: Removed 'null' menu items
BUGFIX: Channel logos default to enabled
BUGFIX: Fixed webremote and Sage command functionality for v4.1
ENHANCEMENT: Added now playing info for media extenders
ENHANCEMENT: Added WebRemote for media extenders (click the extender name in the Home page)
ENHANCEMENT: Added Show marker icons to show display (optional default=on)
ENHANCEMENT: Added File size indication to show display (optional default=on)
ENHANCEMENT: Added Episode ID to show display (optional - default=off)
ENHANCEMENT: Fallback menu for browsers that support JavaScript but not JavaScript DOM (eg Pocket IE)
BUGFIX: Added more protected paths for write:only user.
ENHANCEMENT: Added support for picture/album/mediafile thumbnails
neil,
Thanks! Sorry to sound stupid but where do I turn on the picture thumbnails?
dblaine2
01-12-2006, 03:03 PM
Bug report -- and bug fix in the same post :D Very cool! :clap:
:goodjob: :thumb:
nielm
01-12-2006, 03:08 PM
Thanks! Sorry to sound stupid but where do I turn on the picture thumbnails?
Should be automatically displayed in the Media Library/Search Picture Files results, and in the Detailed Info for each picture...
However, if a thumbnail does not already exist Sage will not display one immediately -- it will generate it in the background, and you will need to refresh the page to see it.
nielm
01-12-2006, 03:11 PM
Can comebody PLEASE confirm if the MarkerHDTV.jpg icon is being displayed?Never mind -- there is a bug in the code which will mean that HDTV icons will never be displayed...
jimmyb
01-12-2006, 03:41 PM
Stopped working! I log on and can do all BUT when I press switch to Web Remote I get and error message showing on screen:
error: No UI context specified
Of course if I press a button I get longer error messages LOL
What do I need to do here?
rickgillyon
01-12-2006, 03:48 PM
I suppose this is a question about Sage in general rather than the webserver, but I'm currently trying to do it in the webserver... :)
Is there a way to disable a favourite? I have a favourite but I have a gazillion shows already recorded, lined up to watch. I don't want to delete it, I just want to disable it for a few weeks until I've caught up, rather than having to recreate.
I know I know, I'm a lazy sod. :blush:
BTW, I'm sure I've said it before, but this webserver is one of Sage's best features (along with favourites). Real geek appreciation factor. Yesterday my boss said "You've got to watch this program, it's great." I said "Hang on," searched my EPG, added it as a favourite, and then told him that my PVR was scheduled to record 11 episodes of this show in the next 14 days (while he looked over my shoulder at work). :clap: He says I'm a geek, but I know he's jealous... :)
Thanks Nielm! :thumb:
BobPhoenix
01-12-2006, 04:01 PM
I suppose this is a question about Sage in general rather than the webserver, but I'm currently trying to do it in the webserver... :)
Is there a way to disable a favourite? I have a favourite but I have a gazillion shows already recorded, lined up to watch. I don't want to delete it, I just want to disable it for a few weeks until I've caught up, rather than having to recreate.
What I do is change the channel to something it will never be on like the Soap Network. Then when I'm ready to record it again I change it back. That channel works well for me because the SciFi channel is the next number higher.
BobP.
jimmyb
01-12-2006, 04:26 PM
While I am trying to get this to work I am also getting frustrated. I guess the best way is to just ask your help.
What settings do I need in my Sage prop and or Sageclient props to be able to control the client using your webserver remote?
Do I load Webserver in the client computer also??
a_puty
01-12-2006, 05:30 PM
Previous to Sage 4.1 I was able to select a current show in the webserver grid view and rather than "Record" I had the option to "Watch". This was no longer working since Sage 4.1. The only function is always "Record" whether the show is currently on or not. I really miss this function...as does the GF. I installed Webserver 2.4 hoping (dare I say expecting?) that this function would be working again but alas it is not. It is entirely possible that it was never broken and I just muffed something up...can anyone confirm this and offer a fix if possible? Much appreciated and thanks for all of the effort from which the rest of us benefit.
Cheers!:goodjob:
lotusvball
01-12-2006, 05:51 PM
I have lost my top menus. See attached. I upgraded to v2.4 from v2.2. I also do not get prompted for user name and password even though it is in realm.properties properly. What did I do wrong. I backed up realms.properties and then replaced it after I unzipped into SageTV directory.
lotusvball
01-12-2006, 05:58 PM
Nevermind I figured it out. Somehow the files did not overwrite when I unzipped them.
ToonGal
01-12-2006, 11:51 PM
New version V2.4 Dec 11 2006 -- Sage 4.1 and higher required
For SageTV 4.1 and later only
BUGFIX: Removed 'null' menu items
BUGFIX: Channel logos default to enabled
BUGFIX: Fixed webremote and Sage command functionality for v4.1
BUGFIX: Added more protected paths for write:only user.
Nielm! Babe! You couldn't have put out a v2.3.1 which had bugfixes for Sage v2.x, first??? :)
Oh well. Always knew at some point v2.x and Cayars were dinosaurs with their day. Was hoping this wasn't the end. If v4.x now a requirement, guess that's the wave of the future.
Thanks for any add'l details, hun!
nielm
01-13-2006, 01:56 AM
Stopped working! I log on and can do all BUT when I press switch to Web Remote I get and error message showing on screen:
error: No UI context specified
What do I need to do here?
How are you switching? Are you clicking on the name of the UI/Extender in the 'Now Playing on...' in the Home screen?
If you are selecting it in the drop-down menu, then you need to merge your modified menu_items.js with the delivered one (I removed the quotes on the "null" items and modified the URL of the webremote).
nielm
01-13-2006, 01:58 AM
What settings do I need in my Sage prop and or Sageclient props to be able to control the client using your webserver remote?
Do I load Webserver in the client computer also??yes.
The webremote can only control the sage process that it the webserver is running in.
nielm
01-13-2006, 02:02 AM
Nielm! Babe! You couldn't have put out a v2.3.1 which had bugfixes for Sage v2.x, first??? :)
Thanks for any add'l details, hun!Well the code is available -- you could always port the fixes back :)
However, if you only want the bugfixes...
BUGFIX: Removed 'null' menu items
-> use the menu_items.js from v2.4
BUGFIX: Channel logos default to enabled
-> enable them manually in 'show Options' in Sage Recordings
BUGFIX: Fixed webremote and Sage command functionality for v4.1
-> Worked fine in Sage 2.2
BUGFIX: Added more protected paths for write-only user
-> use the realms.properties from 2.4
:D
nielm
01-13-2006, 02:10 AM
Previous to Sage 4.1 I was able to select a current show in the webserver grid view and rather than "Record" I had the option to "Watch". This was no longer working since Sage 4.1.Yes -- the changes to support media extenders in SageTV 4.1 broke the 'Play in SageTV' in webserver 2.3... I thought I had fixed this, but there is a bug in my fix -- instead of showing 'Play in SageTV' (or extender) for all media types apart from picture files, it shows it ONLY for picture files (which doesn't work anyway!) -- I missed out a '!' :)
jimmyb
01-13-2006, 01:41 PM
yes.
The webremote can only control the sage process that it the webserver is running in.
Errrrr .. I get no top menu items!!!
jimmyb
01-13-2006, 01:44 PM
How are you switching? Are you clicking on the name of the UI/Extender in the 'Now Playing on...' in the Home screen?
If you are selecting it in the drop-down menu, then you need to merge your modified menu_items.js with the delivered one (I removed the quotes on the "null" items and modified the URL of the webremote).
I click on Home then Web Remote. I thought I did merge however since I did not modify anything (?) I may have just over written it. What should I re-load to fix it if it is broken?
nielm
01-13-2006, 02:06 PM
I click on Home then Web Remote. I thought I did merge however since I did not modify anything (?) I may have just over written it. What should I re-load to fix it if it is broken?
No top menus -- ah I guess you are using a PDA :)
Yep -- another bug in the fallback (non JS) menu:
Workaround:
Click System Information
Click on the words 'Local SageTV instance' (or if you want to web-remote an extender, click on the name of the extender)
Workaround 2:
Edit menu.html (this is where the fallback menu is defined)
Replace:
<h3><a href="webremote.html">Web-Remote</a></h3>
with
<h3><a href="webremote.html?context=SAGETV_PROCESS_LOCAL_UI&contextname=Local%20SageTV">Web-Remote</a></h3>
mkanet
01-13-2006, 04:49 PM
Nielm, I hope I'm not being a pest, but an FYI, I am fairly certain that the "MarkerHDTV.gif" icon not being displayed is a bug. All other new icons are displayed correctly.
I can try to help you any way I can since I know you don't use sagetv for HD.
Yes -- the changes to support media extenders in SageTV 4.1 broke the 'Play in SageTV' in webserver 2.3... I thought I had fixed this, but there is a bug in my fix -- instead of showing 'Play in SageTV' (or extender) for all media types apart from picture files, it shows it ONLY for picture files (which doesn't work anyway!) -- I missed out a '!' :)
I, as I am sure all of us, really appreciate your work on this great utility for Sage. But I'm confused.... will you be fixing the code to bring back "Play in SageTV" from the guide? It is a great feature - While I'm working on my main computer, I can just bring up a browser and log on to change the channel on my Sage setup several feet away - don't have to pick up the remote.
Thanks for your hard work!
Rob
nielm
01-14-2006, 06:47 AM
mkanet: yes I know - I found the bug with code-reading.
robk: yes I will fix it to bring back 'play in SageTV'
jimmyb
01-14-2006, 07:05 AM
No top menus -- ah I guess you are using a PDA :)
Yep -- another bug in the fallback (non JS) menu:
Workaround:
Click System Information
Click on the words 'Local SageTV instance' (or if you want to web-remote an extender, click on the name of the extender)
Workaround 2:
Edit menu.html (this is where the fallback menu is defined)
Replace:
<h3><a href="webremote.html">Web-Remote</a></h3>
with
<h3><a href="webremote.html?context=SAGETV_PROCESS_LOCAL_UI&contextname=Local%20SageTV">Web-Remote</a></h3>
Sorry Nielm, this is not going well. FYI I am not using a PDA but am using a laptop. That second line is all ready in the menu.html and I do not know where to find the first work around you reference. BTW, the Webserver is working in my server desktop computer (except for no Webremote) but not on the client (laptop) which is the one I need the Webremote to change chanells and such on laptop.
Reload something on client??? Since I only have basic Client loaded it is no biggy.
ldavis
01-15-2006, 03:21 PM
Nielm,
I have lost the Sage Recordings Webpage after experimneting with the "Sage Encoder" extras. I have tried to reinstall but that page still does not work. Additionally the latest version does not work at all. Ver 2.0 works sans the recordings page works ok. I can look at the recordings via the search page so this is kind of minor. Any idea how to fix this problem?
nielm
01-16-2006, 02:47 AM
I have lost the Sage Recordings Webpage after experimneting with the "Sage Encoder" extras. Please define 'lost' and 'does not work at all' -- do you get any error messages etc.
Note that the latest version will only work with Sage 4.1 and higher.
To disable SageEncoder support, set the propertynielm/webserver/enableSageEncoderOpts=falsewhile Sage is shut down.
nielm
01-16-2006, 03:32 AM
Sorry Nielm, this is not going well. FYI I am not using a PDA but am using a laptop. That second line is all ready in the menu.html and I do not know where to find the first work around you reference. BTW, the Webserver is working in my server desktop computer (except for no Webremote) but not on the client (laptop) which is the one I need the Webremote to change chanells and such on laptop.
Reload something on client??? Since I only have basic Client loaded it is no biggy.
Rewinding a little. Please check my assumptions below and correct any of them if they are wrong.
You are running a Sage Client on a laptop.
You are using Sage V4.1 (the latest webserver 2.4 only works on sage 4.1 or higher)
You have setup the webserver on the laptop client.
You are using a normal recent web-browser (IE/Firefox/Opera/Safari/etc) and you connect to
http://laptopaddress:8080/sage/
When you do this, you do Not get the 'System information' screen (showing current recordings, currenly watching, disk space, epg info etc), but you do get a very basic 'Sage Main Menu' menu screen listing a
You also get no menu bar at the top.
If this is the case it is very odd -- the only time this screen should be displayed is if you have javascript disabled, or are using a browser that does not support recent Javascript functions. Similarly the menu bar should always be displayed unless Javascript is disabled, or not fully supported.
When you click on Web Remote in this menu, you get the webremote screen displayed with an error 'Error: No UI context specified' -- what is the address of this page?
Finally, you mention that you get a longer error if you try to use the webremote -- what is that error?
robgfaulkner
01-16-2006, 03:13 PM
I continuously get Invalid Mediafield/AiringID page warnings. Is my Wiz.bin corrupt? Any way to fix?
-Rob
allen
01-16-2006, 07:47 PM
After reading all the posts about the webserver, I am pretty excited about getting it to work but I just can't seem to get it to work.
I feel like I followed the instructions to the letter and have gone through the troubleshooting guide but no luck.
Here is what I did:
1. Downloaded the file off sourceforge.
2. Unzipped file into the SageTV directory
3. Changed the username/password in the realms.properties file.
4. Stopped the sageTV service.
5. Added the line to the Sage.properties file. Below is cut from the file:
linux/debug_rmf_push=false
linux/new_dev_scan_wait_period=10000
linux/sigma_player/buffersize=8192
live_playback_is_default=false
load_at_startup_runnable_classes=net.sf.sageplugins.webserver.StartServer
logfile_rollover_size=10000000
main_dvd_drive=Yes
6. Restarted the sageTV service.
7. Opened SageTV.
I tried opening the page from IE, but nothing. So, I checked if 8080 was being listened to using netstat -a but it doesn't show it.
I tried starting the webserver manually using the "java -cp . Acme.Serve.Serve -p 8080" and it starts without any errors and shows up in netstat.
I also enabled the console window on Sage. Not sure what this means, but it doesn't look good:
Mon 1/16 21:42:20.488 Succesfully setup system shell hook
Mon 1/16 21:42:20.509 Disabling offscreen DirectDraw acceleration
Mon 1/16 21:42:23.320 Error establishing server connection of:java.net.ConnectEx
ception: Connection refused: connect
Mon 1/16 21:42:23.321 at java.net.PlainSocketImpl.socketConnect(Native Method)
Mon 1/16 21:42:23.322 at java.net.PlainSocketImpl.doConnect(Unknown Source)
Mon 1/16 21:42:23.322 at java.net.PlainSocketImpl.connectToAddress(Unknown Sou
rce)
Mon 1/16 21:42:23.322 at java.net.PlainSocketImpl.connect(Unknown Source)
Mon 1/16 21:42:23.322 at java.net.Socket.connect(Unknown Source)
Mon 1/16 21:42:23.322 at java.net.Socket.connect(Unknown Source)
Mon 1/16 21:42:23.322 at java.net.Socket.<init>(Unknown Source)
Mon 1/16 21:42:23.322 at java.net.Socket.<init>(Unknown Source)
Mon 1/16 21:42:23.323 at sage.bl.do(Unknown Source)
Mon 1/16 21:42:23.323 at sage.bl.for(Unknown Source)
Mon 1/16 21:42:23.323 at sage.SageTV.<init>(Unknown Source)
Any ideas? Thanks for the help...
Nice job on the web server it works great.
Regarding the remote, I am also getting an error msg when clicking on any remote control button
The web server is running on the same box as Sage TV in Service Mode. I am accessing the webserver via laptop, however I have tried it on the box running Sage using localhost as well and get the same error msg.
Sage Version 4.1.3.67
Java Version 1.5.0_06
Url of Remote:
http://localhost:8080/sage/webremote.html?context=SAGETV_PROCESS_LOCAL_UI&contextname=Local%20SageTV
Url of Button click on Remote:
http://localhost:8080/sage/SageCommand?returnto=webremote%3Fcontext%3DSAGETV_PROCESS_LOCAL_UI%26contextname%3DLocal%2520SageTV&command=Num%201&context=SAGETV_PROCESS_LOCAL_UI
Error Msg:
UI Context: "SAGETV_PROCESS_LOCAL_UI" is not active:
use: /sage/SageCommand?command=<command>&context=<context>
Thanks.
nielm
01-17-2006, 01:34 AM
robgfaulknerHow / from where are you getting these errors -- ie which page, what have you done to get this page?
allen: the console log of the client/UI will not show much about the webserver running on the server/service :)
Can you check for any log files in webserver/log/AWS...
If none, can you also enable debug logging with the sage.properties line:
debug_logging=TRUEand look for the log files sage_0.txt after service startup...
Thor: the service has no access to the sage UI, so cannot control the UI. You have to install the webserver in sageclient.properties as well on a different port, and connect to that webserver instance to control the UI. (I will try to make the error message a bit clearer!)
robgfaulkner
01-17-2006, 09:36 AM
robgfaulknerHow / from where are you getting these errors -- ie which page, what have you done to get this page?
Well I wrote a scraper that parses your webserver and loads data into Meedio. Specifically, Im now getting the errors when I try to access....
http://localhost:8080/sage/DetailedInfo?AiringId=xxxxxx
The server returns Invalid Media File/ Airing ID warning page.
For all my recordings. Always!
Any suggestions would be appreciated. BTW, here is what Im doing in Meedio to grab SageTV info:
http://www.meedio.com/forum/about21371.html&highlight=sagetv
-Rob
owilsky
01-17-2006, 09:53 AM
I also have a problem with the new version, I don't know exactly since when this does (not) happen:
I connect via my pocket pc to the webserver to select an airing to be recorded.
This worked fine with version 1.x, but I cannot get e.g. to the search epg. I get the menubar and I see the search epg entry, but when I click on that entry I get a 404.
In former versions a got a "non javascript menu" at the bottom when I disabled javascript, doesn't it work this way in the new version?
I really would like to be able to connect via my pocket pc when I am not at home but at the moment it is completely useless.
I tried the pocket internet explorer from 2003se as well as NetFront 3.2.
Oliver
rickgillyon
01-17-2006, 11:02 AM
I connect via my pocket pc to the webserver to select an airing to be recorded.
...
In former versions a got a "non javascript menu" at the bottom
Works fine on my Palm T|X, maybe you should upgrade... ;)
mangriotis
01-17-2006, 02:51 PM
I installed Sage v4.1.4 finally and thought I would try the latest webserver program. It seemed to work fine internally on my network, but when I try to access it from outside my LAN, I get the following error after inputting my login and password:
Exception while processing servlet:
java.lang.NoSuchMethodError: net.sf.sageplugins.sageutils.SageApi.ApiUI(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
java.lang.NoSuchMethodError: net.sf.sageplugins.sageutils.SageApi.ApiUI(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:53)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:70)
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:1551)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1526)
at Acme.Serve.ServeConnection.run(Serve.java:1413)
at java.lang.Thread.run(Unknown Source)
Any thoughts as to what is causing this??
(At least I got rid of the "Bad Request" errors)
rickw
01-17-2006, 03:48 PM
Has anyone got a CSS file that displays the SageTV webserver pages nicely on the PocketPC. I just bought PPC-6700 (cell phone). :D
Rick...
allen
01-17-2006, 05:41 PM
robgfaulknerHow / from where are you getting these errors -- ie which page, what have you done to get this page?
allen: the console log of the client/UI will not show much about the webserver running on the server/service :)
Can you check for any log files in webserver/log/AWS...
If none, can you also enable debug logging with the sage.properties line:
debug_logging=TRUEand look for the log files sage_0.txt after service startup...
Thor: the service has no access to the sage UI, so cannot control the UI. You have to install the webserver in sageclient.properties as well on a different port, and connect to that webserver instance to control the UI. (I will try to make the error message a bit clearer!)
Neilm, appreciate the help. I attached the log file. I see mention of the webserver trying to start, but I don't really know what I'm looking at...
There aren't any log files in the webserver directory (or its sub-directorys)...
I realized that the log file shows all the crappy TV shows that I watch- BE NICE- doesn't everyone record every show with Erik Estrada in it?
-Allen
nielm
01-18-2006, 03:25 AM
mangriotis:
java.lang.NoSuchMethodError: net.sf.sageplugins.sageutils.SageApi.ApiUI
JARs/nielm_sageutls.jar did not get overwritten when you unpacked the zip file
allen: thats wierd I see that sage is trying to start the webserver, but the webserver's own thread does not seem to get executed -- I would expect to see 'Starting webserver with args: '
The only thing I can suggest is to try to re-unzip the webserver, and make sure both JAR files (JARS/nielm_sageutls.jar, nielm_sagewebserver.jar) are updated. (actually the most likely cause is like mangriotis: nielm_sageutls.jar did not get overwritten)..
nielm
01-18-2006, 03:48 AM
Well I wrote a scraper that parses your webserver and loads data into Meedio. Specifically, Im now getting the errors when I try to access....
http://localhost:8080/sage/DetailedInfo?AiringId=xxxxxx
The server returns Invalid Media File/ Airing ID warning page.I am guessing that you are getting the AiringID=xxxx from the file name...
It is possible that this ID in the file name is not the real Airing ID -- Sage sometimes re-numbers the ID's of all it's DB objects (it does this when it runs out of ID's -- you may have a Wiz.bin_PRECOMPRESSED_IDs)
Try looking at the detailed info via Sage Recordings in the webserver and compare the AiringID shown there against the file name.
You can 'fix' this by doing edit show info (it renames the file), but that would be a pain for lots of files.
I will add a new feature so that you can do:
http://localhost:8080/sage/DetailedInfo?FileName=drive:\full\path\to\file.mpg
-- note that the path will have to match the path defined for the recordings directory in Sage.
jimmyb
01-18-2006, 06:33 AM
Nice job on the web server it works great.
Url of Remote:
http://localhost:8080/sage/webremote.html?context=SAGETV_PROCESS_LOCAL_UI&contextname=Local%20SageTV
Url of Button click on Remote:
http://localhost:8080/sage/SageCommand?returnto=webremote%3Fcontext%3DSAGETV_PROCESS_LOCAL_UI%26contextname%3DLocal%2520SageTV&command=Num%201&context=SAGETV_PROCESS_LOCAL_UI
Error Msg:
UI Context: "SAGETV_PROCESS_LOCAL_UI" is not active:
use: /sage/SageCommand?command=<command>&context=<context>
Thanks.
Same error message I am getting
mangriotis
01-18-2006, 06:35 AM
mangriotis:
java.lang.NoSuchMethodError: net.sf.sageplugins.sageutils.SageApi.ApiUI
JARs/nielm_sageutls.jar did not get overwritten when you unpacked the zip file
allen: thats wierd I see that sage is trying to start the webserver, but the webserver's own thread does not seem to get executed -- I would expect to see 'Starting webserver with args: '
The only thing I can suggest is to try to re-unzip the webserver, and make sure both JAR files (JARS/nielm_sageutls.jar, nielm_sagewebserver.jar) are updated. (actually the most likely cause is like mangriotis: nielm_sageutls.jar did not get overwritten)..
Thanks nielm! I feel complete again... this interface is so nice to have. I missed it.
I am not sure what happened in the first place, but when I copied the nielm_sageutls.jar file over it was a different size. I installed everything fresh (Sage 4.1.4, webserver 2.4) so there couldn't have been previous versions, yet the file was different when I copied it over from the zip again. weird.
In any case, I would like to thank you, nielm, as things now seem to be working.
nielm
01-18-2006, 06:41 AM
nielm_sageutls.jar is shared by several of my plugins -- if you downloaded any of my other plugins before yesterday, it would install an older version of the nielm_sageutls.jar, overwriting the newer one used by the webserver ... I have just updated all my other plugins' zipfiles to the latest nielm_saegutls.jar
Yep DLL Hell in Java :)
nielm
01-18-2006, 06:54 AM
Same error message I am gettingfor different reasons -- please read my response to your problem
robgfaulkner
01-18-2006, 08:23 AM
I will add a new feature so that you can do:
http://localhost:8080/sage/DetailedInfo?FileName=drive:\full\path\to\file.mpg
-- note that the path will have to match the path defined for the recordings directory in Sage.
This would be great Nielm.
Quick question. If I just redid my Wiz.bin, by deleting and doing a fresh install would that fix the problem? Is there a way to reset this? Suggestions are appreciated.
-Rob
mangriotis
01-18-2006, 08:26 AM
nielm_sageutls.jar is shared by several of my plugins -- if you downloaded any of my other plugins before yesterday, it would install an older version of the nielm_sageutls.jar, overwriting the newer one used by the webserver ... I have just updated all my other plugins' zipfiles to the latest nielm_saegutls.jar
Yep DLL Hell in Java :)
Ah, I think I installed the latest SageMC after installing your webserver... if this also includes your .jar file, that would explain the issue.
Thanks again.
nielm
01-19-2006, 06:50 AM
V2.5 Jan 19 2006 -- for Sage versions 2.2-4.1
Nielm's changes:
BUGFIX: hopefully re-added compatibility for sage 2.2-4.0 versions (thumbnails will still not work)
BUGFIX: hopefully made HDTV icon work now
BUGFIX: hopefully fixed streaming video player for HTTPS
BUGFIX: Fixed 'Play in SageTV' button
BUGFIX: Fixed Manual Record/Set Padding in non-service mode/client webservers.
BUGFIX: Gb -> GB, Mb -> MB
BUGFIX: Got rid of annoying 'Capture Device' media files in library search
NEW FEATURE: Added experimental support for gzipping servlet output -- makes large pages much faster on slow internet links.
Disable with property: nielm/webserver/enable_gzip_encoding=false
NEW FEATURE: find media file details by passing file name in path.
This works for any page that accepted the 'MediaFileId' argument, eg:http://server:8080/DetailedInfo?FileName=c:\path\to\file.mpg
http://localhost:8080/sage/MediaFileCommand?command=WatchNow&context=SAGETV_PROCESS_LOCAL_UI&FileName=c:\path\to\file.mpgNote: Filename must exactly match name in sage's DB (ie using UNC paths etc)
ENHANCEMENT: Picture thumbnails are now extra-small in search results -- saves bandwidth
ENHANCEMENT: Improved handling of folders in Sage Recordings -- folders now open containing content and toggle open/closed.
NEW FEATURE: Added Intelligent Suggestions screen -- shows what would be recorded if Intellgent Recording was enabled (4.1+ only)
Jreichens changes:
NEW FEATURE: View Partial and Auto-Delete Recordings: Provide links to, and size of, partial and auto-delete recordings in the Home Screen
ENHANCEMENT: Added filters for partial and auto-delete recordings on the search page.
ENHANCEMENT: Enhanced Recording Quality Info in favorites and Detailed Info page
ENHANCEMENT: Favorite priority can now be set to 'above' or 'below' another favorite -- quicker than re-ordering with arrows
nielm
01-19-2006, 07:37 AM
This would be great Nielm.
done :)
Quick question. If I just redid my Wiz.bin, by deleting and doing a fresh install would that fix the problem? Is there a way to reset this? Suggestions are appreciated.There is no workaround -- About the only thing you could do is rename all the Sage Recordings files to match the new AiringID while Sage is shut down, and rely on the Media File Recovery to re-associate them. Or edit show info in the webserver for every file.
Removing Wiz.bin will just mean you lose all show/favorites information...
that_kid
01-19-2006, 08:32 AM
I have to say thank you for all the hard work you've put into this. You have made my transition to sage very easy.
iceman
01-19-2006, 01:47 PM
Once you selected the recorded file for viewing you're asked to select which application you would like to use to view it. On that web page there's a check box to select the application you've choosen to be used as the default application from that point on. My question is how do you change that selection or revert it back to the default once it's been choosen?
Gerry
nielm
01-19-2006, 02:11 PM
Delete the cookies for the webserver...
This particular option is stored in the cookie called: 'defaultPlayers', so you actually only need to delete that one...
If you don't have a webbrowser that allows fine cookie control, paste this into the address bar when viewing a sage webserver page:
javascript:DeleteOptionsCookie("defaultPlayers")
mkanet
01-19-2006, 07:01 PM
Nielm, FYI the only place I see the HD icons are under, "Watched Shows". No icons are visible (except for first runs) under "Recording Schedule". Is this by design?
jelevin
01-19-2006, 07:04 PM
The ability to control the MVP extender is very cool, congratulations.
Unfortunately, I now find that Watch (streamed) or Watch (local file) no longer works. Using either firefox or IE and either windows media player or vlc it looks like it is going to play in the web browser, but after a couple of seconds the vlc control switches from pause to play.
Any thoughts?
UniKyrn
01-19-2006, 08:03 PM
Version 2.5 is supposed to be compatible with Sage 4.0 again, if I'm reading the release notes right, right? :)
I'd been running 2.3, installed 2.5 tonight and made sure the JAR's got updated as per other threads here. Upon login, I get the following from the server and in the log file:
[Thu Jan 19 18:54:16 PST 2006] /sage/Home: Exception while processing servlet
java.lang.NullPointerException
at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:51)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:73)
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:1551)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1526)
at Acme.Serve.ServeConnection.run(Serve.java:1413)
at java.lang.Thread.run(Unknown Source)
nielm
01-20-2006, 02:59 AM
Nielm, FYI the only place I see the HD icons are under, "Watched Shows". No icons are visible (except for first runs) under "Recording Schedule". Is this by design?no... -- I guess you have HDTV shows in the Rec Sched view in Sage? Is there a similar issue in the SageRecordings views? (this is really difficult for me to test as I don't have HDTV :) ) I will have to look into it.
Edit: looks like the code only tries to show HDTV icons for recorded shows -- I will fix this...
Unfortunately, I now find that Watch (streamed) or Watch (local file) no longer works. Using either firefox or IE and either windows media player or vlc it looks like it is going to play in the web browser, but after a couple of seconds the vlc control switches from pause to play.. Oops :) I thought I had not touched that code... Another one to look into...
Edit: found it -- the test for support for gzip encoding was not working too well -- workaround: disable the property!
Version 2.5 is supposed to be compatible with Sage 4.0 again, if I'm reading the release notes right, right? :)yes -- and as the 'hopefully' implies it is completely untested :) I will try to get a quick fix out for that (I know where the problem is) -- just to confirm you are running the webserver in service mode in 4.0? If you run it in the Sage UI (SageClient.properties) you should get no problems...
jimmyb
01-20-2006, 06:43 AM
for different reasons -- please read my response to your problem
Sorry for the short reply. I have been busy at work and have not had the time for a long reply. I am taking the time now before work to respond properly.
I actually have 2 problems. The first is the webserver running on the Sage TV server / main computer. Here your webserver works fine until I try and use the Webremote. It does not work. Since I do not need it there or use it there, lets work on the Client Webserver.
I downloaded your new upgrade to see if that helped .. nope. Yes I get the first page showing Currently Recording, Video Disk Space etc. I presume this is the Sytem page you refer to. I do not get any Top menus. If I load ...../sage/menu.html, I then get the Top menus, but just once. Once I change / load pages I lose them. If I click on drop down Sage TV, I see the Web remote (local Sage) and clicking on it brings up the remote keys. Clicking on a key brings up: Webserver running in Service mode -- cannot execute any commands
Since there is no such thing as a Service mode for the Client, I am totally confused.
Thx again for your help. I hope we can fix this so I can once again watch TV in the hot tub :)
UniKyrn
01-20-2006, 08:43 AM
yes -- and as the 'hopefully' implies it is completely untested :) I will try to get a quick fix out for that (I know where the problem is) -- just to confirm you are running the webserver in service mode in 4.0? If you run it in the Sage UI (SageClient.properties) you should get no problems...
Yep, it's being run in service mode.
Stuntman
01-20-2006, 09:05 AM
If I go to "Program Guide" and select "Don't Like Shows" I get a SageTV Search Results page?? Is this the page I should expect? Seems to me this used to show a page listing shows that I had chosen as "Don't Like".. Am I wrong, or is this page displaying the wrong stuff?
Thanks!!!
ToonGal
01-20-2006, 12:54 PM
[QUOTE=nielm]Ok, you have all be crying out for this for a while, and here it is...
------------------------------
V2.5 Jan 19 2006 -- for Sage versions 2.2-4.1
Nielm's changes:
BUGFIX: hopefully re-added compatibility for sage 2.2-4.0 versions (thumbnails will still not work)
Yes! Long Live Nielm! :)
That's the good news. ;) The bad news is that v2.5 only give the below errors. Don't need the web server for a while while upgrading, so leaving it in current state. Upgraded from v2.3 (w/ your v2.4 suggestions), so pretty sure nothing missing in installation. Any suggestions appreciated.
Thanks again Nielm! Yay! :clap:
(Deleted message, as I saw the previous post which I missed.)
Looking forward to v2.5a. ;) Happy to help test for compatibility. Thx again Nielm. ;)
nielm
01-20-2006, 05:30 PM
Uploaded V2.6 Jan 20 2006 -- for Sage versions 2.2-4.1
BUGFIX: fixed gzip encoding for browsers that do not support it (fixes media player)
BUGFIX: hopefully fixed home/detailed info/webremote pages for sage 2.2-4.0
BUGFIX: fixed display of marker icons for Airings.
BUGFIX: removed manual recs from partials filter in search
nielm
01-20-2006, 05:32 PM
If I go to "Program Guide" and select "Don't Like Shows" I get a SageTV Search Results page?? Is this the page I should expect? Seems to me this used to show a page listing shows that I had chosen as "Don't Like".. Am I wrong, or is this page displaying the wrong stuff?it should show all shows marked with Dont like -- it uses the Search function to do this, so if you get no results, you may not have any don't like shows in the DB...
nielm
01-20-2006, 05:39 PM
I actually have 2 problems. The first is the webserver running on the Sage TV server / main computer. Here your webserver works fine until I try and use the Webremote.Are you using the SageTV service on the server? If so, webremote cannot work in the service because there is no GUI to control.
on to the client...
I downloaded your new upgrade to see if that helped .. nope. Yes I get the first page showing Currently Recording, Video Disk Space etc. I presume this is the Sytem page you refer to. Are you browsing to the address of the laptop client when doing this?
In the system info screen, do you see a block showing:Currently watching:
On Local SageTV instance:
I do not get any Top menus. If I load ...../sage/menu.html, Which web browser are you using?
An can you confirm which Sage version is running?
I saw some requests much earlier in this thread requesting the Original Air Date field be added to the Recording Detail screen. Could I please second that request? I started to attempt to add the code myself (since ShowAPI provides GetOriginalAiringDate()) but I just don't have the required level of Java knowledge to pull it off.
Lots of updates over the last few days, thanks for all the improvements!
mkanet
01-22-2006, 08:44 PM
Is it possible to use the SSL signed certificate that I use for IIS that's on the same machine; as opposed to using the self-signed cert I created myself. If so, how can I do that?
bcjenkins
01-23-2006, 11:40 AM
nielm,
Thanks for making a great bunch of addins. I use this plus dyn menus and exit Sage..
If I run Sage as a service, would I put the .keystore file for ssl in c:\documents and settings\local service directory? Presuming that to be the case, I will have to create a directory called local service and assign it as a home directory for that user.
Thanks,
B
nielm
01-23-2006, 02:05 PM
mkanet: possibly -- you might be able to import your IIS cert into your keystore -- see the keytool docs (http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html) for more info
(note that I never use SSL, so my help is limited here :) )
nielm
01-23-2006, 02:08 PM
If I run Sage as a service, would I put the .keystore file for ssl in c:\documents and settings\local service directory? you should be able to specify the location of the keystore using the -keystoreFile parameter in the nielm/webserver/ssl_args property:
nielm/webserver/ssl_args=-keystoreFile c\:\\keystore
nielm
01-23-2006, 02:08 PM
I saw some requests much earlier in this thread requesting the Original Air Date field be added to the Recording Detail screen.(re)added to todo list
Necro
01-23-2006, 09:24 PM
Just curious...is it just me or do the descriptions of shows in the EPG not wrap? I tried a thread search, didnt find anything. I'm trying to decipher the CSS but can't figure out whats up (the crop class doesnt seem to be defined...don't know where its coming from).
Just wondering if I can make it wrap that text for the list EPG.
nielm
01-24-2006, 01:31 AM
Just wondering if I can make it wrap that text for the list EPG.
both .epgcell div, and table.epglist div define:
white-space:nowrap;
overflow: hidden;
one or both of these cause this text crop in the div.
In CSS2 there is no way of cropping just one dimension, but I believe IE and FF support the draft CSS3 spec overflow-x and overflow-y..
Necro
01-24-2006, 08:02 AM
Ah..ok...so basically making it wrap would mean it would over run below. Gotcha. That kind of sucks....what can you do though.
petieboy
01-24-2006, 08:17 PM
Rewinding a little. Please check my assumptions below and correct any of them if they are wrong.
You are running a Sage Client on a laptop.
You are using Sage V4.1 (the latest webserver 2.4 only works on sage 4.1 or higher)
You have setup the webserver on the laptop client.
You are using a normal recent web-browser (IE/Firefox/Opera/Safari/etc) and you connect to
http://laptopaddress:8080/sage/
When you do this, you do Not get the 'System information' screen (showing current recordings, currenly watching, disk space, epg info etc), but you do get a very basic 'Sage Main Menu' menu screen listing a
You also get no menu bar at the top.
If this is the case it is very odd -- the only time this screen should be displayed is if you have javascript disabled, or are using a browser that does not support recent Javascript functions. Similarly the menu bar should always be displayed unless Javascript is disabled, or not fully supported.
When you click on Web Remote in this menu, you get the webremote screen displayed with an error 'Error: No UI context specified' -- what is the address of this page?
Finally, you mention that you get a longer error if you try to use the webremote -- what is that error?
Latest version isn't working for me.
No menu bar. Problem looks like a call to a nonexistant js function:
From Firefox js console: setClasses is not defined on page http://localhost:8080/sage/Home
This results in the menu not showing up.
Here's the bit of offending code:
//Browsercheck --
if(document.getElementById && document.createElement){
setClasses("myMenu");
document.getElementById("myMenu").style.position="absolute";
}
I'm guess setClasses should be in sage.js but it isn't? Can anybody confirm this?
Thanks, Pete
coolpup32
01-24-2006, 09:16 PM
Bless you nielm, This has to be the best plugin for sage no doubt. Dont get me wrong, this is in no way a complaint, but as mentioned earlier... Being able to watch a "stream" over the net ~200kb or so would be Sweet!
Thanks a bunch love the app dunno why i waited so long to try it. I use it all the time! Thank you!!! :thumb:
rickgillyon
01-25-2006, 01:35 AM
I'm guess setClasses should be in sage.js but it isn't?
Have you tried a restart and reinstall (with Sage/Service not running)? If the code isn't there it seems like your install may not have been entirely successful...
nielm
01-25-2006, 03:23 AM
Here's the bit of offending code:
//Browsercheck --
if(document.getElementById && document.createElement){
setClasses("myMenu");
document.getElementById("myMenu").style.position="absolute";
}you did not delete the old class files from an older 1.x version From the install instructions (http://www.sage-community.org/index.cgi/wiki/WebserverInstall)
**IMPORTANT** If you are upgrading from a v1.x version, you must delete the following directory trees in your SageTV directory:
Acme
net/sf/sageplugins/sageutils
net/sf/sageplugins/webserver
jimmyb -- if you are still reading this thread, you may also want to check this...
petieboy
01-25-2006, 07:49 PM
you did not delete the old class files from an older 1.x version From the install instructions (http://www.sage-community.org/index.cgi/wiki/WebserverInstall)
nice... thanks! that did the trick. I wasn't aware my wife had installed the 1.x version from way back... what a geek.
jelevin
01-25-2006, 09:43 PM
I'm sorry to say that even after upgrading to 2.6 I have the same symptom of not being able to play in the firefox browser. After I click on "Watch - Stream" the button changes from "pause" to "play" after 3-4 seconds. It works in internet explorer. Any thoughts?
rsagetv99
01-26-2006, 09:43 AM
Hadn't seen anyone report whether this was working on the Blackberry so I thought that I'd chime in. It works pretty well on my Blackberry with a few exceptions:
On the main page, I do not get the menus at the top near the SAGE Logo, I just see the Disk and EPG status. To work around this I made bookmarks in the Blackberry to the pages I commonly use i.e. sage/home, sage/favorites, sage/search, sage/recordingschedule.
Also, on the favorites screen, when I go to add a new favorite, for some reason I cannot go into the title field and type in a title, the browser just jumps over that field.
The screens take a little while to load, maybe like 20 seconds each, not that bad, except that when you are trying to setup a recording, everytime you change a setting it reloads the page. Nielm, have you had any thoughts of dumbing down the web server for portable devices? Maybe you could have a second web-page like /sage/wap. For example, I've noticed the Sage background loads behind the pages, on a PC it looks great, but on my Blackberry it is a little hard to read, and maybe that image is causing the pages to take a little more time to load. If you had a wap page, maybe it could be less graphics intensive.
Just my 2c for improving an already excellent product. I am fine with the way it is (except for the favorites problem), just offering some ideas. :goodjob:
banmj
01-26-2006, 12:09 PM
I have been playing around with this on my cell phone. I was looking at the wiki, and I noticed something for handheld stylesheets. The handheld.css was not in the webserver root directory. Has this feature been taken out?
coolpup32
01-31-2006, 08:20 PM
I seem get the following when a MVP client is playing, dunno if its a bug or me, just thought i'd throw it out there!
[Tue Jan 31 21:11:50 CST 2006] /sage/Home: Exception while processing servlet
java.lang.NoSuchMethodError: net.sf.sageplugins.sageutils.SageApi.ApiUI(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:84)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:73)
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:1551)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1526)
at Acme.Serve.ServeConnection.run(Serve.java:1413)
at java.lang.Thread.run(Unknown Source)
nielm
02-01-2006, 02:29 AM
the nielm_sageutls.jar did not get updated -- or you installed an older version of another STV/plugin that included an old version of nielm_sageutls.jar (the correct one should be about 14K)
ToonGal
02-01-2006, 09:58 AM
Nielm, buddy, you came through for me and I can't thank you enough. Compatibility of v2.6 works perfectly w/ SageTV v2.2.8. I -love- it...! *hugs* :clap: :jump:
Just reorganized my favorites which is finally a USABLE function through your web interface. No more up/down then left/right arrow, but absolute control! :) Score! And that's just the tip of the iceberg, as SageTV can now thoroughly dominate my life...! Ok, well, maybe just record sports while I go out on dates... ;)
While I could blather on about how wonderful you are, that gets dull quick. I've got problems. :) Sage Intelligent Suggestions. Bug. At least on v2.2.8, which I'm guessing it's local. Either that or install issue. Hope this hasn't been brought up before. Anyway, here's the java error message when clicking it:
Exception while processing servlet:
java.lang.reflect.InvocationTargetException: Exception while executing SageApi: "GetSuggestedIntelligentRecordings" numargs=0
java.lang.reflect.InvocationTargetException: Exception while executing SageApi: "GetSuggestedIntelligentRecordings" numargs=0
at net.sf.sageplugins.sageutils.SageApi.Api(SageApi.java:22)
at net.sf.sageplugins.sageutils.SageApi.Api(SageApi.java:27)
at net.sf.sageplugins.webserver.IRSuggestionsServlet.doServletGet(IRSuggestionsServlet.java:90)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:73)
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:1530)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1505)
at Acme.Serve.ServeConnection.run(Serve.java:1394)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sage.SageTV.api(Unknown Source)
at net.sf.sageplugins.sageutils.SageApi.Api(SageApi.java:17)
... 9 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at sage.ai$e.a(Unknown Source)
at sage.ai.if(Unknown Source)
... 11 more
Using the latest Java, so pretty sure it's not that. Everything else works, so I'd bet against install issues, but you never know. Any other data I can give or testing I can do, just ask! I'll be your v2.2.8 tester... ;)
I know everyone is v4.x crazy, but I can't seem to move on from Cayars. Even though everyone says 'no bugs', until there's a new feature that actually improves my experience, I'm happy at v2.2.8.
Thanks again, hun, for thinking of the full user base...! Means a lot. :thumb:
nielm
02-01-2006, 10:29 AM
Intelligent suggestions is a 4.1-only feature, sorry (Narflex added a new API call to get scheduled IR recordings even if IR is disabled!)
I cannot take credit for favorite support -- its all jreichen's work!
mkanet
02-01-2006, 02:08 PM
Nielm, forgive my ignorance, but is there any way at all to get the Intelligent Suggestions feature to show up on my SageTV menus? That is an increadibly useful feature!
nielm
02-01-2006, 02:46 PM
is there any way at all to get the Intelligent Suggestions feature to show up on my SageTV menus?yes -- if you write the screen in Studio (I am working on something...)
mkanet
02-01-2006, 03:02 PM
Thanks Nielm. I find myself lately using intelligent suggestions regularly instead of upcoming movies when I want to see what's on TV. I can't wait to see what you're working on. It sure would be a big deal if you came out with an Intelligent Suggestions STVi!
rp1790
02-02-2006, 07:52 AM
Nielm, not sure if I'm the only one or not but just wanted to show a little cosmetic thing I've noticed with the Program Guide submenu overlaying some things at the top.
Thanks for the webserver by the way, very handy when I've forgotten to record something!
rickgillyon
02-02-2006, 08:02 AM
little cosmetic thing I've noticed with the Program Guide submenu overlaying some things at the top.
Nielm already answered this, it's a bug in IE. Fine using Firefox.
Stuntman
02-02-2006, 08:17 AM
Nielm already answered this, it's a bug in IE. Fine using Firefox.
Works fine in the new Microsoft Internet Explorer 7 Beta. A fine broswer now available for download in it's second Beta preview..
http://www.microsoft.com/windows/ie/ie7/default.mspx
And I'm a big user and fan of Firefox.. but Microsoft seems to have responded to the Firefox fans.. which is exactly what the Firefox team wanted.. competition leads to better products
:clap:
mkanet
02-02-2006, 01:51 PM
Nielm, are the missing HDTV icon in Upcoming Recordings, Upcoming Favorites, Intelligent suggestions, etc by design? or, is it a bug?
Currently, the HD icon can ONLY be seen in "Sage Recordings" and "Watched Shows"
My installatoin appears to be working 100% correctly.
joh3004
02-02-2006, 02:12 PM
Thank you so much for your hard work. I'm upgrading to your webserver ver 2.6 and I get this error message in my log whenever I start up Sage TV (oh and the webserver isn't working:
[Thu Feb 02 13:08:33 PST 2006] No leading 'servlet' keyword, the sentence is skipped
[Thu Feb 02 13:08:33 PST 2006] Server socket: java.net.BindException: Address already in use: JVM_Bind
Any ideas?
rickgillyon
02-03-2006, 01:32 AM
Microsoft seems to have responded to the Firefox fans.
Thanks for this, didn't realise the IE7 Beta was available. While I agree it goes some way to addressing the advantages Firefox has, it is still missing out in a few areas, such as grouping the Links bar items and forcing links to open in new tabs rather than new windows. Getting there though!
(Now need to try to uninstall as one of my banks won't work with IE7, another won't work with Firefox, so I really need IE6 for now...) :bang:
nielm
02-03-2006, 04:32 AM
[Thu Feb 02 13:08:33 PST 2006] No leading 'servlet' keyword, the sentence is skippedIgnore this
[Thu Feb 02 13:08:33 PST 2006] Server socket: java.net.BindException: Address already in use: JVM_Bindthe webserver port specified (default 8080) is already in use on your system...
Choose a different port in sage.properties, or find out what is using port 8080 and kill it (netstat -ao will list the PID of the process using a port. openports (http://www.diamondcs.com.au/openports/) will give you the process name.
nielm
02-03-2006, 04:34 AM
Nielm, are the missing HDTV icon in Upcoming Recordings, Upcoming Favorites, Intelligent suggestions, etc by design? or, is it a bug?
Currently, the HD icon can ONLY be seen in "Sage Recordings" and "Watched Shows"I thought I had fixed this in 2.6... but as I dont have HDTV...
Anyone else see this too?
joh3004
02-03-2006, 01:13 PM
Thanks for your help. I found out that I am sharing a port with skype. I don't use the normal port 8080, because when i try to open it on my firewall, it tells met that "Port range conflit with "Remote Managment http Server"."
However, I don't want to have to leave skype shut down and I can't seem to find any other ports to use. Any suggestions?
mkanet
02-03-2006, 01:28 PM
You need to disable remote management on your router to free up port 8080. There's no reason to leave that enabled unless you are making changes to your router remotely (outside your network) on a daily basis. The best (and safest) way to manage your router is internally (ie, http://192.168.1.1/)
Thanks for your help. I found out that I am sharing a port with skype. I don't use the normal port 8080, because when i try to open it on my firewall, it tells met that "Port range conflit with "Remote Managment http Server"."
However, I don't want to have to leave skype shut down and I can't seem to find any other ports to use. Any suggestions?
mkanet
02-03-2006, 01:32 PM
Surely, I can't be the only person here who has HDTV & Webserver for SageTV..
Quote:
Originally Posted by mkanet
Nielm, are the missing HDTV icon in Upcoming Recordings, Upcoming Favorites, Intelligent suggestions, etc by design? or, is it a bug?
Currently, the HD icon can ONLY be seen in "Sage Recordings" and "Watched Shows"
I thought I had fixed this in 2.6... but as I dont have HDTV...
Anyone else see this too?
sleonard
02-03-2006, 02:29 PM
I have an HDTV and the webserver and I get the HD icons in all those places. Must be something wrong with your setup.
mkanet
02-03-2006, 02:44 PM
Nielm, can you think of what's different about "SageTV Recordings" and "Watched Shows" compared to "Upcoming Recordings, Upcoming Favorites, and Intelligent suggestions" in respect to the HD icon?
Something must be different between them for my setup to consistently NOT display "Upcoming Recordings, Upcoming Favorites, and Intelligent suggestions" and only display "SageTV Recordings" and "Watched Shows" correctly.
Nielm, are the missing HDTV icon in Upcoming Recordings, Upcoming Favorites, Intelligent suggestions, etc by design? or, is it a bug?
Currently, the HD icon can ONLY be seen in "Sage Recordings" and "Watched Shows"
nielm
02-03-2006, 04:49 PM
mkanet: there was a bug in 2.5 which meant that HDTV icons were only displayed for shows that are still on-disk -- this would be sage recordings and the most recent watched shows.. Are you sure you are running 2.6 (check the version number at the bottom of the home screen)
mkanet
02-03-2006, 05:19 PM
I was using version 2.5. Thanks Nielm. I must have forgotten to update after I downloaded it previously. It all works correctly with version 2.6 :) My bad.
nielm
02-04-2006, 06:18 AM
good to know -- thx
folly12345
02-05-2006, 04:12 PM
Is there any way to have the search function not show results for shows that have already started or are in progress?
For instance, on hbo.com I see a upcoming movie that I want to recod. I use the web interface to search for it and set up a manual recording. If it is currently 5:00 P.M. it will show an instance of the movie that runs from 4P.M. - 6 P.M., which doesn't do me much good to record.
ben_95sl1
02-06-2006, 11:31 AM
ok, I've done my best to troubleshoot, but not getting anywhere. I can no longer access files through the webserver with upgrade to 2.X....it used to work fine with 1.X. When I click on a link to a media file I get the 404 webpage everytime.
Any suggestions?
I've followed the install instructions, deleted the folders from the 1.X versions, upgraded from 2.4 to 2.5 to 2.6: still not working. Everything else works fine. Am I required to use UNC paths?
Thanks
aperry
02-06-2006, 11:52 AM
Just wanted to pass along that I just (finally) installed this and got it going, and wow! Very nice! Good work as always nielm!!!
nielm
02-06-2006, 12:54 PM
Is there any way to have the search function not show results for shows that have already started or are in progress?anythings possible with code changes, but in this instance I am copying the behaviour of Sage's additional airings, and won't change it...
nielm
02-06-2006, 12:55 PM
When I click on a link to a media file I get the 404 webpage everytime.check that you have taken the servlets.properties file from the new version...
If you have, whats the address giving the 404?
folly12345
02-06-2006, 01:46 PM
anythings possible with code changes
Nielm,
Thanks for the answer. I had suspected that it was probably coded that way, but thought that maybe there was a flag in one of the properties files that wasn't apparent to me when I looked through them.
This is a excellent plugin I use it constantly. I especially appreciate your recent addition of intelligent suggestions.
Thanks again for all the time and effort you have put into your various plugins and freeely donated to the Sage community.
-Jeff
ben_95sl1
02-07-2006, 02:45 PM
check that you have taken the servlets.properties file from the new version...
If you have, whats the address giving the 404?
I am using the latest servlets.properties file....what's funny is the thumbnail for the picture works fine, but the link to the picture file doesn't.
The 404 Error is:
404 Not found
Rogatkin's JWS based on Acme.Serve $Revision: 1.11 $
and the address is: http://192.168.1.2:8080/sagepublic/MediaFile?MediaFileId=6336077&Segment=0 which is local ip because it's on my lan....get same error on internet as well.
AND BONUS is there are a number of log files, all saying:
[Mon Feb 06 19:26:55 NST 2006] No leading 'servlet' keyword, the sentence is skipped
Is there supposed to be a servlets.jar file somewhere? I've got a few servlet.jar but no servletS; I put a servlet.jar in lib\ext to see if that did anything and it didn't...and there is one in the \JARS dir in sagetv obviously, as it should.
thanks
ToonGal
02-07-2006, 10:13 PM
Nielm,
LOVE the new graphics, showing favorite status, watched, first run, etc. Some ideas on new things that can add to the graphic experience.
- Favorites Manager: more detail requested on intro screen
-- Graphics for first run / reruns / both
-- Graphics if specific channel is selected
-- Status (delete=y/n, keep=all/#, -2/+1 padding)
-- Graphics for ratings (parental for TV, rating for movies, provided samples)
- Graphics for ratings everywhere
-- Show grid, show detail, etc.
- Show ID: display with title
I know you said you don't have this info in your own case. Still, if it could be added, would be great. Here's the logic I see working, in pseudocode:
if ((exists(showid)) and (last4digits(showid)>0)) then display last4digits(showid) before all titles.
Just trying to find things that would make the webserver 'cooler'. The favorites page would be most helpful, because I can see the settings as they are w/otu having to maintain each one individually.
Anyway, love it. No bugs, no problems. Rarely even use the native interface anymore to set / manage, only watch. It's all web server, baby! :)
Thanks again for v2.2.8 compatibility too. Seems like I'm not alone staying here...
nielm
02-08-2006, 04:46 AM
- Show ID: display with titleI added that in 2.6.. It is disabled by default, -- if you click Show Options in the Sage recordings view you should be able to enable it.
nielm
02-08-2006, 04:55 AM
deleted the folders from the 1.X versions
I know you said this, but are you sure you deleted all 3 folders, especially the one called ACME..
Iit looks like an old version of the webserver code is being used -- the $Revision should be 1.18 -- which I think explains that 'leading servlet' message , which may also explain the 404 (MediaFileServlet is not being loaded)
ToonGal
02-08-2006, 10:26 AM
I added that in 2.6.. It is disabled by default, -- if you click Show Options in the Sage recordings view you should be able to enable it.So you did... :) Never noticed that option. Glad to see it is a work in progress. That's the good news. ;) The bad news is that it isn't working for me. :)
Observations:
- Sage Recordings: only place to set 'enabled'. Did. NO id's show up on sage recordings even after enabled.
- Upcoming Recordings: seems to work diff for each show. not similar performance. NONE show actual titles any more. Some show "0005 - " without a title. Some show the pure EP1900610082 info only. None seem to actually work right. Ones w/out ep id's (like sports) seem to show the playing teams fine. Ones w/out titles work as normal.
- No other screens seem to show ID information, but assuming that is with intent. :)
Thanks for including this one Nielm! Love this feature, and will help debug further.
Thanks again, hun! Let me know if there's anything I can do to help.
ben_95sl1
02-08-2006, 02:14 PM
I know you said this, but are you sure you deleted all 3 folders, especially the one called ACME..
Iit looks like an old version of the webserver code is being used -- the $Revision should be 1.18 -- which I think explains that 'leading servlet' message , which may also explain the 404 (MediaFileServlet is not being loaded)
I'm that stupid guy I always make fun of....apparently I did not even see Acme at the top of the list of directories to delete because it was so much smaller. I figured I had done something wrong....when you said 3 folders, I remembered only having to delete 2.
thanks...plugin rocks, I'm a dumba$$.
nielm
02-08-2006, 02:51 PM
no problemo :)
nielm
02-08-2006, 02:58 PM
The bad news is that it isn't working for me. :)Wierd... it should use show id's everywhere where a show is displayed (apart from EPG views)... the relevant code from here (http://cvs.sourceforge.net/viewcvs.py/sageplugins/webserver/net/sf/sageplugins/webserver/Airing.java?view=markup):
String ep=getEpisode();
if ( showepisodeid && ! SageApi.booleanApi("IsTVFile",new Object[]{sageAiring} ) ) {
// from malore's menus
//If(Size(GetShowExternalID(Airing))>=12,GetShowExternalID(Airing),"00000000000000000000")
//If(Substring(DummyEpisodeNum, 8, 12) != "0000", Substring(DummyEpisodeNum, 8, 12), "")
String epId=(String)SageApi.Api("GetShowExternalID",sageAiring);
if ( epId != null
&& epId.length()>=12
&& ! epId.substring(8).matches("^0*$"))
if ( ep != null && ep.length()==0)
ep=epId.substring(8)+" - "+ep;
else
ep=epId;
}
if ( ep != null && ! ep.equals("")){
out.println(" <br/>"+Translate.encode(ep));
}
out.println(" </a></div></td>");
-- I cannot immediately see anything that would cause what you see (unless I am being dumb).. but I cannot test this as XMLTV only gives me 8 character EPGID's and show episode ID... Any hints? It is messing up the HTML markup somehow?
jreichen
02-09-2006, 12:21 AM
I'm seeing the same things. After taking a look I found the following:
It's excluding the episode info from the Recordings screen because of the following check in the if statement. Was this included for some other reason? If not it could be removed, or perhaps you didn't want the '!'.
! SageApi.booleanApi("IsTVFile",new Object[]{sageAiring} )
And if there is no episode it's returning a string of length 1 containing a space, rather than a zero-length string. So the following line needs the trim():
if ( ep != null && ep.trim().length()==0)
Thoughts?
BBCritical
02-10-2006, 08:52 AM
Are there any plans in future releases to add an admin screen to add or remove rights for specific users to download stuff.. like you can do in the realm.properties file now?
lovingHDTV
02-10-2006, 09:30 AM
I tried to copy a recording from my Sage server via the web interface to a different computer.
The web server reported the file as 5.18GB is size. When I clicked the link to download the file, IE reported the filesize as 800MB and that is all that was downloaded. The first 16min of the movie was great, but it would be nice to get the whole thing :)
At first I thought that maybe something timed out, but the initial size as reported by IE was 800MB. Does this size come from the webserver?
thanks,
ToonGal
02-10-2006, 10:20 AM
I cannot immediately see anything that would cause what you see (unless I am being dumb).. but I cannot test this as XMLTV only gives me 8 character EPGID's and show episode ID... Any hints? It is messing up the HTML markup somehow?Java not my language of love, but can pretty much figure out what you're shooting for. Can't debug it, but have some thoughts. First, some examples on exactly what it's empirically doing, I found the correlation.
When the epId is "0000":
- All titles displayed fine, if they exist
When the title is NULL:
- To the Manor Born, EP0044880003, displays "0003 - "
- Ebert & Roeper, EP3932370306, displays "0306 - "
When the title exists, and epId != "0000":
- Everybody Loves Raymond, EP1900610082, displays "EP1900610082 "
- Frasier, EP0809390126, displays "EP0809390126 "
On to comments on the code. Wish it were commented, but since not, making my assumptions as I go.
String ep=getEpisode();I assume this variable holds the actual "title" information.
if ( showepisodeid && ! SageApi.booleanApi("IsTVFile",new Object[]{sageAiring} ) ) {Please explain BOTH of these cases. The former I assume means "if showepisodeid enabled"? What exactly IS showepisodeid? I assume it is your boolean config variable enabled/disabled. No idea, as with the other poster, exactly what the "IsTVFile" part is all about.
&& ! epId.substring(8).matches("^0*$"))I don't like this line at all, for two reasons. For one, I don't exactly understand the pattern match. ;) I assume it means any string that leads w/ a 0. If I'm right, it isn't what's making this fail, but a bad assumption. I have seen shows leading w/ a "1xxx". Can't figure out why you are 'if' testing this... I like Malore's plan of saying getting the substring and comparing against "0000" for validity. If this string match means "all substring characters are [0-9] numbers", then good, it's OK. (I think that's what this means, so OK.)
if ( ep != null && ep.length()==0)
ep=epId.substring(8)+" - "+ep;
else
ep=epId;HAS to be all bugs here. I do see multiple obvious bugs, but don't know if there are more. Will provide commentary on what I see.
1) Not sure what your 'if' test here is for. ep!=NULL already done in the outer case, no??? If the title has any length, provide the "xxxx - title" format, else just the title? Think it's backwards.
2) ep=epId is absolutely wrong. If I understand your 'if' case here, this is the wrong display. Why EVER display the raw episode ID? Ungood. :)
Won't critique further, as it is simply just wrong. My own guess is you want a Malore type test in here somewhere. Maybe a sub if case inside the first part. In any case, I think you have your 'if' cases messed up / reversed. Here's my version:
if ( epId.substring(8)!="0000" )
if ( ep.length()==0 )
ep="Episode "+epId.substring(8);
else
ep=epId.substring(8)+" - "+ep;Clean up the java, obviously, but here's the pseudocode:
- If the ID is 0000, then just print whatever title info exists, done
- If the title is NULL, then display "Episode ####" (#=ID) as the title
- If the title exists, then display "#### - title"
Think this is what you want, but not close to what you have. Hope that helps, Nielm. If I had more time, I'd do more work on it, but think I have it right. :)
Thanks for putting the effort into all this N! Love you Babe! ;) Let me know if there's any add'l info you like. Am a thorough coder / debugger, and happy to do anything to help the cause.
nielm
02-10-2006, 01:08 PM
BBCritical: 'real' user management is on the todo list
lovingHDTV: IIRC, IE has a bug that means it cannot handle large files (size > 2Gb)... Try a 'real' browser -- like Firefox or Opera. :)
ToonGal -- thanks for the analysis... I was being pretty dense, but I think I got the problem sorted now -- check your PM's... (comments in the code ?!)
Dekard
02-10-2006, 08:58 PM
Any chance of a linux version?
Opus4
02-10-2006, 10:01 PM
Any chance of a linux version?Maybe I should move all the linux customization threads over here too... but for now, the Linux forum section has this one you should check: Nielm's webserver works with Linux SageTV. I think you need to be sure to check the last few posts there.
- Andy
nielm
02-11-2006, 02:27 AM
Any chance of a linux version?
There is even a section in the webserver docs about it :)
Using the webserver on Sage Linux version (http://www.sage-community.org/index.cgi/wiki/WebserverLinux)
soulprops77
02-13-2006, 11:24 AM
Has anyone figured out a way to playback on a mac? In the absence of a VLC plugin for OS X I can't find a workaround.
Perhaps there is a way to get the webserver to automatically open an external player (VLC, MPlayer, etc). Any ideas?
nielm
02-13-2006, 12:52 PM
Has anyone figured out a way to playback on a mac? In the absence of a VLC plugin for OS X I can't find a workaround.
Perhaps there is a way to get the webserver to automatically open an external player (VLC, MPlayer, etc). Any ideas?Click on one of the streaming playlist formats supported by VLC in the bottom middle detailed info window (eg WMX or M3U) and open the downloaded file with VLC...
In Mplayer, copy the link which is on the media filename and open it in Mplayer (does Mplayer do playlists?)
joe123
02-16-2006, 10:09 PM
Is this for Linux only? I installed it on my Windows XP machine, but nothing happens when I http://localhost:8080/sage/Home on my machine.
If I do http://localhost, I get the generic Windows Under construction since I have not put any web pages on my system.
I edited my Sage.properties file to have:
i18n_options=en,fr
ui/numeric_text_hint_fr_0=0\nespace
ui/numeric_text_hint_fr_accept=lecture\:\n>
ui/numeric_text_hint_fr_back=arrêter\:\n<
load_at_startup_runnable_classes=net.sf.sageplugins.webserver.StartServer
Is this correct?
nielm
02-17-2006, 03:15 AM
Is this for Linux only? no.
I installed it on my Windows XP machine, but nothing happens when I http://localhost:8080/sage/Home on my machine.
http://www.sage-community.org/index.cgi/wiki/WebserverTroubleShooting
joe123
02-18-2006, 11:45 AM
Ok, I ran netstat -a and yes, nothing is running and listening to port 8080.
I also noticed that you mention to edit the Sage.properties files. In my system under C:\Programs\SageTV\SageTV directory, I see two of these files - probably beucase they have different extensions which do not show up in my windows display.
So did I edit the correct Saget.properties files listed 2 posts above?
joe123
02-19-2006, 03:18 PM
Does anyone know which Sage.properties file to edit?
The webserber instructions are not clear as to which to edit.
ke6guj
02-19-2006, 03:25 PM
Does anyone know which Sage.properties file to edit?
The webserber instructions are not clear as to which to edit.
There's only supposed to be one. located in program files>sagetv>sagetv
edit: saw your other post above. In the sagetv folder there is sage.properties, sage.properties.autobackup, sage.properties.default, and maybe others, depending on number of upgrades. the file you want is "sage.properties" Turn off "hide extensions for known file types" in windows to help eliminate confusion.
joe123
02-19-2006, 03:40 PM
There's only supposed to be one. located in program files>sagetv>sagetv
edit: saw your other post above. In the sagetv folder there is sage.properties, sage.properties.autobackup, sage.properties.default, and maybe others, depending on number of upgrades. the file you want is "sage.properties" Turn off "hide extensions for known file types" in windows to help eliminate confusion.
Thank you, that helped. Turning off extensions shows the correct file to edit now Sage.properties.
It's working now!
joe123
02-19-2006, 08:30 PM
Is there any way to increase the font size of everything?
I tried EI Text size -> largest, but it did nothing.
If you have a mouse connected, just hold down the control key and roll the mouse wheel. Increases or decreases the font size.
Rob
joe123
02-20-2006, 12:51 PM
If you have a mouse connected, just hold down the control key and roll the mouse wheel. Increases or decreases the font size.
Rob
When I am viewing the EPG grid, the only thing that increases is the header , the SageTV word on top. The text of the EPG stays the same.
Any way to set overall text 1 notch bigger permantely?
cslatt
02-20-2006, 01:31 PM
Edit SageTV\webserver\webroot\sage\sage-all.css and go down to ".epgcell div". Change the font-size property there to a larger value (like 10pt)
jamjam
02-24-2006, 02:00 PM
I'm still having problems viewing streamed video.
A new window opens if firefox
No video shown
then after a few seconds the pause button changes to play.
This is the same error as some else reported earlier but I could not find an answer to his problem
http://forums.sagetv.com/forums/showthread.php?p=129108&highlight=vlc#post129108
I check the couple of things that Nielm mentioned.
Anyone any ideas?
JJ
joe123
02-24-2006, 04:00 PM
I have the same problem.
jamjam
02-25-2006, 02:49 AM
OK view in external player seems to be working. I can play music using quick time but to use WMP or VLC I have to use the external player.:confused:
JJ
Coolwave
02-28-2006, 03:54 AM
Is there a way to send a recording to the archive with the webserver? I know it displays the icon for a recording that is in the archive, but I can't seem to find how to archive through the web interface.
Thanks for any info!
Coolwave
jreichen
02-28-2006, 06:31 AM
Is there a way to send a recording to the archive with the webserver? I know it displays the icon for a recording that is in the archive, but I can't seem to find how to archive through the web interface.
Thanks for any info!
Coolwave The archive feature will be in the next release.
bucketmouth
03-01-2006, 10:00 AM
Currently watching:
On Local SageTV instance:
get this in the home screen,,,any ideas?
Exception while processing servlet:
java.lang.NoSuchMethodError: net.sf.sageplugins.sageutils.SageApi.ApiUI(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
java.lang.NoSuchMethodError: net.sf.sageplugins.sageutils.SageApi.ApiUI(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:61)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:73)
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:1551)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1526)
at Acme.Serve.ServeConnection.run(Serve.java:1413)
at java.lang.Thread.run(Unknown Source)
jreichen
03-01-2006, 07:47 PM
Currently watching:
On Local SageTV instance:
get this in the home screen,,,any ideas?
Exception while processing servlet:
java.lang.NoSuchMethodError: net.sf.sageplugins.sageutils.SageApi.ApiUI(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
java.lang.NoSuchMethodError: net.sf.sageplugins.sageutils.SageApi.ApiUI(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:61)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:73)
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:1551)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1526)
at Acme.Serve.ServeConnection.run(Serve.java:1413)
at java.lang.Thread.run(Unknown Source)It sounds like there is an old version of nielm_sageutls.jar in the SageTV\JARs folder. It may have been overwritten if you're using any other plugins that include that jar file. Just reextract the one from your web server download. Also, make sure you don't have backup copies of that jar file in the JARs folder, otherwise the classes from the older copy might be used.
roofus
03-04-2006, 01:17 PM
It should be automatic
Things to check:
You are running it on the server (not a remote client)
When you unpacked, you updated Sagetv/webserver/servlets.properties (it should contain at the last 2 lines:
servlet./sagepublic/MediaFile.code=net.sf.sageplugins.webserver.MediaFileServlet
servlet./sagepublic/PlaylistGenerator.code=net.sf.sageplugins.webserver.PlaylistGeneratorServlet
Whats the URL that is generating the 404 error?
I had this same problem.
Delete your net and acme folders from your sagetv install folder
BBCritical
03-05-2006, 07:59 AM
I had to do a complete reinstall to a new motherboard and I copied over my sage directory. When I open my webserver now there is now menu across the top of the screen. I reinstalled the webserver again and it hasnt changed. Any ideas on how to fix this?
BBCritical
03-06-2006, 01:29 PM
:bump:
nielm
03-06-2006, 01:43 PM
Is that : "There is no menu" or "There is now a menu" ?
If there is no menu, check that Javascript is enabled in your browser.. If you are running a decent browser (Firefox or Opera) open the javascript console and check for any errors.
Lastly, delete any net or acme folders in the SageTV directory.
BBCritical
03-06-2006, 01:46 PM
Sorry I meant .. no menu.. this is a fresh install .. ie says there is an object required error. Unfortunately I do not know how to open a javascrpt console using firefox
edit: found the javascript console in tools...
BBCritical
03-06-2006, 03:09 PM
thanks for the feedback Nielm.. I fixed it.. the net folder was still in there and once I deleted it ever thng worked fine (ie: user error .. duh)..
Hi, I finally got DSL (this is big for me since i live in the middle of nowhere) and now can finally take advantage of this awesome webserver app. I would also like to use it as a webremote at my home so I can control what is playing in my music on my MVP (connected to my home receiver) without turning on the plasma. I am having a little trouble figuring out which properties files to edit and such. Any suggestions or help? Would i need to first do the setup at the server side, then also edit something for the MVP?? I tried reading the wiki page but it talks about editing the sageclient.properties files. I thought the mvp uses a different file in the new clients folder. A little confused. Any help would be great.
Thanks,
nielm
03-08-2006, 09:52 AM
For MVPs (and placeshifter!) it should be automatic -- just set it up on the server and you get a list of clients/extenders in the 'Home' page -- just click the extender name/address in the home page
BBCritical
03-09-2006, 06:20 AM
When I try to into the webserver across the internet I get a screen that says "There is nothing to see here, please move along!". Does anyone have any ideas as to why I would get this. the web server works fine internally on my lan. Any help would be appreciated....
For MVPs (and placeshifter!) it should be automatic -- just set it up on the server and you get a list of clients/extenders in the 'Home' page -- just click the extender name/address in the home page
cool. that 'sounds' easy enough!! Thanks
JUC
rickgillyon
03-09-2006, 06:33 AM
When I try to into the webserver across the internet I get a screen that says "There is nothing to see here, please move along!".
Normally that means you're not putting in the full URL, e.g.
http://111.111.111.111/
instead of
http://111.111.111.111/sage/Home
BBCritical
03-09-2006, 06:39 AM
Thank you .. thank you.. thank you.. that is exactly what it was ... (I feel like such an idiot :()
rickgillyon
03-09-2006, 06:59 AM
(I feel like such an idiot :()
Don't feel bad, I bet most people here have done it at one time or another... :)
bcjenkins
03-09-2006, 07:11 AM
Thank you .. thank you.. thank you.. that is exactly what it was ... (I feel like such an idiot :()
I do that all the time.. <G>
tmiranda
03-12-2006, 10:09 AM
Firstly, I really like this web interface, it is really slick and polished like all of nielm's work.
On the homepage there is a nice link which brings up all partial recordings. I'd like to delete them all but it is not supported in the options. How can I do this? (Either from the webserver or elsewhere for that matter. I'm using the stock STV with Malore enabled.)
Thanks.
nielm
03-12-2006, 01:31 PM
Batch deletion is not supported in the webserver, but I wrote an STV import to show/delete partials (http://www.sage-community.org/index.cgi/wiki/NielmModuleDeletePartials) :)
bgorrell
03-13-2006, 01:28 AM
Nielm,
Is it possible to add an action to delete entries from the database? Somehow over the years I've ended up with tons of duplicate entries for shows. For example, I have 5 entries in the database for "Family Guy - Holy Crap". Each has the same show ID and description, but a unique AiringID. There are hundreds of similar examples in my database. I also have a number of generic entries (usually for the Simpsons and Futurama) that I would like to delete.
Basically, I want to select items from a search and take the action of "Delete form database". To be safe, you could give a warning if the file still exists on disk.
Thanks.
ke6guj
03-13-2006, 01:58 AM
+1 on that. A way to clean up the database would be most appreciated.
bgorrell
03-13-2006, 02:00 AM
I forgot to ask...is it possible to specify an episode # when manually editing show information? Currently it is generated automatically.
An example: I recently recovered episode 9 of American Dad (it ended up in the imported library for some reason). I filled in the description, roles, etc. and successfully got it back in the Archived recordings. However, it is the only episode of 19 that does not have an episode number. Because of that, it puts it out of order on my list.
Thanks again
nielm
03-13-2006, 02:35 AM
To do a DB clean-up:
Do a search for all airings in the past...
Clear Watched (even if it is not set), Clear dont like flags...
Airings will be deleted shortly after -- probably at next EPG update.
(you can also do this in Malore's Viewing History window)
Sage keeps airing info for all shows who are partially watched/watched/don't like or having a recording...
Sage keeps all show titles and actor names forever (as far as I can see)
There is currently no way to specify an episode ID in edit show info - this is partlially deliberate : if you edit show info and kept the episode ID, at the next EPG update that contains this episode ID, the edited info will be overwritten.
i'm having some trouble getting this going. I see that around page 5 there were some issues with the serverlets.jar file being renamed serverlets.zip. Is this still an issue or was it fixed with later downloaded versions? Do i need to manually move the serverlets.jar file somewhere? When i try to connect it seems like it is trying to do something but then just gives me the ...'page cannot be displayed...
8080 is open so that isn't the problem...
any help would be great.
thanks
JUC
nielm
03-13-2006, 06:13 AM
JUC: That refers to an older installation problem which is no longer possible with the current way the webserver is packaged -- the servlets jar is now part of the webserver zipfile.
What is at the bottom of 'page cannot be displayed' -- it should give a reason why. Other browsers also tend to give more error messages that are easier to debug than IE.
Also where are you testing from: the local host, or somewhere on the internet...
unfortunately its giving me the 'cannot find server or DNS error'...generic
. I am trying it from 'somewhere' on the internet...
IE is all i have right now. i have verified using the utilitiy in the instructions page that port 8080 is open. And just to clarrify. i should be pointing my browser at. http://192.168.0.4:8080/sage/Home if that is my server's IP address? Any help would be appreciated. I can try when i get home and see what happens. FWIW--i am having trouble with the placeshifter too --but that does work within my home network.
Thanks
JUC
edit: Firefox is telling me the request timed out...maybe its something with my firewall settings? But---i turned off XP firewall yesterday. Other than that and making sure the right port is open would there be any other settings i need to enable to let access in?
rickgillyon
03-13-2006, 07:49 AM
. I am trying it from 'somewhere' on the internet...
http://192.168.0.4:8080/sage/Home
There's the problem. The 192 address is the address within your own network. To access it from outside you'll need to specify your external IP (the one your ISP assigns to you) and map port 8080 in your router to the 192.168.0.4 machine.
Check your firewall/router's status page for your external IP.
thank you! i will of course have to make those changes when i get home. I'll let you know what happens. I was wondering how it was going to find my home server with that common address...should have known better.
questions though...i have already mapped port 8080 on the router to my server machine. So, i would only have to find out what my external IP address is and use that?
Thanks
JUC
rickgillyon
03-13-2006, 08:30 AM
So, i would only have to find out what my external IP address is and use that?
Correct. How often that IP address changes depends on your router and your ISP. Best you can do is make sure your router is configured never to release the IP, and hope for the best from your ISP.
nielm
03-13-2006, 08:30 AM
yep.. The router should be able to tell you, as will sites like http://www.whatismyipaddress.com/ (access it from your home system) but it can change (-- as mentioned by rick)
The simplest way to deal with changing IP addresses is to sign up for a www.no-ip.com or www.dyndns.org service where you set up your own domain name (such as myname.dyndns.org) and you run a piece of software on your server which updates the dyndns/no-ip service with your *real* IP address whenever it changes.
It's also easier to remember and type than an IP address :)
(also covered here (http://www.sage-community.org/index.cgi/wiki/WebserverRemoteAccess)
bgorrell
03-14-2006, 01:18 AM
To do a DB clean-up:
Do a search for all airings in the past...
Clear Watched (even if it is not set), Clear dont like flags...
Airings will be deleted shortly after -- probably at next EPG update.
(you can also do this in Malore's Viewing History window)
Sage keeps airing info for all shows who are partially watched/watched/don't like or having a recording...
Sage keeps all show titles and actor names forever (as far as I can see)
There is currently no way to specify an episode ID in edit show info - this is partlially deliberate : if you edit show info and kept the episode ID, at the next EPG update that contains this episode ID, the edited info will be overwritten.
Thanks, I will try clearing the watched and don't like flags and see what happens. This has been of great annoyance to me.
As for the episode ID, I actually wouldn't mind if new show data overwrote the current show data in most cases. I am only editing the show data so I at least have something for imported videos. Often, the show will come up in reruns down the line and I'd rather have the "official" data.
As an example of how this would be useful, I have a dozen episodes of American Dad on my cable box DVR that I missed recording in Sage because I was having computer problems. I'd like to copy them to the Sage server using the manual recording feature. I could then fill out the basic show info and episode ID, and if I understand correctly, if the show ever airs again, it will automatically gain the rest of the data.
I'm assuming the Episode ID is derived from the last three (or four) numbers of the ShowID field. Is that correct?
Maybe you could offer an option of "manual ShowID" or something to that effect. If not entered, you would auto-generate the ShowID as you do now. If I entered a ShowID using an existing recording as a template (American Dad is EP716445xxxx), there's a good chance I will get the rest of the info next time it's shown and will at least have the correct episode ID to sort by in the mean time. Optionally, this would also allow us to enter an alternate form of ShowID, such as "01x002" for Season 1, Episode 2.
If any of this is possible, I'd greatly appreciate having the option of using it. Thanks.
vBulletin® v3.7.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.