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
bcjenkins
06-21-2008, 04:43 PM
Thanks for the great plugin!
B
MarkV
06-22-2008, 12:19 PM
Could someone send me a legal command for the webserver to do anything on the extender ?
In this example, the Extender's mac address is 00abcd00abcd and the sage server is 192.168.1.100 with the webserver set up at 8080
For example,
http://192.168.1.100:8080/sage/SageCommand?context=00abcd00abcd&command=Guide&confirm=yes
The error returned is
UI Context: "00abcd00abcd" is not active:
Sage Extender is not connected
use: /sage/SageCommand?command=<command>&context=<context>
I figure none of this is working so it must be my syntax, specifically the context piece.
I set debug_logging=TRUE and the extender is being discovered and all that good stuff. The extender works fine over IR but I really want to be able to drive it via the webserver as it allows me to select content without navigating menus.
Thanks,
Mark
imstillme2
06-25-2008, 05:27 PM
Has anyone been able to make this work outside your network using an Actiontec DSL router? No matter what I do I can not make it work. My server is Vista. Is there anything special anyone has had to do with Vista as far as UAC. My UAC is off so the sage folder is not public could there be anything to that?
rickgillyon
06-26-2008, 02:05 AM
Do you have remote admin turned on on the router? If this uses the same port as the webserver it will cause problems...
imstillme2
06-26-2008, 04:54 AM
Nope already checked that
CollinR
06-26-2008, 07:23 AM
Do you have another router in addition to the actiontech?
Those actiontechs are modem/router combos and provide DHCP and NAT so opening a second router and forwarding there will be of no use.
Obviously you must have firewall open on the port and that port forwarded to the Sage server.
Does your server have a static IP on your LAN? If not it will need one, otherwise where would you forward to?
Do you have a static IP address from your ISP? If not you should look at dynamic DNS to make sure you are making requests to your LAN.
CollinR
06-26-2008, 07:28 AM
Could someone send me a legal command for the webserver to do anything on the extender ?
In this example, the Extender's mac address is 00abcd00abcd and the sage server is 192.168.1.100 with the webserver set up at 8080
For example,
http://192.168.1.100:8080/sage/SageCommand?context=00abcd00abcd&command=Guide&confirm=yes
The error returned is
UI Context: "00abcd00abcd" is not active:
Sage Extender is not connected
use: /sage/SageCommand?command=<command>&context=<context>
I figure none of this is working so it must be my syntax, specifically the context piece.
I set debug_logging=TRUE and the extender is being discovered and all that good stuff. The extender works fine over IR but I really want to be able to drive it via the webserver as it allows me to select content without navigating menus.
Thanks,
Mark
http://USER:PASSWORD@192.168.1.100:8080/sage/SageCommand?context=00abcd00abcd&command=TV
HTH
imstillme2
06-26-2008, 09:49 AM
For anyone having trouble getting webserver to work outsid of your home network I found a fix that works for me! Install hamachi https://secure.logmein.com/products/hamachi/list.asp
When hamachi logs in it givs you another ip address you use that one to access sage webserver
http://xxx.xxx.xxx.xxx:8080/Sage/Home
This will bypass your firewall (to some point) and do the port forwarding for you!!
MarkV
06-26-2008, 05:45 PM
http://USER:PASSWORD@192.168.1.100:8080/sage/SageCommand?context=00abcd00abcd&command=TV
HTH
Thanks.
I will try it, but suspect the login/passwd is only required the first time in a browser session since the rest of my http://192.168.1.100:8080/sage/SageCommand?context=SAGETV_PROCESS_LOCAL_UI&command=YADA works just fine. The first access in a browser session will pop up a user/passwd prompt.
MarkV
06-27-2008, 08:35 PM
On my ongoing attempt to get the webremote/webserver to talk to the HD Extender...
I attempted a complete reinstall of the Sage server (6.4.4. beta) and only did the modifications included in the installer. I am running on Vista Ultimate 64 on the Sage Server. The webremote's Connected Clients recognizes the other sage clients on the network but does not see the HD extender. The extender works fine directly (via IR), but I am still unable to get the webremote to acknowledge it exists. Attempts to use sagecommands with the context=MAC or context=IPADDR result in the same error messages as before.
UI Context: "192.168.1.1XX" is not active:
Sage Extender is not connected
use: /sage/SageCommand?command=<command>&context=<context>
Is it possible I have a network issue ? The extender can see the server, playback files from it, etc. The sageclients all work as well and the server can see the clients, but the webserver cannot control the extender. What could it be ? Is there anything obvious to look for in the sagetv_0.txt file that indicates an extender is connecting or trying to connect?
31000 and 31099 are wide open on the server.
I do get the following line in the log file
Fri 6/27 22:45:16.764 Saving properties file to clients\00abcd00abcd.properties
Where 00abcd00abcd is the mac address of the extender
MarkV
06-30-2008, 09:04 PM
Okay, I'm tired of plucking around with Sage.properties, various installs, etc. I've got a $50 amazon gift certificate for the individual that provides me the right hint that solves my webserver access to hd extender problem. Since I might get so lucky as to have multiple people that provide solutions, I will award to the first one that I judge had significant impact. I will report the winner and the solution provided here in case anyone is worried about keeping me honest for $50 (it's only $50 after all).
Setup
Vista SageTV server - 192.168.1.111 - has webserver installed on it
XP SageTV Client - 192.168.1.112 - has encoder on it
XP SageTV Client - 192.168.1.155 - has webserver installed on it as well
HD Extender - 192.168.1.113
SageTV is running as a service on the Vista SageTV server node above.
All are on same network. No DHCP addresses for any of these. 31000 and 31099 are open for the SageTV server. Trend Micro Internet Security Pro is running on the server (happy to disable to test theories - I've tried).
SageTV 6.4.4 beta installed on server and clients. Latest nielm webserver installed on Vista SageTV server and one of the XP clients.
HD Extender has the 20080604 firmware. HD extender recognizes the SageTV server and can play back media from it, see the guide, everything but work with the webserver. The sagetv_0.txt file reports the client/macaddr.properties file is being generated when the HD extender is turned on.
Attempts to do
http://192.168.1.111:8080/sage/Home work fine but the extender is not reported as a Connected Client
http://192.168.1.111:8080/sage/SageCommand?context=macaddr&command=TV
generate
UI Context: "macaddr" is not active:
Sage Extender is not connected
use: /sage/SageCommand?command=<command>&context=<context>
I have tried a clean (moved my existing Sage directories before installing) Sage server install followed by the nielm install as well with no change in behavior.
I can provide any or all config or log files if it helps (PM me)
If there is some other easy gift certificate that I can provide without a lot of pain or possible access to my account information, that can work too. I don't think Sage gift certificates exist yet.
mayamaniac
07-01-2008, 05:18 AM
Reward or not, here's my suggestions:
- You didn't list what Java version you are using. If you're not running latest Java, I suggest to do so.
- Add SageTV.exe or SageTVService.exe (if you're running service mode) exception to Windows Firewall in Vista, or just disable Vista Firewall since you're using that Trend Micro one.
- Try a different port number for the webserver, you change it in sage.properties at the line: nielm/webserver/port=8080. Usually 8080 is reserve for the router's remote admin.
What does this link suppose to do? : http://192.168.1.111:8080/sage/SageCommand?context=macaddr&command=TV
Also, why do you need to have the webserver installed on both the server and client?
I have tried SageTV on Vista 64bit before, and the webserver works fine, and it detects the HD and MVP extenders.
MarkV
07-01-2008, 05:51 AM
Sage is running as a service.
The webserver is installed on the client so I can control the client via TCP. I do not believe you can control a client from the server without the webserver installed on it. I am currently controlling the client and server over TCP from a Pronto TSU9600. It works great and allows me to specify the exact content to be played directly from the remote.
I'm happy to try any command for the web server. So far, none of them see the extender. The commands formed by the webremote does not work with the extender and generate the same message.
8080 works fine for both the client and server webserver. This is all on a local network at this point, so I am not coming in over the WAN where I believe 8080 could be redirected to the router/firewall. I will retry with some other number
Java version is 1.6_0_05 although I noticed the Program Files directory has 3 directories with 3 versions.
BobPhoenix
07-01-2008, 05:53 AM
Java version is 1.6_0_05 although I noticed the Program Files directory has 3 directories with 3 versions.Try removing the extra java's. That has caused problems in the past with Sage itself so it's possible that might cause problems with the web server.
gplasky
07-01-2008, 07:35 AM
You say you have port 31000 and 31099 are open but you don't say you have port 8080 open. Open that too. Shut off your Trend Micro and any Windows firewall running on any of your PCs. Turn off all clients except for the HD Extender. Uninstall all versions of java from the server except for the latest. Make sure the webserver on the client uses a port different from the port 8080 the server is using.
Once you see the HD Extender then back track to the offender stopping it from showing up.
Gerry
MarkV
07-01-2008, 08:55 AM
So, an obvious misunderstanding on my part of what is going on when running Sage in service mode
There's the SageTVService.exe - which uses a Sage.properties
There's the SageTV.exe on the server which uses a Sage.properties or SageClient.properties. I notice SageClient.properties (AppData version) updating on exit.
And then there's the SageTV.exe which uses the SageClient.properties.
I currently run as a service on the server and run SageTV.exe (not as a client) on the server. It appears to mostly act like a client since it touches SageClient.properties although it detects the local service and does not ask for a host. Should I be running SageTV.exe -client on the SageTV server box for any reason (assuming I have only one SageTV server on my network)?
It's Vista so there are properties files in Program Files\SageTV\SageTV and in Users\Username\Local\AppData\Virtual Store\Program Files\SageTV\SageTV
Currently, it appears the service looks in the program directory and the client looks in the Virtual Store.
MarkV
07-01-2008, 09:00 AM
We have a winner - gplasky. The client/server port comment is what tipped me off. See above post for my stupidity. I believe (haven't confirmed yet) that my client was using the same 8080 port as the server and/or I may not have been running a webserver for the Sage service at all (possibly was just connecting to the SageTV.exe that uses SageClient.properties which doesn't talk to the extender).
Still trying to figure out exactly what I pooched, how to remain unpooched, etc, but I was able to webremote drive the extender which means it can be done from the Pronto.
Thanks for the help and sorry for spewing questions all over the thread.
Gplasky, drop me a PM.
Thanks again!
geogecko
07-01-2008, 06:57 PM
Wow, that's one way to get problems solved! I'll admit, my interest peaked when I heard about a $50 gift card. Need to find something I want fixed, and offer something similar.
jdamore
07-09-2008, 09:52 AM
Is it "plausible" to save, as a file, a transcoded stream via the webserver?
(ie: uncompressed video on server>transcoder>internet>laptop harddrive)
While streaming a transcoded video, you loose the ability to FF,RR, pause because transcoding is done in real time. If you could save the stream, you can play it back at a later time without loosing media control.
Also because videos are transcoded in real time, the time it takes for a "transcoded file transfer" would be 1x the playback time, true? Or, would it compress at a faster rate for this kind of solution.
Its possible to playback recorded TV as its recording (live), any reason it couldn't be done with this?
Anyway to do this at all at this point? I know the webserver doesn't currently support this.
Slugger
07-13-2008, 04:13 PM
Firefox 3 does not allow overriding of the Content-Type header for POST requests and the default header value from FF3 is:
application/x-www-form-urlencoded; charset=UTF-8
Post requests sent to the web server with this header are ignored because of the ending encoding specification. Can Serve.java be changed to accept these types of Content-Type headers?
Change line 1833 from:
if(WWWFORMURLENCODE.equals(getContentType()))
to:
if(WWWFORMURLENCODE.startsWith(getContentType()))
Ideally, if the charset encoding is present then the web server would honour that as well, but just accepting such headers and ignoring the charset would be more than enough.
This issue is causing a problem with my SJQ plugin. Details of the issue are here (http://forums.sagetv.com/forums/showthread.php?p=292697&postcount=123).
While in there, if you could increase the value of MAX_FORM_LENGTH to 100,000 or even 1,000,000 then that would be greatly appreciated as some users of SJQ have hit the 10,000 limit when submitting data to the server. Details of the issue are available here (https://sourceforge.net/tracker/index.php?func=detail&aid=2017544&group_id=224301&atid=1061469), here (http://forums.sagetv.com/forums/showthread.php?p=280235&postcount=1947), and here (http://forums.sagetv.com/forums/showthread.php?p=280234#post280234).
Help appreciated.
spvoyek
07-18-2008, 06:14 AM
Using the Search EPG feature of the webserver to find programs limited to category Golf, I get no results. I need to select Sports event (with or without Golf also selected), but then I get a list of all Sports events, including Golf. The Golf programs are categorized as Sports event/Golf. I'm guessing this is a behavior of the SageTV server and the webserver is simply reporting what it's been told. I've done a few other tests and it appears that only the first category listed for a program is checked.
CANightHawk
08-03-2008, 04:31 PM
Hi everyone !
Not sure if I should start a separate thread for this. Feel free to move me around. :)
How do I change the RSS name of the feed created when you click the "RSS" button to export a URL from the Search Box in the webserver? {nifty trick, by the way .. to have iTunes auto-download your compressed video files after they've been created by SageTV}
For example, I open up my web browser and click on this RSS link that SageTV created when I clicked the RSS button on the webserver Search window:
http://mywebserver:myport/sage/Search?SearchString=&searchType=TVFiles&Video=on&DVD=on&search_fields=title&filename=*.mp4&TimeRange=0&Categories=**Any**&Channels=**Any**&watched=any&dontlike=any&favorite=any&firstruns=any&hdtv=any&archived=any&manrec=any&autodelete=any&partials=none&sort1=airdate_asc&sort2=none&grouping=None&pagelen=100
This gives me back an RSS feed titled 'All Recordings matching "" '. I would like it to say "All Recordings." But how can I change that, where to look? :confused:
Also, each individual item inside the Podcast has quotes around the show name, and "at Aug 03, 2008 3:00 PM on - (30:00)" at the end; a screen real estate waster for me on my iPod because I already see the length and time of the show in grey at the bottom of the clip name.
What it should read (if possible) is:
The Gong Show With Dave Attell
30:00 7/25
instead of what it presently has:
"The Gong Show With Dave Attell" at Jul 25, 2008 12:00 AM on -
30:00 7/25
and all the iPod will show me is:
"The Gong Show Wit..."
30:00 7/25
Neverminding the title, can't reprogram the iPod, but how to get rid of the other clutter? is this a setting, preference, something I need to type in after I've created the RSS link? I would prefer to only have to set it up once, and not have to modify iTunes files EVERY time a new show comes in..
This plugin is amazing, by the way. I am grateful to those who made it happen, and to those who keep it working.
Thanks all for your assistance! :thumb:
geogecko
08-03-2008, 04:44 PM
Wow, while I have no advice on how to do that, that is amazing. Never thought about using iTunes that way, in order to transfer content to the iPod/Phone. I am planning on getting the iPhone next month, and this will make it a lot easier to transfer shows over to it...now just have to decide what shows I want on it...:thumb:
geogecko
08-03-2008, 05:24 PM
How do you have iTunes autodownload? I try and copy the generated RSS location into a Podcast, and it just dings at me, like the link is too long or something.
jreichen
08-03-2008, 05:50 PM
How do you have iTunes autodownload? I try and copy the generated RSS location into a Podcast, and it just dings at me, like the link is too long or something.I've never tried RSS with iTunes, but the wiki page (http://tools.assembla.com/sageplugins/wiki/WebserverItunes) might help...
CANightHawk
08-04-2008, 09:29 AM
How do you have iTunes autodownload? I try and copy the generated RSS location into a Podcast, and it just dings at me, like the link is too long or something.
Mmmm, not sure what you did but in iTunes I went to Advanced > Subscribe to Podcast, and pasted in the URL that I had above (obviously changing for my webserver IP and port #) and I have things coming in fine that way. My only stumbling block right now is just the naming conventions which I am trying to modify.
Anyone .. Anyone .. Bueller .. Bueller .. ?? :D :p :D
bcjenkins
08-04-2008, 10:23 AM
So.. I was frustrated by this very same thing and I ended up writing a script (bash in Linux) which looks for the shows I want, compresses to mp4 for iPod Touch, and places them in a web directory with a feed.xml file that does contain all the appropriate data entries. This is all done outside of SageTV, btw.
To obtain the data, I used nielm's xml generator. That said, someone with real programming skills will need to modify the RSS generation so that it includes the appropriate bits.
B
nielm
08-04-2008, 05:11 PM
How do I change the RSS name of the feed created when you click the "RSS" button to export a URL from the Search Box in the webserver? Add "&title=my custom title" to the URL... (added in v2.21 (http://tools.assembla.com/sageplugins/wiki/WebServer#VersionHistory))
There is currently no way of changing the titles of each show in the results though...
geogecko
08-05-2008, 08:10 AM
I've never tried RSS with iTunes, but the wiki page (http://tools.assembla.com/sageplugins/wiki/WebserverItunes) might help...
Thanks, that explains it.
I wasn't aware that the URL could be shortened, and still work.
On a second note, it is annoying to see shows duplicated in the Sage UI, can I put the compressed versions in a folder that is not an import directory in Sage, and still have the webserver able to find them in a search?
CANightHawk
08-05-2008, 11:56 AM
Add "&title=my custom title" to the URL... (added in v2.21 (http://tools.assembla.com/sageplugins/wiki/WebServer#VersionHistory))
There is currently no way of changing the titles of each show in the results though...
Absolutely, mindbogglingly, BRILLIANT!! :clap: :dance: :clap:
nielm, this is definitely a step in the right direction. Thank you so very much for digging up that info. I am now able to sort and manage my auto-converted TV shows in iTunes and things look good.
My RSS feed is as follows, in this case it's for Unbeatable Banzuke; tested and downloading right now. Just copy-and-paste into iTunes under Advanced > Subscribe to Podcast ... Obviously change webserver and port to the proper values. :D
http://webserver:port/sagepublic/Rss/Search?SearchString=Unbeatable+Banzuke&searchType=TVFiles&Video=on&DVD=on&search_fields=title&filename=*.mp4&TimeRange=0&Categories=**Any**&Channels=**Any**&pagelen=10&title=Unbeatable%20Banzuke
Question though, why do you believe the podcast title of each show can't be changed in the same way? [I'm referring to "Unbeatable Banzuke" at Aug 5, 2008 12:30am on -"]. Isn't that an autogenerated form somewhere, just like the page/feed title? I don't mind changing some code if it won't interfere with SageTV operation ..
nielm
08-05-2008, 05:04 PM
Question though, why do you believe the podcast title of each show can't be changed in the same way? [I'm referring to "Unbeatable Banzuke" at Aug 5, 2008 12:30am on -"]. Isn't that an autogenerated form somewhere, just like the page/feed title? I don't mind changing some code if it won't interfere with SageTV operation .. I meant that there is no simple way of changing how the RSS titles are generated: the java webserver code would have to be changed...
geogecko
08-05-2008, 07:04 PM
On a second note, it is annoying to see shows duplicated in the Sage UI, can I put the compressed versions in a folder that is not an import directory in Sage, and still have the webserver able to find them in a search?
I guess this doesn't work, as the web server only finds one of two copies of a recorded show. One is in an import directory, the other is not, and it won't find that copy.
Is there a way to avoid having a recording showing up twice in the recordings section of Sage?
EDIT, Nevermind, it does seem to find files in non import directories, as long as they aren't identical files (i.e., same extension)...cool.
cslatt
08-05-2008, 08:47 PM
Also, each individual item inside the Podcast has quotes around the show name, and "at Aug 03, 2008 3:00 PM on - (30:00)" at the end; a screen real estate waster for me on my iPod because I already see the length and time of the show in grey at the bottom of the clip name.
I made a Yahoo Pipe to try to take care of your issues. Give it a shot. Go here:
http://pipes.yahoo.com/pipes/pipe.info?_id=xK7qYmFj3RG9tlvjw0muhA
Fill in the url of your feed, hit "run pipe" and then grab the RSS feed it generates and see if it is more to your liking.
jreichen
08-05-2008, 11:50 PM
I guess this doesn't work, as the web server only finds one of two copies of a recorded show. One is in an import directory, the other is not, and it won't find that copy.
Is there a way to avoid having a recording showing up twice in the recordings section of Sage?
EDIT, Nevermind, it does seem to find files in non import directories, as long as they aren't identical files (i.e., same extension)...cool.Are you saying it finds files that aren't in an import directory or a recording directory? The webserver searches the SageTV database, and I wouldn't think that would know about anything else. :confused: It must be getting late...
Also, make sure you select the right search type option: EPG Airings, Recorded TV Files, or Imported Media Files. That will affect the results you see.
CANightHawk
08-06-2008, 01:31 AM
I made a Yahoo Pipe to try to take care of your issues. Give it a shot. Go here:
http://pipes.yahoo.com/pipes/pipe.info?_id=xK7qYmFj3RG9tlvjw0muhA
Fill in the url of your feed, hit "run pipe" and then grab the RSS feed it generates and see if it is more to your liking.
cslatt and nielm, I *BOW* to your technical prowess. Many MANY thank you's. This rocks. I never even heard of Yahoo Pipes before tonight, and it seems to do the trick nicely. I am jumping for joy! :clap: :jump: :clap:
Couldn't have done it without you either, and my WAF just shot through the roof. Now she can watch her Oprah without lifting a finger except her thumb! :thumb:
Y'all rock :D
geogecko
08-06-2008, 06:44 AM
Are you saying it finds files that aren't in an import directory or a recording directory? The webserver searches the SageTV database, and I wouldn't think that would know about anything else. :confused: It must be getting late...
Also, make sure you select the right search type option: EPG Airings, Recorded TV Files, or Imported Media Files. That will affect the results you see.
It was late, but in a strange turn of events, something completely unexpected is happening now.
My import directories are:
/media_d/videos
/media_d/pictures
/media_d/dvd
etc.
A NON-IMPORT directory is:
/media_d/iPhone
When I compress a video, I send the compressed version to the above directory, and guess what? SageTV still imports it? So what is up with that?
I double checked, and the base /media_d directory is not listed as an import directory, for obvious reasons.
So, SageTV and the webserver are seeing that directory, even when they shouldn't be...
Homebuilder
08-07-2008, 03:00 AM
Hi,
I got the server working, can access via my iphone but can not play. Any way to make files play on a iphone? mpgs? or the converted mp4's?
Also, the mpg files stream over the net fine to a computer, but the mp4s that I converted will not play. Anything I am missing?
Any help is appreciated.
bcjenkins
08-07-2008, 04:21 AM
It was late, but in a strange turn of events, something completely unexpected is happening now.
My import directories are:
/media_d/videos
/media_d/pictures
/media_d/dvd
etc.
A NON-IMPORT directory is:
/media_d/iPhone
When I compress a video, I send the compressed version to the above directory, and guess what? SageTV still imports it? So what is up with that?
I double checked, and the base /media_d directory is not listed as an import directory, for obvious reasons.
So, SageTV and the webserver are seeing that directory, even when they shouldn't be...
SageTV is seeing the file, because it compressed the file and added it to the database. Maybe a note to support with a feature request to not do so would be in order. I'll send one too.
B
geogecko
08-07-2008, 12:23 PM
Thanks, I went ahead and submitted it, but I can see why they would do that.
If they do not add it to the database, and someone is using in place compression, then instead of their TV recordings showing up in the recordings, they would show up in Imported Videos.
So, really an option would be what is needed, possibly defaulting to adding it to the database, as more people would probably just be using in place compression, than for something like a portable video device.
rickgillyon
08-14-2008, 02:12 AM
Hi nielm/jreichen,
Is there a new version planned for 6.4? The channel handling on favourites is broken (for me anyway), so I can't add faves from the webserver (they never record). It's a pain having to fire up placeshifter having found something in the webserver's epg that I want to add...I guess I'm just lazy. ;)
Thanks as ever! :clap:
jreichen
08-14-2008, 06:45 AM
Nothing's in the plans that I know of, I've been focusing on the mobile version lately. I looked into this a while ago and IIRC the change to support multi-channel favorites shouldn't be too hard. I'll work on it next time I get a chance if nielm doesn't beat me to it :)
rickgillyon
08-14-2008, 07:05 AM
Thanks! I'm not that bothered about multi-channel faves myself, I'd just prefer that single-channel faves entered via the webserver worked... ;)
geogecko
08-15-2008, 07:47 AM
Thanks! I'm not that bothered about multi-channel faves myself, I'd just prefer that single-channel faves entered via the webserver worked... ;)
Hmm...always wondered why that seemed to stop working. I just figured it was something I ended up doing. I thought I found a away around it, but can't remember now. I think if I saved the fav without single channel selected first, then went back in and changed it, and saved, it would work...but I'm not sure.
BlueH2O
08-15-2008, 06:50 PM
So, has anyone had any luck yet with powering off HD extenders remotely? Power off for MVP from the webpage works like a charm in 2.22, but power off of the HD extender just hangs.
gplasky
08-18-2008, 06:48 AM
HD Extenders didn't exist when 2.22 was created. You'll just have to hope that nielm gets around to it and that it is even possible.
Gerry
bcjenkins
08-19-2008, 04:54 AM
Line 235 of this source (http://sageplugins.cvs.sourceforge.net/sageplugins/webserver/net/sf/sageplugins/webserver/ExtenderCommandServlet.java?revision=1.3&view=markup) has the command as poweroff. If you telnet to the extender poweroff doesn't seem to do the trick. Need to find the right command(s) and recompile the server.
B
Edit: Commands are actually the same as the MVP. Anyone know how to recompile this thing?
killall miniclient
Slugger
08-19-2008, 10:55 AM
Line 235 of this source (http://sageplugins.cvs.sourceforge.net/sageplugins/webserver/net/sf/sageplugins/webserver/ExtenderCommandServlet.java?revision=1.3&view=markup) has the command as poweroff. If you telnet to the extender poweroff doesn't seem to do the trick. Need to find the right command(s) and recompile the server.
B
Edit: Commands are actually the same as the MVP. Anyone know how to recompile this thing?
killall miniclient
I was about to reply with the same info, I figured it out yesterday that the command needed is the same as the MVP. I've actually got a version of the web server compiled with the change in it. Unfortunately, the HomeServlet is identifying my HDExtender as a regular Placeshifter client and isn't giving me the option to shut it off. I see the code that's causing it, but I don't see what the problem is. If I'm able to figure out this issue then I'll be able to test the HD Extender shutdown command.
bcjenkins
08-19-2008, 10:59 AM
Would you mind posting compiling instructions?
B
Slugger
08-19-2008, 11:38 AM
Would you mind posting compiling instructions?
B
I sent Niel a message a little while ago asking him how he does it and before he replied I went and setup my own build environment, which involved writing a series of ant build scripts and modifying the NSIS install scripts, etc. Took about 3 or 4 hours I guess, but it depends on your familiarity with ant and setting up build environments.
A couple days after I completed that, Niel responded with how he builds everything, which is what I suspected. He builds everything "manually" from within the Eclipse project. So first, you need to install Eclipse and checkout the project from SourceForge and load it into Eclipse. From there, I'll paste in Niel's response:
Hi, Niel:
I'm trying to setup a build environment for the webserver and I've got cygwin setup, but I don't see any ant scripts or anything in cvs to build the java code. Are you just exporting the JARs manually from Eclipse? If so, do you have a doc or some notes on where I need to export all the jars so the makefile in the webserver root will successfully build the install exe?
I build the jars manually...
I use eclipse which auto-builds the code, and there is also a JAR builder .jardesc in Eclipse (File->Export as JAR) -- for both the sageutils and sagewebserver projects but I cannot remember if it is checked it in...
Normally I just right-click it, and Build Jar...
I am on holiday at the moment, so only have occasional internet access: mail me any patches at ****, and I will deal with them when I come back in september...
Niel.
I'd paste in my ant scripts that I wrote, but they rely on my system's environment so much that they'd be useless somewhere else. Instead, I'll just share what I did to get an env setup:
Basically, you have to look at the Makefile in the webserver project. The makefile is what builds the installer. I simply reverse engineered the build process from that Makefile. So start with the target that builds the installer and figure out what it needs and go set that up (it needs NSIS, and expects it to be installed at a certain location, etc.). Next, the installer looks for JAR files in certain locations so you have to go and build the JARs it's looking to package. Then you'll find that the webserver depends on sageutils and sagexmlinfo so you need to download those projects and build them (again the makefile/NSIS are looking for those jars in certain spots so you have to build them and place them where NSIS is looking for them, etc.). After you're done tracing backwards through the build process you'll have an env capable of building an installer. Make your changes to the Java code, update the version tag in Version.java, rebuild the jars, run the makefile, install the newly built installer.
bcjenkins
08-19-2008, 11:46 AM
If I understand correctly, I can just rebuild the webserver.jar file with the modified class, stop sage, drop it in, start and go?
B
Slugger
08-19-2008, 12:09 PM
If I understand correctly, I can just rebuild the webserver.jar file with the modified class, stop sage, drop it in, start and go?
B
Basically, yes. But to do that, you're going to have to basically setup some kind of env as I've described. You might be able to get away with less than what I ended up doing, but still something has to be done. For example, the ExtenderCommandServlet.java file that you want to recompile won't build without at least Sage.jar (for the Sage API calls), servlet.jar (for the J2EE servlet implementations) and sageutils.jar in the classpath. You might be able to get away with just copying those jars out and including them in the classpath for javac, not sure. If it does work, then it should be fine. I just chose to build a complete env partly because I was looking to change the actual web server code itself and also because with a complete env I can now mod/rebuild anything with minimal effort (such as the power command change being discussed here).
bcjenkins
08-19-2008, 12:16 PM
In Eclipse:
Check out via cvs webserver, sagexmlinfo, and sageutils. Pointed to Sage.jar to resolve its dependency. Compiled, about to test.
B
I think we're getting to the same place.. java.lang.NullPointerException
Tue 8/19 14:28:04.881 at sage.e$d.a(Unknown Source)
Tue 8/19 14:28:04.881 at sage.e.a(Unknown Source)
Tue 8/19 14:28:04.881 at sage.SageTV.apiUI(Unknown Source)
Tue 8/19 14:28:04.881 at net.sf.sageplugins.sageutils.SageApi.ApiUI(SageApi.java:38)
Tue 8/19 14:28:04.881 at net.sf.sageplugins.sageutils.SageApi.ApiUI(SageApi.java:58)
Tue 8/19 14:28:04.881 at net.sf.sageplugins.webserver.ExtenderCommandServlet.isExtender(ExtenderCommandServlet.java:21)
Tue 8/19 14:28:04.881 at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:181)
Tue 8/19 14:28:04.881 at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
Tue 8/19 14:28:04.881 at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
Tue 8/19 14:28:04.881 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
Tue 8/19 14:28:04.881 at Acme.Serve.ServeConnection.runServlet(Serve.java:1501)
Tue 8/19 14:28:04.881 at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
Tue 8/19 14:28:04.881 at Acme.Serve.ServeConnection.run(Serve.java:1363)
Tue 8/19 14:28:04.882 at java.lang.Thread.run(Unknown Source)
java.lang.reflect.InvocationTargetException: Exception while executing SageApi: "IsRemoteUI()" numargs=0
java.lang.reflect.InvocationTargetException: Exception while executing SageApi: "IsRemoteUI()" numargs=0
Tue 8/19 14:28:04.882 at net.sf.sageplugins.sageutils.SageApi.ApiUI(SageApi.java:47)
Tue 8/19 14:28:04.882 at net.sf.sageplugins.sageutils.SageApi.ApiUI(SageApi.java:58)
Tue 8/19 14:28:04.882 at net.sf.sageplugins.webserver.ExtenderCommandServlet.isExtender(ExtenderCommandServlet.java:21)
Tue 8/19 14:28:04.882 at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:181)
Tue 8/19 14:28:04.882 at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
Tue 8/19 14:28:04.882 at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
Tue 8/19 14:28:04.882 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
Tue 8/19 14:28:04.882 at Acme.Serve.ServeConnection.runServlet(Serve.java:1501)
Tue 8/19 14:28:04.882 at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
Tue 8/19 14:28:04.882 at Acme.Serve.ServeConnection.run(Serve.java:1363)
Tue 8/19 14:28:04.882 at java.lang.Thread.run(Unknown Source)
Tue 8/19 14:28:04.882 Caused by: java.lang.reflect.InvocationTargetException
Tue 8/19 14:28:04.882 at sage.SageTV.apiUI(Unknown Source)
Tue 8/19 14:28:04.882 at net.sf.sageplugins.sageutils.SageApi.ApiUI(SageApi.java:38)
Tue 8/19 14:28:04.882 ... 10 more
Tue 8/19 14:28:04.883 Caused by: sage.a.e: Error in method reflection of IsRemoteUI() of java.lang.NullPointerException
Tue 8/19 14:28:04.883 at sage.e$d.a(Unknown Source)
Tue 8/19 14:28:04.883 at sage.e.a(Unknown Source)
Tue 8/19 14:28:04.883 ... 12 more
java.lang.NullPointerException
Tue 8/19 14:28:04.883 at sage.e$d.a(Unknown Source)
Tue 8/19 14:28:04.883 at sage.e.a(Unknown Source)
Tue 8/19 14:28:04.883 at sage.SageTV.apiUI(Unknown Source)
Tue 8/19 14:28:04.883 at net.sf.sageplugins.sageutils.SageApi.ApiUI(SageApi.java:38)
Tue 8/19 14:28:04.883 at net.sf.sageplugins.sageutils.SageApi.ApiUI(SageApi.java:58)
Tue 8/19 14:28:04.883 at net.sf.sageplugins.webserver.ExtenderCommandServlet.isExtender(ExtenderCommandServlet.java:21)
Tue 8/19 14:28:04.883 at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:181)
Tue 8/19 14:28:04.883 at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
Tue 8/19 14:28:04.883 at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
Tue 8/19 14:28:04.883 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
Tue 8/19 14:28:04.883 at Acme.Serve.ServeConnection.runServlet(Serve.java:1501)
Tue 8/19 14:28:04.883 at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
Tue 8/19 14:28:04.883 at Acme.Serve.ServeConnection.run(Serve.java:1363)
Tue 8/19 14:28:04.884 at java.lang.Thread.run(Unknown Source)
java.lang.reflect.InvocationTargetException: Exception while executing SageApi: "IsRemoteUI()" numargs=0
java.lang.reflect.InvocationTargetException: Exception while executing SageApi: "IsRemoteUI()" numargs=0
Tue 8/19 14:28:04.884 at net.sf.sageplugins.sageutils.SageApi.ApiUI(SageApi.java:47)
Tue 8/19 14:28:04.884 at net.sf.sageplugins.sageutils.SageApi.ApiUI(SageApi.java:58)
Tue 8/19 14:28:04.884 at net.sf.sageplugins.webserver.ExtenderCommandServlet.isExtender(ExtenderCommandServlet.java:21)
Tue 8/19 14:28:04.884 at net.sf.sageplugins.webserver.HomeServlet.doServletGet(HomeServlet.java:181)
Tue 8/19 14:28:04.884 at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
Tue 8/19 14:28:04.884 at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
Tue 8/19 14:28:04.884 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
Tue 8/19 14:28:04.884 at Acme.Serve.ServeConnection.runServlet(Serve.java:1501)
Tue 8/19 14:28:04.884 at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
Tue 8/19 14:28:04.884 at Acme.Serve.ServeConnection.run(Serve.java:1363)
Tue 8/19 14:28:04.884 at java.lang.Thread.run(Unknown Source)
Tue 8/19 14:28:04.884 Caused by: java.lang.reflect.InvocationTargetException
Tue 8/19 14:28:04.884 at sage.SageTV.apiUI(Unknown Source)
Tue 8/19 14:28:04.884 at net.sf.sageplugins.sageutils.SageApi.ApiUI(SageApi.java:38)
Tue 8/19 14:28:04.884 ... 10 more
Tue 8/19 14:28:04.884 Caused by: sage.a.e: Error in method reflection of IsRemoteUI() of java.lang.NullPointerException
Tue 8/19 14:28:04.884 at sage.e$d.a(Unknown Source)
Tue 8/19 14:28:04.885 at sage.e.a(Unknown Source)
Tue 8/19 14:28:04.885 ... 12 more
I wonder if it is because I am in java 1.5 on my Mac?
jreichen
08-19-2008, 12:20 PM
If I understand correctly, I can just rebuild the webserver.jar file with the modified class, stop sage, drop it in, start and go?
BYes. That's much easier. There's a build.xml under the Eclipse project that should be able to create your jar for you. I've never built the webserver for releasing it (updating version number, uploading to download location, etc.), I just build the jar and copy to the server.
There are some instructions on the wiki for how to update the webserver without restarting Sage. I wrote a custom classloader to eliminate restarts and speed up development. (Code, deploy, test, code, deploy, test...)
I'll try to work on this and the Favorites bug soon, but will let Niel package everything up for releasing it. Telnet wasn't working for me, though. Not sure why, it worked the other day when I was looking at your firmware update scripts.
Slugger
08-19-2008, 01:46 PM
In Eclipse:
Check out via cvs webserver, sagexmlinfo, and sageutils. Pointed to Sage.jar to resolve its dependency. Compiled, about to test.
B
I think we're getting to the same place..
I wonder if it is because I am in java 1.5 on my Mac?
Yeah, I was able to track my problem down to a TargetInvocationException calling IsRemoteUI(), which your stack trace also appears to be showing. I assume you're running 6.4.x as well? Now I don't know if the Sage API is broken or the API call has changed in 6.4 and therefore the web server is broken (quick scan suggests this isn't it) or something completely different. I'm running Java 1.6 myself and getting the exception (on XP) so I think we can eliminate that. My self-imposed SageTV play time has expired for the day so I might tackle this tomorrow or Thu night. Keep me updated if you figure anything out.
bcjenkins
08-19-2008, 02:04 PM
The released version works fine for MVPs, so I don't think there is a 6.4 issue. Maybe I need to drop in a new sageutils as well?
B
PS - I have never done this before (java programming), so it is just a guess.
Slugger
08-19-2008, 02:14 PM
The released version works fine for MVPs, so I don't think there is a 6.4 issue. Maybe I need to drop in a new sageutils as well?
B
PS - I have never done this before (java programming), so it is just a guess.
I hate leaving things when they're broke. ;-) Don't know why it came to me as I fired up the BBQ, but it did and I was right.
In ExtenderCommandServlet.java...
All the calls to "IsRemoteUI()", "IsDesktopUI()", etc. need the () removed in the strings. So instead of "IsRemoteUI()" use "IsRemoteUI" and so on. That will fix the TargetInovationExceptions.
So now I'm able to attempt the power down, but it's still hanging. I definitely have to stop now or my medium-rare steak is going to end up well done. ;)
I'll check back before bed to see if someone's got the hanging problem fixed.
steve909
08-19-2008, 07:45 PM
Sorry to interrupt the flow here, but I would really love to add the webserver to my setup but it refuses to work.
Set up:
P4HT 3.2/1Gig Ubuntu 8.04 all updates, java 1.6 Sage 6.4.8
I followed instructions found at various places. I've unzipped to /opt/sagetv/app (created the folder) and /opt/sagetv/server, unzipped the JARs and edited Sage.Properties. An interesting thing is that Sage.Properties will not stay edited so I can't add the ServerStart line. If I reboot, the entry after the load_at_startup= disappears.
http://localhost:8080/sage/Home just gets an error 'connection refused but the site seems valid' message in firefox3.
Can anyone direct me anywhere for help, or give me instructions as to how to install correctly and start the server? I'd be really obliged as this is a 'must have' app for me.
Thanks
Slugger
08-19-2008, 07:50 PM
Ok... I've now got working Java code that can reliably telnet into an HD extender and power it off. I haven't integrated it into the web server code yet, but I don't see any reason why it won't work there.
The problem is that the telnet server running on the HD extenders is much more stringent when it comes to enforcing the telnet protocol than that of the MVP devices. The current simple socket code used for the MVP will not work with the HD extenders.
To save time and effort, I simply grabbed the Apache Commons Net JAR (http://commons.apache.org/downloads/download_net.cgi) and used the TelnetClient class from it to do the dirty work. Here's the program I wrote with this library that telnets into my HD extender and powers it down:
package test.sagetv;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import org.apache.commons.net.telnet.TelnetClient;
public class Telnet {
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
TelnetClient c = new TelnetClient();
c.connect("192.168.1.116"); // Sub your HD extender IP here
InputStreamReader reader = new InputStreamReader(c.getInputStream());
PrintWriter writer = new PrintWriter(c.getOutputStream(), true);
while(reader.read() != 32); // Must read login prompt before sending login name
writer.println("root"); // Sending login creds
writer.println("killall miniclient"); // Sending command
Thread.sleep(1500); // Give it a sec to do its thing
c.disconnect();
}catch(Exception e) {
e.printStackTrace();
}
}
}
I don't know what Niel's going to want to do - either grab the Apache Commons Net package and implement some form of this or if he knows of a better/cleaner way, but if you want the ability to power off your HD extender from the web server then here's some code you can integrate into the web server to make it happen. I'll post my results once I integrate this into the web server code, but I've ran this program a dozen or so times with success on every run so I suspect if one wants the power off ability it's just a matter of integrating some form of the above into the web server code.
jreichen
08-19-2008, 10:36 PM
An interesting thing is that Sage.Properties will not stay edited so I can't add the ServerStart line. If I reboot, the entry after the load_at_startup= disappears.Make sure the SageTV Server is shut down when you are editing the Sage.properties file.
steve909
08-20-2008, 12:59 AM
Thanks very much, that was what I was missing!
I then was asked for the username/password which completely threw me for a bit until I remember reading somewhere it was sage/frey. That got me in.
I've got to remember where I read how to change it now...
Thanks again for the reply.
jreichen
08-20-2008, 06:16 AM
Thanks very much, that was what I was missing!
I then was asked for the username/password which completely threw me for a bit until I remember reading somewhere it was sage/frey. That got me in.
I've got to remember where I read how to change it now...
Thanks again for the reply.Not shutting down SageTV when editing Sage.properties has to be the most frequently reported source of confusion around here. I imagine everyone has done it at least once.
Username/password instructions are on the wiki (http://tools.assembla.com/sageplugins/wiki/WebserverCustomisation). They are in the webserver/realms.properties file. SageTV doesn't need to be shut down while editing this properties file, but it does need to be restarted before the changes take effect.
Slugger
08-20-2008, 08:35 AM
Ok, I've integrated my Java code from above into the web server code and I've now got the web server able to shutdown my HD extender. One slight change required in my above Java code:
Add Thread.sleep(1000); after the while loop and after each writeln(). With that the web server is able to shut down HD extenders.
bcjenkins
08-20-2008, 12:49 PM
Would you mind posting your jar file?
B
Slugger
08-20-2008, 06:58 PM
Would you mind posting your jar file?
B
Drop the contents into the SageTV JARs folder (replacing the nielm_sagewebserver.jar and adding the commons-net jar).
EDIT: This jar only fixes the "power off" link for HD extenders, I didn't bother looking at the reboot option. Also, it shouldn't break MVP functionality, but no promises. Actually, no guarantees that something doesn't break by applying this (though it seems to be working for me).
EDIT: Attachment removed
steve909
08-20-2008, 10:45 PM
Not shutting down SageTV when editing Sage.properties has to be the most frequently reported source of confusion around here. I imagine everyone has done it at least once.
Username/password instructions are on the wiki (http://tools.assembla.com/sageplugins/wiki/WebserverCustomisation). They are in the webserver/realms.properties file. SageTV doesn't need to be shut down while editing this properties file, but it does need to be restarted before the changes take effect.
Thanks again for the nudge, you've been really helpful. I won't make that mistake again (I bet I do).
I've accessed my computer from work tonight (you might notice from the timezone I work night shifts) and scheduled a recording, all worked fine, the webserver is exactly what I needed. I can even use it via my PDA/Phone.
I see this thread is above my head, so I will bow out and let you get back to it.
Cheers!
bcjenkins
08-21-2008, 07:38 AM
Drop the contents into the SageTV JARs folder (replacing the nielm_sagewebserver.jar and adding the commons-net jar).
EDIT: This jar only fixes the "power off" link for HD extenders, I didn't bother looking at the reboot option. Also, it shouldn't break MVP functionality, but no promises. Actually, no guarantees that something doesn't break by applying this (though it seems to be working for me).
Thanks for the JAR files. They did not work for me, but my assumption is that the java versions are not the same. I am on 1.5, you are on 1.6.
B
Slugger
08-21-2008, 08:42 AM
Thanks for the JAR files. They did not work for me, but my assumption is that the java versions are not the same. I am on 1.5, you are on 1.6.
B
Yeah, I assume Niel compiles against Java 1.5 (or maybe even 1.4)? I compiled everything against 1.6 so that jar will probably refuse to load on 1.5.
jreichen
08-21-2008, 11:36 AM
Yeah, I assume Niel compiles against Java 1.5 (or maybe even 1.4)? I compiled everything against 1.6 so that jar will probably refuse to load on 1.5.The Java compiler has an option to compile classes into 1.5 format. Eclipse projects and the Ant javac task both have options that can pass the value to the compiler.
Slugger
08-21-2008, 03:22 PM
The Java compiler has an option to compile classes into 1.5 format. Eclipse projects and the Ant javac task both have options that can pass the value to the compiler.
Here's the jar built with a target of Java 1.5. From what I can gather, the Apache commons-net jar should also be fine for Java 1.5.
jreichen
08-24-2008, 07:16 PM
Hmm...always wondered why that seemed to stop working. I just figured it was something I ended up doing. I thought I found a away around it, but can't remember now. I think if I saved the fav without single channel selected first, then went back in and changed it, and saved, it would work...but I'm not sure.Yep, I confirmed that works for single-channel faves. I'm not sure when or how it broke. :confused:
killervette
09-04-2008, 07:05 PM
I get this error alot trying to change the channel on my extender. any ideas
Unknown Airing/MediaFile ID passed
bcjenkins
09-05-2008, 02:46 AM
Here's the jar built with a target of Java 1.5. From what I can gather, the Apache commons-net jar should also be fine for Java 1.5.
This has been working for me. Thank you!
B
jreichen
09-06-2008, 12:04 PM
Hi nielm/jreichen,
Is there a new version planned for 6.4? The channel handling on favourites is broken (for me anyway), so I can't add faves from the webserver (they never record). It's a pain having to fire up placeshifter having found something in the webserver's epg that I want to add...I guess I'm just lazy. ;)
Thanks as ever! :clap:What version of the webserver are you using? Nielm made a fix for favorite channels in version 2.21 back in December. (It had nothing to do with supporting multi-channel faves, though).
jreichen
09-06-2008, 12:09 PM
I get this error alot trying to change the channel on my extender. any ideas
Unknown Airing/MediaFile ID passedI just saw this in the RSS feeds. It looks like the URL has 'AiringId=xxx' in it, but the id it is using is the media file id. So either the web server should use the airing id, or change the parameter name so the URL would be 'MediaFileId=xxx'. FYI, you can see the ids at the bottom of the detailed info page for a recording.
rickgillyon
09-06-2008, 05:37 PM
What version of the webserver are you using?
v2.22
jreichen
09-07-2008, 01:03 PM
I have a question for those of you using podcasts in iTunes. I added a podcast for all episodes of a show and it only shows the first episode of 50+. It looks like it's trying to copy the video file to my laptop. I would expect it to only load the metadata unless I click on something to download the video. I changed the setting "When new episodes are available" to "Do Nothing", but that didn't change the behavior.
...
OK, before posting this, I saw a download in progress. I paused all downloads, then went back to update the pocast, but it still only shows one episode. I verified the feed has 50+ entries.
I'm using iTunes 7.7.1.11.
Fonceur
09-07-2008, 01:50 PM
Add Thread.sleep(1000); after the while loop and after each writeln(). With that the web server is able to shut down HD extenders.
Are you sure this wasn't the problem using Nielm's code with the HD Extender in the first place, and that the Appache common Net is overkill? ;)
Slugger
09-07-2008, 08:11 PM
Are you sure this wasn't the problem using Nielm's code with the HD Extender in the first place, and that the Appache common Net is overkill? ;)
Tried that orginally - seems the basic socket code used for the MVPs doesn't account for the initial telnet protocol handshaking that the telnet daemon running on the HD100s is expecting. Is Apache Commons overkill? Maybe, but got me a working HD extender power off in about 20 mins. ;)
Fonceur
09-07-2008, 08:36 PM
Tried that orginally - seems the basic socket code used for the MVPs doesn't account for the initial telnet protocol handshaking that the telnet daemon running on the HD100s is expecting.
Actually, by adding your delays I got Nielm's code to work, so one less .jar to worry about. ;)
Slugger
09-08-2008, 12:46 PM
Actually, by adding your delays I got Nielm's code to work, so one less .jar to worry about. ;)
Interesting... maybe I didn't try the sleeps before grabbing the apache commons lib. As I say, I'm sure Niel will come up with an easier/cleaner/simpler sol'n when he gets around to fixing it. Obviously, not having to add a 3rd party dependency is much preferred.
FidgetyRat
09-14-2008, 08:41 AM
I tried to search for this but could not find an answer.
Is there away to do away with the /sage/home component of the URL? My server is ONLY running sageTV so it would be much nicer to type http://server and get the web UI instead of the whole path..
I tried to search for this but could not find an answer.
Is there away to do away with the /sage/home component of the URL? My server is ONLY running sageTV so it would be much nicer to type http://server and get the web UI instead of the whole path..
The only way I can think of doing it is to put a redirect in index.html in the folder
c:\program files\sagetv\sagetv\webserver\webroot
Edit the file and put some code in like below
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=http://servername/sage/home"></HEAD>
<BODY>
</BODY>
</HTML>
If you're using a different port for the webserver then add that to the end of the line, ie //servername:8080/sage/home
FidgetyRat
09-14-2008, 09:19 AM
The only way I can think of doing it is to put a redirect in index.html in the folder
I edited the default file under the webroot but for some reason it continues to use the old default of redirecting to blank and printing the nothing to see here notification, even after a system reboot..
Odd.
I don't understand that. I just pasted the code above and replaced the existing code in the file.
I've got apache on my sage server which uses port 80 so I'm using 8959 instead. If I go to http//sageserver:8959 it automatically gets forwarded to http://sageserver:8959/sage/home
You're not running Vista are you?
FidgetyRat
09-14-2008, 11:37 AM
I don't understand that. I just pasted the code above and replaced the existing code in the file.
I've got apache on my sage server which uses port 80 so I'm using 8959 instead. If I go to http//sageserver:8959 it automatically gets forwarded to http://sageserver:8959/sage/home
You're not running Vista are you?
No, I did figure it out though. My browser cached the old index so the new one isn't getting loaded. A different PC showed the proper behavior.
Thanks
markley268
09-14-2008, 01:32 PM
So here's a weird one for ya......when i load to my 2.6.24-16-server ubuntu kernel, i can get to the 'home' page of the webserver http://sever/sage/Home
but when i have my 2.6.24-19-server kernel loaded, the 'home' page doesn't load. All the other pages load just fine, but the browser just sits there saying it's transferring data from the server and never loads the page when i try the /sage/Home page.
Any ideas? Is there an easy place for me to edit to see if there's something specific on the home page that is preventing the whole thing from loading?
jreichen
09-14-2008, 08:12 PM
I'm running 2.6.24-19-generic and haven't seen that problem. I'm using Java 1.6.0_06.
Does your sagetv_0.txt file have any errors in it?
The page is generated by a servlet so it wouldn't be very easy to modify it, unless you're a Java programmer.
zoundz
09-15-2008, 01:05 AM
Probably been asked and answered a bunch, but I couldn't find it. Running the latest webserver on WinXP running SageTV in service mode. When I connect to the web page and tell it to stream the original video of a recording in the web player, it works just fine. If, however, I tell it to play the original stream of a program that is currently recording, it stops with "no video" in the embedded screen. If I tell it to transcode the same program to mpeg 2 it works just fine. This occurs running the browser on either the same machine as the server or on another machine on the lan. I have the latest VLC with mozilla plugin and the directx plugin. The behavior is the same in Firefox, in an IE window in Firefox, and in IE itself.
I guess the question is whether I am missing something or is this a feature or is this a bug.
Inquiring minds want to know.
Thanks
davephan
09-16-2008, 04:56 AM
I installed the webserver, and it works great. However, I did not see a way to log off anywhere. When I log off, then close the web browser, the next time I connect, there is no username or password required. I am concerned that someone would follow my connection to the webserver without a username or password to connect.
Is there a way to log off, so the next time a connection is tried, a username and password is required?
Dave
bcjenkins
09-16-2008, 05:00 AM
If you exit the browser it should prompt you the next time.
B
davephan
09-16-2008, 11:23 AM
My computer and browser is not setup to remember usernames and passwords. Yet, when I close the Firefox, and re-connect, then there is no request for the username and password. The SageTV web page opens up without a username or password.
I go to other web sites, such as Yahoo or Google e-mail, and there is an icon for logging off. I did not see anything on the menu or an icon to log off the web page.
Dave
jbuszkie
09-16-2008, 05:16 PM
This Web interface is an awesome capability, works great! I've been searching for a way to start a named Music playlist in Sage to play in SageTV. Any way to do this via the web server?
Thanks,
John
I don't know if this was ever answered... Is there a way to play a playlist via the webserver? I sometimes like to listen to music on the extender and don't want to turn the tv on to get to it.
Jim
Brent
09-16-2008, 09:01 PM
I don't know if this was ever answered... Is there a way to play a playlist via the webserver? I sometimes like to listen to music on the extender and don't want to turn the tv on to get to it.
Jim
Play music via webserver:
In webserver put your mouse over the "media library" menu item
From the "media library" menu select "export playlists"
You should now see a list of each playlist you have on SageTV.
From these lists you can select wvx, m3u or pls and once you select one of those it should open that playlist in your music player on your PC and then you can listen to your music streamed from your SageTV server to your PC webserver.
jbuszkie
09-16-2008, 09:21 PM
I want to actually want to play it on the extender... Not the PC that I'm using the web page on... I can play a show or music file on the extender... but not a playlist as I far as I can tell
Brent
09-16-2008, 09:22 PM
I want to actually want to play it on the extender... Not the PC that I'm using the web page on... I can play a show or music file on the extender... but not a playlist as I far as I can tell
This thread is really for the web interface though.
But you should be able to play a music playlist using your extender just as you can on your SageTV server PC.
jbuszkie
09-17-2008, 05:27 AM
I think you are misunderstanding me.. I want to start playing a playlist on the extender USING the web interface to start it!
jreichen
09-17-2008, 06:20 PM
The web remote can control different extenders, but it just navigates the extender UI. The TV has to be turned on to see what's happening.
jbuszkie
09-17-2008, 07:13 PM
I can play a recording in the extender but just clicking on the recording and then hitting the "play on extender" button. I'd like the same functionality with playlists.. I'd like to browse the playlists and then start one playing.
Jim
pjpjpjpj
09-18-2008, 04:28 PM
Alright, I have a problem. I have had the webserver running fine for the last two Sage versions that I used (6.3.10, 6.4.3 beta). I installed 6.4.8, and now it is not working. When I attempt to access it in IE, it just gives me the "Internet Explorer cannot display the webpage" error (same old error as if you tried a website that did not exist).
I am running Java 1.6.0_06, and webserver 2.22.
Since installing 6.4.8, do I have to do anything or change anything to get it working? I don't recall having to do a thing when I went from 6.3.10 to 6.4.3.
Disclaimer: this whole webserver/Java/code/xml stuff is way over my head, so be gentle with me please. :D I was able to follow the instructions to get it working in the first place, but if I need to edit some code or something, please "talk me through it".
waynedunham
09-18-2008, 04:52 PM
Alright, I have a problem. I have had the webserver running fine for the last two Sage versions that I used (6.3.10, 6.4.3 beta). I installed 6.4.8, and now it is not working. When I attempt to access it in IE, it just gives me the "Internet Explorer cannot display the webpage" error (same old error as if you tried a website that did not exist).
I am running Java 1.6.0_06, and webserver 2.22.
Since installing 6.4.8, do I have to do anything or change anything to get it working? I don't recall having to do a thing when I went from 6.3.10 to 6.4.3.
Disclaimer: this whole webserver/Java/code/xml stuff is way over my head, so be gentle with me please. :D I was able to follow the instructions to get it working in the first place, but if I need to edit some code or something, please "talk me through it".
I finally installed 6.48 this afternoon. I'm running Java version 1.6.0_07. I am still using version 2.20 of the webserver though.
I just tried accessing through both Firefox (my default) and IE (v6) with no troubles.
When you installed 6.48 did you uninstall the previous version? If so did it nuke the webserver files that reside in the Sage folder/subfolders?
Or, did it somehow nuke the "load_at_startup_runnable_classes= net.sf.sageplugins.webserver.StartServer" line in sage properties that loads the webserver?
I know there are a couple version differences between my Java, and webserver and your versions, but since it worked before and not after I'd suspect something amiss during the install of 6.48. Most likely one of the two things mentioned above.
jreichen
09-18-2008, 05:26 PM
See if your sagetv_0.txt log file has anything related to the webserver.
davephan
09-21-2008, 07:22 PM
Is there a way to modify the "Play in Extender:" so that the extenders list with aliases? For example the extender could be listed with an alias of LivingRoom instead of something like 000abc0c1a23?
Dave
jreichen
09-21-2008, 07:35 PM
Is there a way to modify the "Play in Extender:" so that the extenders list with aliases? For example the extender could be listed with an alias of LivingRoom instead of something like 000abc0c1a23?
DaveAdd your extenders to the extenders.properties file in the webserver folder.
davephan
09-21-2008, 09:07 PM
Thanks Jreichen!
Play in extender:
Master Bedroom
Family Room
Looks much better than seeing the MAC addresses.
Dave
pjpjpjpj
09-23-2008, 05:57 PM
When you installed 6.48 did you uninstall the previous version? If so did it nuke the webserver files that reside in the Sage folder/subfolders? Nope - did not uninstall, and the files are still there - or at least, there are a bunch of files, folders, and subfolders. I can't imagine anything disappeared.
Or, did it somehow nuke the "load_at_startup_runnable_classes= net.sf.sageplugins.webserver.StartServer" line in sage properties that loads the webserver?
Nope, still there.
I went into C:\Program Files\SageTV\SageTV\webserver\log.
There are several log files there, the most recent two are entitled:
"AWS-20080810_020856.log" from August 10, and
"AWS-20080915_054956.log" from Sept 15.
The August file has all sorts of stuff in it - presumably it was written the last time I used webserver successfully (yeah, I don't use it a lot).
The September log file (when it broke after the new Sage release) only has this:
[Mon Sep 15 17:49:56 EDT 2008] Server socket: java.net.BindException: Address already in use: JVM_Bind
Does that give anyone any ideas?
jreichen
09-23-2008, 06:06 PM
You have something else already running on the same port that the webserver wants to use. You can find the webserver's port in Sage.properties under the setting nielm/webserver/port.
pjpjpjpj
09-24-2008, 02:14 PM
You have something else already running on the same port that the webserver wants to use. You can find the webserver's port in Sage.properties under the setting nielm/webserver/port.
Hmmm. I'm not at home and I'll have to check it when I get there, but I don't know why that would have changed ports, or how something else would have started running in that port. I picked a completely random port number. Do various apps and such sometimes "pop up" and pick random ports, meaning something could have picked the one I use?
Is it possible that a previous run of mine - or worse, someone else - is running something on my PC through that port?
ON EDIT: changed the port on my host and in the sage.properties file, to another random number. Everything working fine now. Thanks! :)
bjkiller
09-25-2008, 10:45 PM
One day, i waked up, and my childs has no LiveTV, i found program guide, not imported....
What is can be (web server log enclosed) ?
http://localhost:8080/sage/EpgChannel
Exception while processing servlet:
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
at java.util.Vector.get(Unknown Source)
at net.sf.sageplugins.webserver.EpgChannelServlet.doServletGet(EpgChannelServlet.java:70)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
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:1501)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
at Acme.Serve.ServeConnection.run(Serve.java:1363)
at java.lang.Thread.run(Unknown Source)
jreichen
09-26-2008, 10:54 PM
The webserver cannot get channel information, this looks like something in the base SageTV configuration. You'll probably have better luck posting this question in the SageTV Software forum along with the sagetv_0.txt log file.
Beefcake550
10-03-2008, 12:15 PM
So, not likeit really matters, but I just noticed that The disk space/usage graphic doesn't really work in my situation...
I have a WHS machine with 3.5TB of storage on it, but shares only show what available on the Landing Zone (LZ) - which in my case is 750GB. So, once I get to have more than 750GB of video stored up, the usage bar should be pegged at 100%, but in reality, I have 3.5TB - (video storage) space left.
Is there a way to get the correct free space available (as shown by looking in the drive pool) by getting the correct amount of total space?
-Brian
ewelin
10-03-2008, 03:06 PM
So, not likeit really matters, but I just noticed that The disk space/usage graphic doesn't really work in my situation...
I have a WHS machine with 3.5TB of storage on it, but shares only show what available on the Landing Zone (LZ) - which in my case is 750GB. So, once I get to have more than 750GB of video stored up, the usage bar should be pegged at 100%, but in reality, I have 3.5TB - (video storage) space left.
Is there a way to get the correct free space available (as shown by looking in the drive pool) by getting the correct amount of total space?
-Brian
Hello,
I don't believe this is an issue with the web user interface, I think it's part of the core functionality of Sage that figures this data out. I have Sage running on a HTPC in my living room and they store the recordings on my WHS which is setup very similar to you. I noticed the same thing on the disk usage graphic within the actual sage interface.
davephan
10-22-2008, 05:47 AM
Would it be possible to add one enhancement to the web interface when searching? When searching in EPG or anything else, the "search string" box always has to be clicked before typing in the "search string" field. Could the cursor be defaulted in the "search string" box when selecting any of the searches? If the cursor could be defaulted in the "search string" field, then it would eliminate one step for most searching.
Dave
sakker
10-22-2008, 07:31 AM
Would it be possible to add one enhancement to the web interface when searching? When searching in EPG or anything else, the "search string" box always has to be clicked before typing in the "search string" field. Could the cursor be defaulted in the "search string" box when selecting any of the searches? If the cursor could be defaulted in the "search string" field, then it would eliminate one step for most searching.
Dave
I think the same thing everytime I go to the webserver. Heck i think that everytime I go to any webpage that isn't Google that requires something typed in a textbox.
I assume it is a small piece of JavaScript code that activates the cursor in that box after the page is loaded? Whatever it is it is very handy indeed. I often find myself typing something while searching for a show and then realizing after I finish typing that I never highlighted the box. :(
davephan
10-22-2008, 07:36 PM
I discovered the solution to the make the webserver much easier to use. I created macros with a program I already own called "Macro Express". Now, I can press one function key, and it brings up the web server to the search box. No mouse clicking is needed. I can hit another function key and it brings the web server to the Program Grid. Other macro programs might work too.
Dave
GKusnick
10-24-2008, 07:50 PM
Here's a minor issue I just noticed. If, during installation, you specify a password that happens to contain a colon, it doesn't work. What you end up with in realms.properties is something like this:
SageTV Web Interface=/sage,User:Pass:Word
which has the effect of setting the password to Pass rather than Pass:Word. The text after the second colon is ignored.
hemicuda
10-24-2008, 11:30 PM
trying to use special characters to really create a strong pass:word eh?
dadavo
11-04-2008, 02:20 PM
Is anyone else having issues with watching video locally after streaming from webserver? I noticed that I have no problem with audio or video from either live tv or recorded tv until after a web streaming session has started. Afterward I only get a blank screen on the local machine. Simply exiting SageTV doesn't help I have to do a full reboot. Could this be an issue with webserver or VLC that it uses to stream the video? I don't know if it matters but the local tuner is setup as a network encoder and I have no problems getting audio or video on the client receiving the stream.
SSBrian
11-05-2008, 04:22 PM
I am no good with code (Command Promt) and I need the Web User Interface to import my shows from BTV. I get to the ports screen and it is greyed out. I tried it on my link machine and got the same thing.
infocus13
11-08-2008, 08:19 PM
Hey Guys
Recently, I've started getting a HTTP 400 error when trying to access the web server - the error text in the browser is "Bad Request (Invalid hostname)" and the WS interface does not load. The same problem occurs when trying to access the WS from the server itself.
Can anyone help? I do not remember changing any settings, it just stopped working. I have also tried uninstalling (delete) the WS files in the SageTV directory and re-installing, did not help.
Many thanks in advance.
markley268
11-10-2008, 09:02 PM
A lot of times i can't view the main webserver page....it just hangs when i try to load the /sage/Home URL. Every once in a while it works, but most of the time it doesn't. I have no problems at all w/ any of the other pages at any time.
Anybody see something like this?
I'm running the server on a 8.10 Ubuntu 64 linux box and accessing the page from both windows and linux hosts, same result.
Using java 1.6.0_07 (32bit) on the linux server
jreichen
11-13-2008, 06:17 AM
Hey Guys
Recently, I've started getting a HTTP 400 error when trying to access the web server - the error text in the browser is "Bad Request (Invalid hostname)" and the WS interface does not load. The same problem occurs when trying to access the WS from the server itself.
Can anyone help? I do not remember changing any settings, it just stopped working. I have also tried uninstalling (delete) the WS files in the SageTV directory and re-installing, did not help.
Many thanks in advance.Did your server's IP address change? What is the value for the nielm/webserver/bind_address property in Sage.properties? Most of the time this will not have a value unless you have multiple NICs and only want it listening on a specific one. If that value is invalid you will have problems.
Change the following properties to 'true', then try accessing the webserver again. Post sagetv_0.txt along with the latest file from the webserver/log folder.
nielm/webserver/log_access=false
nielm/webserver/log_referrer=false
nielm/webserver/log_user_agent=false
Jason
jreichen
11-13-2008, 06:20 AM
A lot of times i can't view the main webserver page....it just hangs when i try to load the /sage/Home URL. Every once in a while it works, but most of the time it doesn't. I have no problems at all w/ any of the other pages at any time.
Anybody see something like this?
I'm running the server on a 8.10 Ubuntu 64 linux box and accessing the page from both windows and linux hosts, same result.
Using java 1.6.0_07 (32bit) on the linux serverCan you follow the instructions I just gave dkatchalov for setting the logging properties, reproducing the problem, and posting sagetv_0.txt and the latest file from the webserver/log folder?
infocus13
11-18-2008, 05:14 AM
Did your server's IP address change? What is the value for the nielm/webserver/bind_address property in Sage.properties? Most of the time this will not have a value unless you have multiple NICs and only want it listening on a specific one. If that value is invalid you will have problems.
Change the following properties to 'true', then try accessing the webserver again. Post sagetv_0.txt along with the latest file from the webserver/log folder.
nielm/webserver/log_access=false
nielm/webserver/log_referrer=false
nielm/webserver/log_user_agent=false
Jason
Thanks for your reply Jason.
I can't find sagetv_0.txt, where should it be located?
I didn't have a value in the bind field. I've put my server IP in there and still not luck - same result.
I'm attaching the latest file from the webserver/logs folder. There seems to be an error with JVM bind - not sure if that is an issue?
Thanks for your help, much appreciated.
jreichen
11-18-2008, 06:57 AM
Something is already using the port. Try specifying a new port in the nielm/webserver/port setting in Sage.properties.
sagetv_0.txt is in the SageTV directory.
infocus13
11-18-2008, 05:18 PM
Something is already using the port. Try specifying a new port in the nielm/webserver/port setting in Sage.properties.
sagetv_0.txt is in the SageTV directory.
Worked like a treat, many thanks! I missed have the web interface! :clap:
bjkiller
11-28-2008, 07:01 AM
have some strange issue related to webserver and SetChannelViewabilityForChannelNumberOnLineup. i contacted to Sage support they told me the problem with webserver. anybody can advice?
when i delete wiz.bin (15Mb) and re-import xml, the problem disappears, but i lose all recording info and etc. :confused:
my wiz.bin file http://www.sendspace.com/file/67il9x
http://localhost:8080/sage/EpgChannel
Exception while processing servlet:
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
at java.util.Vector.get(Unknown Source)
at net.sf.sageplugins.webserver.EpgChannelServlet.doServletGet(EpgChannelServlet.java:70)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
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:1501)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
at Acme.Serve.ServeConnection.run(Serve.java:1363)
at java.lang.Thread.run(Unknown Source)
here the log information:
Fri 11/28 15:37:39.351 Mpeg2Reader seeking to pos=3907392 time=0:00:12.764
Fri 11/28 15:37:39.402 java.lang.NullPointerException
Fri 11/28 15:37:39.402 at sage.d.h$21.new(Unknown Source)
Fri 11/28 15:37:39.402 at sage.av.a(Unknown Source)
Fri 11/28 15:37:39.402 at sage.e.a(Unknown Source)
Fri 11/28 15:37:39.402 at sage.SageTV.api(Unknown Source)
Fri 11/28 15:37:39.402 at net.sf.sageplugins.sageutils.SageApi.Api(SageApi.java:17)
Fri 11/28 15:37:39.402 at net.sf.sageplugins.webserver.GlobalCommandServlet.doServletGet(GlobalCommandServlet.java:64)
Fri 11/28 15:37:39.402 at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
Fri 11/28 15:37:39.402 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
Fri 11/28 15:37:39.402 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Fri 11/28 15:37:39.402 at Acme.Serve.ServeConnection.runServlet(Serve.java:1501)
Fri 11/28 15:37:39.402 at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
Fri 11/28 15:37:39.403 at Acme.Serve.ServeConnection.run(Serve.java:1363)
Fri 11/28 15:37:39.403 at java.lang.Thread.run(Unknown Source)
Fri 11/28 15:37:39.419 MPEG2 seek targetPts=5832434071 length=2545740712 durationMsec=7439634 parsedPTS=5832194177 lastPos=4165899 firstPTS=5830974271 mux_rate=0 estimBitrate=307344
Fri 11/28 15:37:39.419 Mpeg2Reader seeking to pos=4844196 time=0:00:16.220
Fri 11/28 15:37:39.475 MPEG2 seek targetPts=5832719191 length=2545740712 durationMsec=7439634 parsedPTS=5832479297 lastPos=5047431 firstPTS=5830974271 mux_rate=0 estimBitrate=301834
Fri 11/28 15:37:39.475 Mpeg2Reader seeking to pos=5551076 time=0:00:19.388
Fri 11/28 15:37:39.528 MPEG2 seek targetPts=5832913591 length=2545740712 durationMsec=7439634 parsedPTS=5832673697 lastPos=5750175 firstPTS=5830974271 mux_rate=0 estimBitrate=304523
Fri 11/28 15:37:39.528 Mpeg2Reader seeking to pos=6226936 time=0:00:21.548
Fri 11/28 15:37:39.551 java.lang.reflect.InvocationTargetException: Exception while executing SageApi: "SetChannelViewabilityForChannelNumberOnLineup" numargs=4
Fri 11/28 15:37:39.552 java.lang.reflect.InvocationTargetException: Exception while executing SageApi: "SetChannelViewabilityForChannelNumberOnLineup" numargs=4
Fri 11/28 15:37:39.552 at net.sf.sageplugins.sageutils.SageApi.Api(SageApi.java:20)
Fri 11/28 15:37:39.552 at net.sf.sageplugins.webserver.GlobalCommandServlet.doServletGet(GlobalCommandServlet.java:64)
Fri 11/28 15:37:39.552 at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
Fri 11/28 15:37:39.552 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
Fri 11/28 15:37:39.552 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Fri 11/28 15:37:39.552 at Acme.Serve.ServeConnection.runServlet(Serve.java:1501)
Fri 11/28 15:37:39.552 at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
Fri 11/28 15:37:39.552 at Acme.Serve.ServeConnection.run(Serve.java:1363)
Fri 11/28 15:37:39.552 at java.lang.Thread.run(Unknown Source)
Fri 11/28 15:37:39.552 Caused by: java.lang.reflect.InvocationTargetException
Fri 11/28 15:37:39.552 at sage.SageTV.api(Unknown Source)
Fri 11/28 15:37:39.552 at net.sf.sageplugins.sageutils.SageApi.Api(SageApi.java:17)
Fri 11/28 15:37:39.553 ... 8 more
Fri 11/28 15:37:39.553 Caused by: sage.a.e: Error in method reflection of SetChannelViewabilityForChannelNumberOnLineup of java.lang.NullPointerException
Fri 11/28 15:37:39.553 at sage.av.a(Unknown Source)
Fri 11/28 15:37:39.553 at sage.e.a(Unknown Source)
Fri 11/28 15:37:39.553 ... 10 more
thecgmguy
12-01-2008, 12:12 AM
Hi there,
Couple Questions:
1) Is this compatible with 6.4?
2) How much system resources (memory, cpu, etc) does this take up? My sage tv system is a little under-powered (:(
3) Is access password protected?
Thank you,
-M
madas
12-01-2008, 11:08 AM
What version of the webserver are you using? Nielm made a fix for favorite channels in version 2.21 back in December. (It had nothing to do with supporting multi-channel faves, though).
Was there ever a fix to allow multi channel favorites? The favorite screen only seems to allow a favorite to record on "All" or one particular channel. Through the client/placeshifter you can select multiple channels from a list.
jreichen
12-01-2008, 10:54 PM
bjkiller,
This looks like another channel lineup problem. Did you ever get the one on the previous page resolved? Just from looking at the web server code it looks like there aren't any channels enabled but I didn't get a chance to load your wiz.bin to look at it.
Also, what version of SageTV are you running?
jreichen
12-01-2008, 11:00 PM
1) Is this compatible with 6.4?Yes
2) How much system resources (memory, cpu, etc) does this take up? My sage tv system is a little under-powered (:(I doesn't take a lot. I don't think you'll have a problem running it.
3) Is access password protected?Yes. Well mostly :) There are a few things that are unprotected. Can't name them off the top of my head, but if the URL has /sagepublic in it then it's unprotected. Mostly that's to deal with resources (playlists are one example) that are opened in external applications that can't handle authentication. There is documentation on setting up the security on the webserver wiki pages (http://tools.assembla.com/sageplugins/wiki/WebServer).
jreichen
12-01-2008, 11:09 PM
Was there ever a fix to allow multi channel favorites? The favorite screen only seems to allow a favorite to record on "All" or one particular channel. Through the client/placeshifter you can select multiple channels from a list.No. Nielm doesn't have time to work on it and my Sage-related efforts have been focused mainly on the mobile web interface and a few other things like supporting developers who are writing apps that run on the Jetty server and stuckless' remote apis.
I don't see that changing in the immediate future :( but I'll still try to support users in this thread.
bjkiller
12-02-2008, 01:34 AM
bjkiller,
This looks like another channel lineup problem. Did you ever get the one on the previous page resolved? Just from looking at the web server code it looks like there aren't any channels enabled but I didn't get a chance to load your wiz.bin to look at it.
Also, what version of SageTV are you running?
jreichen,
previus problem was resolved by deleting wiz.bin :eek:
from point of user interface, when issue happend - no channels in the program guide. nothing work. crash on webserver access to epg.
xml import also not working.
i contacted to George from support, he telling me that issue with webserver.
so i posted it here. the initial issue happend with latest stable, the current issue with latest beta(i upgraded week ago). i think it's not related to beta or not. becouse with regular stable version it's happend for me at least 3 times.
thank you in advance.
popechild
12-06-2008, 10:42 PM
I've been running webserver for a few years on my previous server, but haven't set it up in so long that apparently I'm missing something on my new install on Vista.
I've got the webserver installed and can access it from http://localhost:8080/sage/Home. However, I can't seem to get to it using http://ip:8080/sage/Home, which of course prevents me from being able to use something like No-Ip.org, which is what I've always used before.
Other than the upgrade to Vista, this is a setup that I've always used, with no changes to my network, or router, or anything else, so I'm having trouble figuring out what would prevent me from being able to access it from online.
Thanks for any suggestions!
EDIT: Nevermind. I didn't realize my IP had changed when I upgraded to Vista, so I just had to change the port forwarding on the router...
nstocke
12-18-2008, 03:47 PM
I figure I'm doing something wrong or I'm not doing something right. I haven't been able to get the Streaming to work. I also believe what ever it is, it is my fault. What I have installed:
Server:
Software Version: SageTV V6.4.8.184
Java Version: 1.6.0_07
SageMC STV version: 6.3.8
SageMC JAR Version: 6.3.8
Web Access: 2.22
VLC: 0.9.8a
On the client machine: I've tried both IE and Firefox.
I also have VLC: 0.9.8a installed.
I can see the options for streaming a video file in the web interface but when I click on the different suggestions I am unable to get anything to show up. When I try to use Firefox I get the R6034 runtime error.
Are there types of Video Files that can't be streamed? Any suggestions for where to start trouble shooting would be appreciated.
MarkV
12-19-2008, 03:07 PM
Does anyone use WatchNow with the MediaFileId for mounted dvds on an extender? It's rather iffy for me with it working sometimes and other times it chooses a channel on the TV and starts trying to play it back (possibly it's trying to watch live tv?)
Xsabre
12-20-2008, 08:38 AM
I figure I'm doing something wrong or I'm not doing something right. I haven't been able to get the Streaming to work. I also believe what ever it is, it is my fault. What I have installed:
Server:
Software Version: SageTV V6.4.8.184
Java Version: 1.6.0_07
SageMC STV version: 6.3.8
SageMC JAR Version: 6.3.8
Web Access: 2.22
VLC: 0.9.8a
On the client machine: I've tried both IE and Firefox.
I also have VLC: 0.9.8a installed.
Are there types of Video Files that can't be streamed? Any suggestions for where to start trouble shooting would be appreciated.
I was having the same problem. I am very new to the Web User Interface. (Just installed it two days ago)
You need to have the VLC plugin for IE and Firefox installed. If you are on the LAN then the web player will work (high bandwidth required). If you want to view over the internet, you need to transcode the file before you can view it.
Webserver Media Player (http://tools.assembla.com/sageplugins/wiki/WebServerMediaPlayer)
Webserver Transcode (http://tools.assembla.com/sageplugins/wiki/WebserverTranscode)
The other option is Orb (http://orb.com/). You can stream without trancoding first.
Good luck...
MarkV
12-20-2008, 09:32 PM
I turned on logging (set the three values to true mentioned in a recent post).
One thing that seems to be missing - the logs don't seem to contain the entire string received by the webserver.
I send http://192.168.1.111:8080/sage/MediaFileCommand?command=WatchNow&context=001d6a4c0016&MediaFileId=6884891
but the log just says
[Sat Dec 20 22:58:07 EST 2008] /192.168.1.111 GET /sage/MediaFileCommand 401| null| Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0)
[Sat Dec 20 22:58:11 EST 2008] /192.168.1.111 GET /sage/MediaFileCommand 200| null| Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0)
hemicuda
12-21-2008, 09:23 AM
Seems in the last day or so I've been getting
Server socket: java.net.BindException: Address already in use: JVM_Bind
errors from the web server logs. And
"The system cannot find the file specified."
when trying to access
http://127.0.0.1:8080/sage/home
The only thing I've changed in the last week is adding TiVo Desktop so I could move recordings off the wife's TiVo before she drops the sub on it in favor of the Comcast DVR. Could that be the problem?
Edit: just stumbled across some posts referencing port 8080 for Tivo. if I can't move it guess I'll have to move the web server.
motobarsteward
12-26-2008, 09:11 AM
I have just purchased CorePlayer1.2.5 and I am running it on my Samsung SGH-i900 Omnia. I can play all formats of stream from the the Web Interface.
No mucking around with moving MediaPlayer dlls!
The other option is Orb (http://orb.com/). You can stream without trancoding first.
I have to second this. I don't post very often, but I only recently set this up and I can't believe I waited this long. Orb streams all of my Sage media to my Blackberry Bold, including a nice search/browse front end. I can even watch a live TV show by using the Sage web interface (or the mobile interface) to start a recording, then switching to the orb browser to watch it while it's being recorded. My Blackberry is on a 3G network (or WiFi) so your mileage may vary. Nothing like having a Terrabyte or so of media to make watching my 5 year old at a McDonald's playroom less mindless. :)
pjpjpjpj
12-27-2008, 04:26 PM
My webserver is completely dead. It died a while ago and my log file had the "BindException: Address already in use: JVM_Bind". I changed the port and it worked... briefly. The next time I tried, it did not work at all... in fact, it gives me the standard
"Internet Explorer cannot display the webpage" (standard IE message when the webpage does not exist).
I get no log file in the webserver folder at all; it's obviously not even making a connection. I get my service through no-ip.org, and nothing has changed there (I have since tried changing my port there and in sage.properties, so that's not it). The webserver is still in the "load at startup runnable classes" listings, so it's not that....
jreichen
12-27-2008, 11:05 PM
Can you access it from a browser on the same machine as the web server (to eliminate any firewall or port forwarding issues)? Please you check your sagetv_0.txt for error messages and post them here if there are any.
jreichen
12-27-2008, 11:48 PM
Does anyone use WatchNow with the MediaFileId for mounted dvds on an extender? It's rather iffy for me with it working sometimes and other times it chooses a channel on the TV and starts trying to play it back (possibly it's trying to watch live tv?)I just tried this with Placeshifter on a Linux machine and got live TV. If I try to "Watch Now" using the Placeshifter UI it gets an error about not being able to handle the content (I don't think DVD's are supported in the Linux Placeshifter). Check if you can play the DVD by using the extender's UI.
The webserver calls the Watch API (http://download.sagetv.com/api/sage/api/MediaPlayerAPI.html#Watch%28java.lang.Object%29) followed by "Home" and "TV". If "Watch" fails the media player probably doesn't have any current content so "Home" and "TV" probably tell the media player to play live TV.
I turned on logging (set the three values to true mentioned in a recent post).
One thing that seems to be missing - the logs don't seem to contain the entire string received by the webserver.
I send http://192.168.1.111:8080/sage/MediaFileCommand?command=WatchNow&context=001d6a4c0016&MediaFileId=6884891
but the log just says
[Sat Dec 20 22:58:07 EST 2008] /192.168.1.111 GET /sage/MediaFileCommand 401| null| Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0)
[Sat Dec 20 22:58:11 EST 2008] /192.168.1.111 GET /sage/MediaFileCommand 200| null| Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0)I haven't verified, but it may not log request parameters.
bcjenkins
12-28-2008, 03:22 AM
You can't watch ripped DVDs in placeshifter.
B
pjpjpjpj
12-28-2008, 09:14 AM
Can you access it from a browser on the same machine as the web server (to eliminate any firewall or port forwarding issues)?
That's what I am trying to do. No luck.
Please you check your sagetv_0.txt for error messages and post them here if there are any.
I do not have this file. Should I? And if it's something that a working webserver creates, then I should have it, because webserver worked previously... hmmm.... :confused:
jreichen
12-28-2008, 10:02 AM
The file is created by SageTV and is located in the SageTV installation directory. Anything written to "standard out" by SageTV or any plugins is included in that file.
pjpjpjpj
12-30-2008, 04:27 PM
The file is created by SageTV and is located in the SageTV installation directory. Anything written to "standard out" by SageTV or any plugins is included in that file.
Well, I don't have it, which could explain why webserver isn't working. But my Sage is working fine otherwise.... Thoughts?
bcjenkins
12-30-2008, 07:48 PM
the file is only created if debug=TRUE in your Sage.properties file.
B
MarkV
12-30-2008, 09:07 PM
I just tried this with Placeshifter on a Linux machine and got live TV. If I try to "Watch Now" using the Placeshifter UI it gets an error about not being able to handle the content (I don't think DVD's are supported in the Linux Placeshifter). Check if you can play the DVD by using the extender's UI.
The webserver calls the Watch API (http://download.sagetv.com/api/sage/api/MediaPlayerAPI.html#Watch%28java.lang.Object%29) followed by "Home" and "TV". If "Watch" fails the media player probably doesn't have any current content so "Home" and "TV" probably tell the media player to play live TV.
I haven't verified, but it may not log request parameters.
It functions properly about 25% of the time, so I'm not quite sure what I have botched. The MediaFileID is being generated on the remote control so it's possible I have some programming issues that are causing the problem which is why I wanted to see what the webserver thinks it is receiving. I should still be able to look at it in another way, but it's a bit less trustworthy if I'm not seeing what the webserver thinks it is receiving.
Thanks again,
Mark
jreichen
01-03-2009, 04:31 PM
Well, I don't have it, which could explain why webserver isn't working. But my Sage is working fine otherwise.... Thoughts?Are you running the web server from a client? If so, check out this FAQ entry (http://forums.sagetv.com/forums/showthread.php?p=149076&postcount=31) to configure the client for debug logging.
the file is only created if debug=TRUE in your Sage.properties file.
BI don't have that setting in my properties file but I always get a sagetv_0.txt. I'm running Linux, is there a difference between platforms?
GKusnick
01-03-2009, 06:24 PM
I don't have that setting in my properties file but I always get a sagetv_0.txt. I'm running Linux, is there a difference between platforms?
I don't know about cross-platform differences, but debug logging is on by default in beta versions, and off by default in release versions, if that helps.
jreichen
01-03-2009, 08:52 PM
I'm running 6.4.8.1. I don't think that's a beta.
Here is a grep of my Sage.properties:
sagetv@blackbird:/opt/sagetv/server$ less Sage.properties | grep debug
debug_capture_progress=false
debug_exif_parser=false
debug_fps_freq=0
debug_logging=FALSE
debug_msgs=false
media_server/transcode_debug=false
media_server_debug=false
miniclient/debug_push=false
miniplayer/dvd_debug=false
ui/lock_debug=false
Anyway, that's a little off topic, but it would be nice to know why pjpjpjpj doesn't get a log. Did you try setting debug=TRUE?
bcjenkins
01-04-2009, 08:31 AM
Debug logging is always on in Linux, but not in Windows.
B
geogecko
01-04-2009, 04:32 PM
I'm trying to get a Podcast setup in iTunes, using the webserver to serve video files to iTunes, so that I can automatically sync the iPhone and get Sage on it.
I have the following URL setup:
https://htpc:8448/sagepublic/Rss/Search?SearchString=&searchType=TVFiles&search_fields=title&filename=*.mp4&title=Sage
And when I put this in a browser, I see the MP4 media files, but for some reason, iTunes gives me an error when I try and update the podcast. It gives error message (-9812), whatever that means. Anyone have any ideas? Could it be the fact that I'm using the webserver with a secure connection?
bcjenkins
01-04-2009, 06:14 PM
can you use the ip address instead what is the result? Otherwise would be worth a try without ssl
B
geogecko
01-04-2009, 07:41 PM
Nope, doesn't like that either. It is probably something to do with the certificate. I'll have to give it a try without SSL, or just drag and drop them manually...
bcjenkins
01-04-2009, 07:47 PM
Well.. GoDaddy offers a signed cert for 20/yr
B
geogecko
01-05-2009, 07:41 PM
It's not worth that much to me...LOL. I think I'll just copy over the files when I need them. Most likely, I'll only want to transfer shows that I need if I'm going out of town.
gveres
01-05-2009, 10:28 PM
I'm trying to get a Podcast setup in iTunes, using the webserver to serve video files to iTunes, so that I can automatically sync the iPhone and get Sage on it.
I have the following URL setup:
https://htpc:8448/sagepublic/Rss/Search?SearchString=&searchType=TVFiles&search_fields=title&filename=*.mp4&title=Sage
And when I put this in a browser, I see the MP4 media files, but for some reason, iTunes gives me an error when I try and update the podcast. It gives error message (-9812), whatever that means. Anyone have any ideas? Could it be the fact that I'm using the webserver with a secure connection?
Can I ask what you are using to create the properly sized mp4 files?
Thanks
Greg
geogecko
01-06-2009, 06:55 AM
Can I ask what you are using to create the properly sized mp4 files?
Thanks
Greg
I'm using the SageTV Transcoder. Within SageMC, there is an option to "Send To" and you can compress a show, or auto compress a favorite, and select the iPhone/iPod presets. I believe these options are also within the standard STV, although, I haven't used it since 2005, so I have no idea where to access them there. I select a special location that is not within the media imports, so that I do not have two of the same show appearing within SageTV. Then iTunes is supposed to pick this up from a Webserver link, because for some reason, the non-import directory is still able to be accessed by the Webserver, even though it is not a media import directory, which would work out nicely, but I think the problem is that I'm trying to use SSL on the webserver.
I may change the webserver to be non-SSL soon, as I don't anticipate using it anymore, once the mobile one supports everything I need.
Here is the linky: http://forums.sagetv.com/forums/showthread.php?t=35467&page=11
jpaddock3000
01-06-2009, 04:55 PM
So I just found the speedtest.html page and this is really cool, but I want to make it so the menu shows up on the page. I was able to figure out how to add the speedtest.html page to the menu and I added the menu to the speedtest.html page, but the menu is about center of the page. I would like it in the top left hand corner like all the other pages. Any ideas on how I can get that moved? I have attached my speedtest.html page and a screen shot of the page.
Thanks in advance.
nspindel
01-06-2009, 07:32 PM
Hi - I'm trying to use a different port than 8080, as I don't seem to be having much luck with 8080 outside of my home network. In sage.properties, I'm changing nielm/webserver/port=8080 to some other ports, but every time I restart Sage, it resets that line back to 8080. As soon as I start Sage, the properties file reverts to 8080. Any idea why that's happening?
geogecko
01-06-2009, 07:46 PM
Are you shutting down SageTV (and the service if you are using it) before you edit the properties file? Otherwise, it will never be saved.
geogecko
01-06-2009, 08:13 PM
Nope, doesn't like that either. It is probably something to do with the certificate. I'll have to give it a try without SSL, or just drag and drop them manually...
Yep, SSL was it. I turned it off, and now iTunes doesn't have a problem with it. I am not sure if it would work with a valid certificate or not, didn't try that...
nspindel
01-06-2009, 09:16 PM
Are you shutting down SageTV (and the service if you are using it) before you edit the properties file? Otherwise, it will never be saved.
Hah! Rookie mistake. Thanks, all set. Still not sure if it's working from outside my house, but at least I have it set to a different port.
Stuntman
01-06-2009, 09:53 PM
For some reason when I look at the web interface I see that it is missing 2 of my configured sources! Sage shows them as configured but the web interface doesn't list them..
Is there a limit in code somewhere to the number of tuners to display?
jreichen
01-07-2009, 09:55 PM
So I just found the speedtest.html page and this is really cool, but I want to make it so the menu shows up on the page. I was able to figure out how to add the speedtest.html page to the menu and I added the menu to the speedtest.html page, but the menu is about center of the page. I would like it in the top left hand corner like all the other pages. Any ideas on how I can get that moved? I have attached my speedtest.html page and a screen shot of the page.
Thanks in advance.It looks like the HTML tags are out of place. Add a closing </div> tag after the closing </center> tag at the bottom. Then move all the menu <script> blocks at the bottom of the page so they are after the </div> closing tag.
jreichen
01-07-2009, 10:23 PM
For some reason when I look at the web interface I see that it is missing 2 of my configured sources! Sage shows them as configured but the web interface doesn't list them..
Is there a limit in code somewhere to the number of tuners to display?Are you talking about the list of tuners under "Currently Recording" or under "Next Upcoming Recordings"?
rickgillyon
01-08-2009, 02:23 AM
For some reason when I look at the web interface I see that it is missing 2 of my configured sources! Sage shows them as configured but the web interface doesn't list them..
Is there a limit in code somewhere to the number of tuners to display?
How many do you have? Mine shows all 12 tuners on my system without problems.
Stuntman
01-08-2009, 08:11 AM
How many do you have? Mine shows all 12 tuners on my system without problems.
I have 7 currently configured.. I have 8 in the system, but haven't sat down and configured that 8th one yet.
I have:
1 x HDHR, so that is 2 digital QAM tuners
1 x WinTV 418, that is 1 analog and 1 digital (haven't done the QAM yet)
1 x WinTV 7164, that is 2 analog AND 2 digital...
What I'm not seeing is the Digitally configured side of the 7164's (2250's)... I'll hazard a guess that when I add the QAM half to the 418, it won't show either...
Perhaps it has to do with the sources having the same name but different inputs?
Is there a way to 'rename' these devices.. so I could have PVR 2250 Analog 1, PVR 2250 Analog 2, PVR 2250 Digital 1, PVR 2250 Digital 2.... for example?
rickgillyon
01-08-2009, 08:19 AM
I don't think so, but Sage always seems to give them unique names anyway, e.g.:
Nothing on Cinergy 2400i DT Capture 1 #2
Nothing on Cinergy 2400i DT Capture 1 #3
Just adds numbers. Or with the WinTVs:
Nothing on Hauppauge WinTV MOD7700 DVB-T Capture (Dev1 Path0)
Nothing on Hauppauge WinTV MOD7700 DVB-T Capture (Dev1 Path1)
jpaddock3000
01-08-2009, 10:45 AM
It looks like the HTML tags are out of place. Add a closing </div> tag after the closing </center> tag at the bottom. Then move all the menu <script> blocks at the bottom of the page so they are after the </div> closing tag.
That did it. Thank you so much.
joey3002
01-12-2009, 11:24 AM
Im hoping I didnt miss something.. but is there a way i can tag a show to record all the 1st runs (season pass)?
inside the web interface...
thanks
jreichen
01-12-2009, 09:45 PM
Im hoping I didnt miss something.. but is there a way i can tag a show to record all the 1st runs (season pass)?
inside the web interface...
thanksYes there is. Create a favorite either from a show's detail page or from the Favorites Manager. One of the favorite properties is for First Runs/Reruns.
I have installed neilm's webserver. It works fine on my Sage server. The reason for installing was to get remote access when I'm on vacation.
I set up an account with no-ip.com and got an host address in the form <username>.no-ip.org. I set up dynamic dns on my D-link router and provided the server address as www.no-ip.com, my host address as above, my user name and password from my no-ip account. I opened port 8080 in my firewall.
I used both auditmypc and GRC's Shields and both services indicate that port 8080 is open. I can ping <username>.no-ip.org and get a reply from my ISP assigned IP address.
I still cannot connect to the webserver from the Sage machine. I'm leaving in a few days and would really like to get it to work. What am I missing?:bang:
rickgillyon
01-13-2009, 11:07 AM
That would be a loopback connection, out to internet via your router and then back - some routers need this allowing specifically. From the Sage machine just use the local IP address or http://localhost:8080/ etc.
That would be a loopback connection, out to internet via your router and then back - some routers need this allowing specifically. From the Sage machine just use the local IP address or http://localhost:8080/ etc.
How would I know if I have a loopback connection or no? Can you give me an idea where in the router admin screen I would look for it?
I can run the webserver from the Sage machine. Is ther something in the webserver setup that I need to change. I am at the the limit of my networking skills.
Ray
rickgillyon
01-13-2009, 11:31 AM
I still cannot connect to the webserver from the Sage machine.
Did you mean this, or mean from outside the sage machine?
Sorry, I meant from outside the sage machine.:(
geogecko
01-13-2009, 12:28 PM
I tried everything to set mine up on 8080. I could not ever get it to work. I eventually switched to 8088, and everything was fine.
I tried everything to set mine up on 8080. I could not ever get it to work. I eventually switched to 8088, and everything was fine.
How many places within the Sage webserver installation do I have to change 8080 to 8088?
geogecko
01-13-2009, 12:45 PM
Should just be one place, in the sage.properties file (make sure you shut down Sage, and Sage service, if using it, before updating the port, or the change will not take effect). Then of course, all your port forwarding and what not. But for Sage, that should be the only place you have to change it.
Should just be one place, in the sage.properties file (make sure you shut down Sage, and Sage service, if using it, before updating the port, or the change will not take effect). Then of course, all your port forwarding and what not. But for Sage, that should be the only place you have to change it.
I changed it in the sage.properties file and now the webserver doesn't work on either port 8080 or 8088:bang:
Ray
I changed it in the sage.properties file and now the webserver doesn't work on either port 8080 or 8088:bang:
Ray
Nevermind! The sage application actually needs to be running for the webserver to connect. I now have it running on 8088.
However, I still cannot connect form outside the sage machine.
rickgillyon
01-13-2009, 02:10 PM
Did you specify what machine to forward 8080 to in the router? Might be under "port forwarding", you need to specify that 8080 goes to the Sage machine.
Nevermind! The sage application actually needs to be running for the webserver to connect. I now have it running on 8088.
However, I still cannot connect form outside the sage machine.
I was able to connect from another computer on my network by entering
http://192.168.0.106:8088/sage/Home
in my browser. The webserver asked for authentication 3 times before it let me in, but it did. If this works, why can't I connect using
<username>.no-ip.org/sage/Home
from the same computer.
I've got port forwarding and an HTTP virtual server to port 8088 to my sage machine (192.168.0.106) and Dynamic DNS set up.
Sorry for all of the posts but I'm under time constraints
Ray
rickgillyon
01-13-2009, 02:31 PM
Port Forwarding only, no Virtual Server, try turning that off. Make sure your Windows Firewall on the server is off.
Try connecting to your External IP without using no-ip, check if the problem is no-ip, i.e.:
http://123.1.1.123:8088/sage/Home
<username>.no-ip.org/sage/Home
You added the port number though?
Port Forwarding only, no Virtual Server, try turning that off. Make sure your Windows Firewall on the server is off.
Try connecting to your External IP without using no-ip, check if the problem is no-ip, i.e.:
http://123.1.1.123:8088/sage/Home
You added the port number though?
Rick,
That actually worked -- with or without the Windows firewall. Does that mean that the no-ip service is faulty? What happens if the external IP changes while I'm away? I don't have a method of finding out what it was changed to.
Ray
rickgillyon
01-13-2009, 02:54 PM
Give dyndns.org a try, that's what I use, and don't add the port number to the setup on no-ip or dyndns. You have to put it on the address line.
Give dyndns.org a try, that's what I use, and don't add the port number to the setup on no-ip or dyndns. You have to put it on the address line.
I set up a dyndns account and I put the following address in my browser
http://<username>.dyndns.tv:8088/sage/Home
and it actualy WORKED!
Thanks Rick and geogecko for your prompt help.
Ray
jpappas
01-13-2009, 03:47 PM
Hey All,
I am sorry if this is in the wrong place, but I am not sure how to go about getting help with this problem. I am running Linux (openSUSE 11.1) and have vlc 0.9.8a installed. I have just recently discovered that VLC has turned on enforcement of vlc running as root (See Here (http://forum.videolan.org/viewtopic.php?f=13&t=54438&start=0&hilit=root) and Here (http://forum.videolan.org/viewtopic.php?f=13&t=53071&start=0&hilit=root) on the VLC forums), such that:
sage:/opt/sagetv/server/webserver # vlc
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use vlc-wrapper (make sure it is Set-UID root first and
cannot be run by non-trusted users first).
As a result, the "transcode" URLs (ie http://sage/sagepublic/MediaFileTranscode?MediaFileId=2743363&Segment=0&mode=vlc&vc=h264&vb=96&ac=mp3&ab=32&scale=0.25&mux=ts&deint=1) result in the following output:
Exception while processing MediaFileTranscode Servlet:
java.io.IOException: Cannot run program ""/usr/bin/vlc"": java.io.IOException: error=2, No such file or directory
java.io.IOException: Cannot run program ""/usr/bin/vlc"": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at net.sf.sageplugins.webserver.VlcTranscodeMgr.startTranscodeProcess(VlcTranscodeMgr.java:151)
at net.sf.sageplugins.webserver.MediaFileTranscodeServlet.doServletGet(MediaFileTranscodeServlet.java:110)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at Acme.Serve.ServeConnection.runServlet(Serve.java:1501)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
at Acme.Serve.ServeConnection.run(Serve.java:1363)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 11 more
As far as I can tell, the only way to bypass/fix this problem is to either:
Compile vlc with the enforcement disabled
Run SageTV as non-root
Neither option is appealing from a support perspective as I do not want to manage deps for #1 and SageTV Proper does not (AFAIK?) support running as non-root.
Any input here would be appreciated.
jp
rickgillyon
01-13-2009, 04:03 PM
I set up a dyndns account and I put the following address in my browser
http://<username>.dyndns.tv:8088/sage/Home
and it actualy WORKED!
:D How often does your IP change? If it's not very often (mine lasts around 6 months), and your router allows it, tell it to update dyndns every few weeks whether the IP changes or not. If dyndns isn't logged into/updated for a month, it can require you to login to confirm it's still required. my router does it automatically...
geogecko
01-13-2009, 05:10 PM
Hmm, that is interesting. I have been using the client application from dyndns. Now I noticed that my new router supports this feature, I may give that a shot, and eliminate another piece of software that has to be installed.
:D How often does your IP change? If it's not very often (mine lasts around 6 months), and your router allows it, tell it to update dyndns every few weeks whether the IP changes or not. If dyndns isn't logged into/updated for a month, it can require you to login to confirm it's still required. my router does it automatically...
I don't know how often it changes--I've not checked it before. I've installed the dyndns updater application. I don't think my router will do it automatically.
Thanks again for your help.
Ray:D
Zone99
01-15-2009, 07:09 PM
Hi,
I'm sure it's buried in the 101 pages of this thread SOMEWHERE but...101 pages is a lot to go through!!
How do I quickly reset the user and password I set when I set the webserver up? I think I'm mixing up my usernames/passwords and I figure it's probably easier if I just reset it.
Thanks.
geogecko
01-15-2009, 07:22 PM
Hi,
I'm sure it's buried in the 101 pages of this thread SOMEWHERE but...101 pages is a lot to go through!!
How do I quickly reset the user and password I set when I set the webserver up? I think I'm mixing up my usernames/passwords and I figure it's probably easier if I just reset it.
Thanks.
...\SageTV\SageTV\webserver\realms.properties
# top level user:password
SageTV Web Interface=/sage,userid:password
LOL, okay, that should read:
# top level user:password
SageTV Web Interface=/sage,userid:password
SageGk
01-16-2009, 11:35 AM
Can we queue video conversion jobs with this plugin?
geogecko
01-16-2009, 11:55 AM
Can we queue video conversion jobs with this plugin?
Yes!
SageGk
01-16-2009, 12:15 PM
Yes!
lol, how? I can't seem to find the option.
geogecko
01-16-2009, 12:22 PM
Goto SageTV (first menu item at the top) >> Sage Recordings
Find the recording you want to convert, and click on it.
Menu on the left, the third button from the bottom says, "Convert."
You can check the status at SageTV >> Video Conversions.
SageGk
01-16-2009, 12:26 PM
Goto SageTV (first menu item at the top) >> Sage Recordings
Find the recording you want to convert, and click on it.
Menu on the left, the third button from the bottom says, "Convert."
You can check the status at SageTV >> Video Conversions.
I should have been more clear. I meant is there a way to set times when the actual conversion(s) will take place? i.e.-setup a conversion to take place 4 hours from now, etc.
geogecko
01-16-2009, 12:43 PM
I should have been more clear. I meant is there a way to set times when the actual conversion(s) will take place? i.e.-setup a conversion to take place 4 hours from now, etc.
LOL, that would be a negative then.
jreichen
01-16-2009, 03:38 PM
Check out Slugger's Sage Job Queue (http://forums.sagetv.com/forums/showthread.php?t=25147). I don't use it but I think it will do what you're asking. It has very flexible rulesets for processing recordings.
dadavo
01-19-2009, 11:16 PM
I figure I'm doing something wrong or I'm not doing something right. I haven't been able to get the Streaming to work. I also believe what ever it is, it is my fault. What I have installed:
Server:
Software Version: SageTV V6.4.8.184
Java Version: 1.6.0_07
SageMC STV version: 6.3.8
SageMC JAR Version: 6.3.8
Web Access: 2.22
VLC: 0.9.8a
On the client machine: I've tried both IE and Firefox.
I also have VLC: 0.9.8a installed.
I can see the options for streaming a video file in the web interface but when I click on the different suggestions I am unable to get anything to show up. When I try to use Firefox I get the R6034 runtime error.
Are there types of Video Files that can't be streamed? Any suggestions for where to start trouble shooting would be appreciated.
I also have had this issue. I reverted back to 0.8.6 and it started working again. Try an older build of VLC.
geogecko
01-20-2009, 11:35 AM
I also have had this issue. I reverted back to 0.8.6 and it started working again. Try an older build of VLC.
Which version of 0.8.6 are you using?
0.8.6
0.8.6a
0.8.6b
0.8.6c
0.8.6d
0.8.6e
0.8.6f
0.8.6g
0.8.6h
0.8.6i
:)
dadavo
01-20-2009, 07:30 PM
Which version of 0.8.6 are you using?
0.8.6
0.8.6a
0.8.6b
0.8.6c
0.8.6d
0.8.6e
0.8.6f
0.8.6g
0.8.6h
0.8.6i
:)
0.8.6, no letters. I am using the Windows version. I don't know if that matters.
geogecko
01-20-2009, 07:50 PM
Wow, that is the first time I've ever seen that work. Thanks for the post about the version number. I had to tell it to open with external player, and then select VLC, for some reason, it did not recognize that I had VLC installed already.
psklenar
01-21-2009, 03:39 PM
Two questions ...
1) Why do I get multiple prompts (up to four) to log into the Web Interface ("V2.22 21 Dec 2007 For SageTV 2.2-6.3")?
2) If I try to view any Recording Conflicts from the Web Interface, I get what appears to be a Java Error ...
Exception while processing servlet:
java.lang.NullPointerException
java.lang.NullPointerException
at net.sf.sageplugins.sageutils.SageApi.IntApi(SageApi.java:129)
at net.sf.sageplugins.webserver.ConflictsServlet.doServletGet(ConflictsServlet.java:76)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
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:1501)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
at Acme.Serve.ServeConnection.run(Serve.java:1363)
at java.lang.Thread.run(Unknown Source)
I have Sun Version 1 Update 11 (build 1.6.0_11-b03) installed, which I believe is the most current. All other pages of the Web Interface appear to run fine. OS is WHS and Sage is v6.5.5RC. Any suggestions?
Thank you,
pat----
dadavo
01-21-2009, 05:30 PM
You have to add /sage/Home to the end of the address to get the correct page. The page you are seeing is the index.html located in the folder \Program Files\SageTV\SageTV\webserver\webroot\. I don't know what effect if any modifying that will do.
jreichen
01-21-2009, 10:42 PM
Two questions ...
1) Why do I get multiple prompts (up to four) to log into the Web Interface ("V2.22 21 Dec 2007 For SageTV 2.2-6.3")? I don't know about this one. I've never seen it before.
2) If I try to view any Recording Conflicts from the Web Interface, I get what appears to be a Java Error ...I had a quick look at the web server code. It assumes that any airing that won't record due to a conflict is associated with a favorite. Can you look at your conflicts through Placeshifter or an extender and see if that's true?
psklenar
01-22-2009, 04:34 AM
I don't know about this one. I've never seen it before.
Has anyone else seen this? I'm using FF v3.0.5 (most current non-beta as far as I know). Hmmm ... just thought to try it under IE <shudder> ... only one login prompt. Interesting.
Any other FF users notice this behavior?
I had a quick look at the web server code. It assumes that any airing that won't record due to a conflict is associated with a favorite. Can you look at your conflicts through Placeshifter or an extender and see if that's true?
I currently have two conflicts (due to my HD-PVR being out for service/replacement) and they are both Manual recordings, not Favorites (I've not yet been able to figure out how to set up a favorite to automagically record all basketball games for a specific school).
Thanks,
pat----
nstocke
01-22-2009, 10:26 AM
v 2.14 29/Mar/2007 (http://sourceforge.net/project/showfiles.php?group_id=108108&package_id=153357&release_id=497316)
BUGFIXES
* Transcoding now works on segmented files
* better logging for transcoder
* Quotes paths in transcode.properties
ENHANCEMENTS
* added ToonGal's Full webremote (and ability to switch between them)
* added ability to name extenders using 'extenders.properties' file
* (paused) indication on Home screen for paused playback
* added link to search for file on Orb / stream file via ORB
* basic streamed DVD transcoding added (only title 1 with the default audio track)
Where in the Web Interface can I find the ORB options?
davidk21770
01-23-2009, 01:31 AM
I use FF (now at 3.05, but same with earlier versions) under XP and it's never asked me more than once to log-in.
psklenar
01-23-2009, 04:00 AM
I use FF (now at 3.05, but same with earlier versions) under XP and it's never asked me more than once to log-in.
hmmmm ...
I use FF3.05 and sometimes it prompts me once, and sometimes 3 or 4 times......
jreichen
01-23-2009, 08:24 AM
Unfortunately I can't reproduce this. Do you have settings or a plugin that could be interfering (cookie blocker, etc). If so, disable those and see if that fixes it. If you're comfortable getting HTTP traces you could install the Live HTTP Headers or FireBug plugin and get a trace.
jreichen
01-25-2009, 04:30 PM
1) Why do I get multiple prompts (up to four) to log into the Web Interface ("V2.22 21 Dec 2007 For SageTV 2.2-6.3")?
Do you have multiple tabs open for the web interface? If you do and have FF set to open the same tabs from the last time FF was open, you'll get a login prompt for each one.
psklenar
01-25-2009, 05:21 PM
Do you have multiple tabs open for the web interface? If you do and have FF set to open the same tabs from the last time FF was open, you'll get a login prompt for each one.
Thanks, but that's not it. I accessed my web interface from the office Friday (to show it off to some coworkers) and was prompted to log in for the first four pages I accessed ... from IE6!! :(
waynedunham and I compared our webserver's "properties" files and they are identical (except my user name and password are different from his :) ). He doesn't recall ever being prompted for multiple logins and all he uses is FF. I'd like to get it working with a single prompt, but ... in the over all scheme of things ... I guess it's fairly minor. At least the full functionality is there and that's the important thing. :)
pat----
jpappas
01-30-2009, 10:21 AM
Bump (http://forums.sagetv.com/forums/showthread.php?p=330181&postcount=2191)
I have not found a solution to the java error as I posted. Any command that I place in the transcode.properties file for "UnixVlcCmd=" results in same error. I have hacked a quick wrapper script (/usr/bin/sagevlc) to attempt to overcome the VLC as root thing:
#!/bin/bash
/bin/su -c /usr/bin/vlc sagetv
I still get the same error. In the appropriate /webserver/log file there is the following:
[Fri Jan 30 10:37:06 CST 2009] Executing command: "/usr/bin/sagevlc" -I dummy --
dummy-quiet --quiet --no-sub-autodetect-file "/var/media/tv3/Fringe-TheNoBraine
r-2761189-0.mpg" :sout=#transcode{vcodec=h264,vb=96,scale=0.25,acodec=mp3,ab=32,
channels=2,threads=2,deinterlace}:duplicate{dst=std{access=http,mux=ts,dst=127.0
.0.1:8000}}
[Fri Jan 30 10:37:06 CST 2009] /sagepublic/MediaFileTranscode: Exception while p
rocessing servlet
java.io.IOException: Cannot run program ""/usr/bin/sagevlc"": java.io.IOExceptio
n: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at net.sf.sageplugins.webserver.VlcTranscodeMgr.startTranscodeProcess(Vl
cTranscodeMgr.java:151)
at net.sf.sageplugins.webserver.MediaFileTranscodeServlet.doServletGet(M
ediaFileTranscodeServlet.java:110)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at Acme.Serve.ServeConnection.runServlet(Serve.java:1501)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
at Acme.Serve.ServeConnection.run(Serve.java:1363)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or di
rectory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 11 more
Running the command from the command line:
"/usr/bin/sagevlc" -I dummy --dummy-quiet --quiet --no-sub-autodetect-file "/var/media/tv3/Fringe-TheNoBrainer-2761189-0.mpg" :sout=#transcode{vcodec=h264,vb=96,scale=0.25,acodec=mp3,ab=32,channels=2,threads=2,deinterlace}:duplicate{dst=std{access=http,mux=ts,dst=127.0.0.1:8000}}
Does not result in any apparent errors.
Any help would be appreciated.
Thanks,
john
jreichen
01-30-2009, 11:57 AM
Have you (or anyone else for that matter) ever been able to run it on Linux? I've never been able to get it working. I think there's a bug in the command line that it builds.
AzJazz
01-30-2009, 02:20 PM
When I try to stream videos to my phone, sometimes I am successful. Most times, though, I get an "Unhandled win32 exception" for vlc on my Sage Server PC.
Does anybody know what is going wrong?
Zorglub
01-30-2009, 03:50 PM
I would like to be able to use the XMLImporter via a command line, either through wget, lynx, etc.. OR with java.
I plan on automatizing (is that a word ? :)) the importation of my TV episodes that I get from other means than through recording (download, DVD transfer, VHS tapes, etc...), and I need to be able to include this function in a batch file. (see this (http://forums.sagetv.com/forums/showthread.php?p=334396&postcount=198) for more details...)
I assume it would look something like that:
wget.exe "http://username:ypassword@localhost:8080/sage/XMLImporter&&FileName=N:\MEDIA\Videos\TV\sometvepisode.xml"
But I think I would need to pass other parameters like "import tv files", etc... to make it work. I am also not sure that I am calling the right thing (XMLIMporter) ....
Any clue ?
jreichen
01-30-2009, 06:45 PM
I'll see if I can give you enough buzzwords to point you in the right direction :)
XMLImporter (source (http://sageplugins.cvs.sourceforge.net/viewvc/sageplugins/webserver/net/sf/sageplugins/webserver/XmlImporterServlet.java?view=markup)) is the right servlet to use. The data will have to be submitted using the HTTP POST method and a multipart form. By default wget uses HTTP GET, however it does have command line parameters to do POST requests but I haven't used it.
There are also libraries for Java (Apache has one) that can do HTTP form posting. I'm sure it can be done via scripting languages (python, perl, etc) as well.
Another option would be to use Stuckless' remote APIs (http://forums.sagetv.com/forums/showthread.php?t=36044) along with his scripting framework (http://forums.sagetv.com/forums/showthread.php?t=38821) and nielm's sagexmlinfo jar file to do the same thing the servlet does (parse the xml and call Sage APIs) but from your own script on the command line.
Take a look at the page source for /sage/XMLImporter to see all the form fields that need to be submitted.
That's pretty high level but hopefully gives you an idea of what's necessary.
Zorglub
01-30-2009, 07:34 PM
Thanks for the buzzwords :thumb:
I went through much of those options already, but although the Stuckless's and nielm's stuff are really great, I was looking for a "quick and dirty solution" :D
After some ready on curl (which seem to be able to handle POST better than wget) and a lot of fidlding around, I came up with the good syntax:
(FWI: this has been tested on Cygwin)
curl -F "impTVFiles=checked" \
-F "impShowOverwrite=checked" \
-F "impMFOverwrite=checked" \
-F "impMFRename=keep" \
-F "impMFRedate=redateFromAiring" \
-F "xmlFile=@exemple.xml" \
-F "Import=submit" \
http://username:fpasswd@locahost:8080/Sage/XmlImporter?Import=yes
Now if I can convince evilpenguin to modify his mediaScraper to output xml files, I'll be in Heaven, and so will my wife !!! :dance:
jsschrstrcks
02-01-2009, 10:02 AM
So, if one has a dynamic, as opposed to static IP, how does one go about always knowing the IP address? For instance, i'm going to the UK in may, for 2 months, and there are some shows i'd like to record on schedule, but it would be cool, if from the UK i could log in, and set something to record on my desktop here in the states.
Is this functionality already included?
If not, could it be bound to a Hamachi IP address? Hamachi if you don't know, is a program that lets you create a vpn without having a static IP through your ISP, they give you a static IP, you log in, their service connects the two computers, and then the service lets the two computers talk, and gets out of the middle.
nspindel
02-01-2009, 10:13 AM
Use a dynamic dns service. So instead of connecting to an ip address, you get a named url to connect to. You install a service on your server that pings your cable modem (or whatever you use) to check your ip address at some timed interval, like every 5 minutes. If it notices a change, it updates the dns entry. So if your ip address changes, the maximum amount of time it would be out of sync would be 5 minutes. I use dyndns - it's free and works great.
AzJazz
02-02-2009, 11:37 AM
When I try to stream videos to my phone, sometimes I am successful. Most times, though, I get an "Unhandled win32 exception" for vlc on my Sage Server PC.
Does anybody know what is going wrong?
Anybody? Anybody? Bueller? Bueller? :)
matt91
02-02-2009, 12:27 PM
You install a service on your server that pings your cable modem (or whatever you use) to check your ip address
...
Some router firmware (e.g., DD-WRT) does this too. No need for interaction on the part of the PC; the router detects a change and automagically updates your new IP on the www.
hoadie
02-02-2009, 02:39 PM
So, if one has a dynamic, as opposed to static IP, how does one go about always knowing the IP address? For instance, i'm going to the UK in may, for 2 months, and there are some shows i'd like to record on schedule, but it would be cool, if from the UK i could log in, and set something to record on my desktop here in the states.
http://www.dyndns.com/
AzJazz
02-05-2009, 11:34 PM
OK - I take back my previous comments. I went back to VLC 0.8.6f, and I don't seem to be seeing the crash messages anymore.
However, it seems that I can't stream at all now. Not to my phone, or to a internet-connected PC, or to anything remote that I control via the Webserver. My home setup with my STX-HD100 still works fine, though. (Thank goodness!)
Are there any ideas on how to fix this? Is there any further information I need to provide to debug this? I'm currently running Sage 6.5.8, and I'll be upgrading to the released 6.5 tomorrow.
Any help would be appreciated!
Cheers!
Skybolt
02-07-2009, 07:45 AM
I am trying to use and external app to pass the web commands to the web server, I am having some trouble formulating the proper command structure.
I have tried these for the "Pause" command.
server - /sage/webremote.html?
"SageCommand?000dfe077d44=SAGETV_PROCESS_LOCAL_UI&command=Pause&returnto=webremote.html%3F000dfe077d44%3DSAGETV_PROCESS_LOCAL_UI%26000dfe077d44%3DLocal%2520SageTV"
and
"SageCommand?RetImage=no&command=Pause&000dfe077d44"
And these don't work. I am obviouly just stabbing in dark with no clue - :(
Does anyone no how to approach this?
Thanks,
Skybolt
MarkV
02-07-2009, 03:23 PM
I am trying to use and external app to pass the web commands to the web server, I am having some trouble formulating the proper command structure.
I have tried these for the "Pause" command.
server - /sage/webremote.html?
"SageCommand?000dfe077d44=SAGETV_PROCESS_LOCAL_UI&command=Pause&returnto=webremote.html%3F000dfe077d44%3DSAGETV_PROCESS_LOCAL_UI%26000dfe077d44%3DLocal%2520SageTV"
and
"SageCommand?RetImage=no&command=Pause&000dfe077d44"
And these don't work. I am obviouly just stabbing in dark with no clue - :(
Does anyone no how to approach this?
Thanks,
Skybolt
I have a host of commands from a javascript app (Pronto TSU9600) that I will post when I'm on a PC later tonight. It did take some trial and error. You should be able to practically use them directly. Extender and Client are a bit different. If you can't wait, there is a list somewhere in this thread. Or you can use the webremote and look at the calls that are made when clicked.
Skybolt
02-08-2009, 07:06 AM
... Or you can use the webremote and look at the calls that are made when clicked.
yeah - that's how I formulated the commands above, but they don't seem to work.
Thanks for your offer to post code.
-Skybolt
Skybolt
02-08-2009, 07:45 AM
I got it - thanks to wire shark.
If anyone is interested, just open the webremote.html file and get the proper word for the command such as "play" and us it in theis line, where context is the MAC address of the extender.
"http://192.168.2.51:87/sage/SageCommand?RetImage=no&nocache=1234103577546&command=Play&context=000dfe077d44"
The reason this is of value to me is for HomeSeer Touch. Tis now allows me to make a custom interface and use these commands to control a specific extender. This is alot quicker and more customizable then the web interface it self.
-Skybolt
jreichen
02-08-2009, 01:26 PM
Actually, by adding your delays I got Nielm's code to work, so one less .jar to worry about. ;)Fonceur, the quote is from your post #2079 (http://forums.sagetv.com/forums/showthread.php?p=303179&postcount=2079), if you still have the source for this could you post it? I'll check it into the web server source on SourceForge.
Thanks.
jreichen
02-08-2009, 10:08 PM
OK - I take back my previous comments. I went back to VLC 0.8.6f, and I don't seem to be seeing the crash messages anymore.
However, it seems that I can't stream at all now. Not to my phone, or to a internet-connected PC, or to anything remote that I control via the Webserver. My home setup with my STX-HD100 still works fine, though. (Thank goodness!)
Are there any ideas on how to fix this? Is there any further information I need to provide to debug this? I'm currently running Sage 6.5.8, and I'll be upgrading to the released 6.5 tomorrow.
Any help would be appreciated!
Cheers!Make sure debug logging is enabled in Sage.properties and transcode.properties then check sagetv_0.txt and the latest file in the webserver/logs folder for any error messages.
MickBurke
02-08-2009, 11:52 PM
I haven't used this before, but I assume the 2.2 version that is available works and is stable with version 6.59 of the Sage server?
jreichen
02-09-2009, 09:04 AM
Yes. I've been using it with 6.5.9 for a few days now without any problems.
deadend5001
02-10-2009, 12:17 PM
Is there a way to automatically import the XML recordings instead of doing one-by-one via the web interface?
AzJazz
02-13-2009, 06:34 AM
Make sure debug logging is enabled in Sage.properties and transcode.properties then check sagetv_0.txt and the latest file in the webserver/logs folder for any error messages.
Thanks for the suggestion, jreichen - here's what I found in my webserver log:
[Thu Feb 12 20:23:56 GMT-07:00 2009] /sagepublic/MediaFileTranscode: MediaFileTranscodeServlet.doServletGet(): Retrieveing Airing Info
[Thu Feb 12 20:23:56 GMT-07:00 2009] /sagepublic/MediaFileTranscode: doServletGet(): Retrieveing transcoding parameters
[Thu Feb 12 20:23:56 GMT-07:00 2009] /sagepublic/MediaFileTranscode: doServletGet(): File to play: F:\Videos\LifeonMars-TakeaLookattheLawmen-5523439-0.mpg
[Thu Feb 12 20:23:56 GMT-07:00 2009] /sagepublic/MediaFileTranscode: doServletGet(): Starting the transcode process.
[Thu Feb 12 20:23:56 GMT-07:00 2009] Executing command: "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy --dummy-quiet --quiet --no-sub-autodetect-file "F:\Videos\LifeonMars-TakeaLookattheLawmen-5523439-0.mpg" :sout=#transcode{vcodec=WMV2,vb=768,scale=1,acodec=mp3,ab=128,channels=2,threads=2,deinterlace}:duplicate{dst=std{access=http,mux=asf,dst=127.0.0.1:8000}}
[Thu Feb 12 20:23:56 GMT-07:00 2009] VLC(err): [00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team
[Thu Feb 12 20:23:56 GMT-07:00 2009] VLC(err): [00000001] main libvlc debug: libvlc was configured with ./configure '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-mkv' '--enable-release' '--without-contrib' '--enable-nls' '--enable-shared-libvlc' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-realrtsp' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-config-path=/usr/win32/bin' '--with-ffmpeg-zlib' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--ena
[Thu Feb 12 20:23:56 GMT-07:00 2009] VLC(err): [00000001] main libvlc debug: translation test: code is "C"
[Thu Feb 12 20:23:57 GMT-07:00 2009] Connected to sun.net.www.protocol.http.HttpURLConnection:http://127.0.0.1:8000
[Thu Feb 12 20:23:57 GMT-07:00 2009] Returning InputStream: net.sf.sageplugins.webserver.TranscodeInputStream@138a4de
[Thu Feb 12 20:23:57 GMT-07:00 2009] /sagepublic/MediaFileTranscode: doServletGet(): Copying transcode stream to outputstream
[Thu Feb 12 20:23:58 GMT-07:00 2009] /sagepublic/MediaFileTranscode: doServletGet(): Stopping transcode due: java.net.SocketException: Connection reset
My sagetv_0.txt file didn't contain much of interest, but this line appeared at about the right time for the error:
Thu 2/12 20:25:34.996 UPnP ERROR:net.sbbi.upnp.messages.UPNPResponseException: Detailed error code :501, Detailed error description :Internal Server Error
Any ideas?
MarkV
02-14-2009, 09:27 AM
It functions properly about 25% of the time, so I'm not quite sure what I have botched. The MediaFileID is being generated on the remote control so it's possible I have some programming issues that are causing the problem which is why I wanted to see what the webserver thinks it is receiving. I should still be able to look at it in another way, but it's a bit less trustworthy if I'm not seeing what the webserver thinks it is receiving.
Thanks again,
Mark
Just following up to myself - it was a timing problem. If a DVD is mounted on the server, it takes a little bit more time that I expected before it's recognized. If it's not recognized, the WatchNow command doesn't find the MediaFileId and Sage just thinks you want to watch live tv. I added a bit more delay between the mount and the WatchNow issue to the webserver and all is good. So, now I can issue a remote mount of .isos by name in my DVD library and send a WatchNow command with the DVDs MediaFileId and - voila - instant access on the HDextenders in Sage server mode.
jreichen
02-15-2009, 05:53 PM
Thanks for the suggestion, jreichen - here's what I found in my webserver log:
[Thu Feb 12 20:23:57 GMT-07:00 2009] /sagepublic/MediaFileTranscode: doServletGet(): Copying transcode stream to outputstream
[Thu Feb 12 20:23:58 GMT-07:00 2009] /sagepublic/MediaFileTranscode: doServletGet(): Stopping transcode due: java.net.SocketException: Connection resetI made some changes to the VLC transcoding that might help this. I added buffering on the server side so hopefully it won't unexpectedly drop the connection as much. An update to the webserver should be coming soon. Yes, that's right, an update to the webserver!
For your UPNP problem, I'm not sure about that one. I haven't dealt with UPNP at all, and I don't know whether the webserver even has UPNP code in it.
AzJazz
02-17-2009, 09:27 AM
I made some changes to the VLC transcoding that might help this. I added buffering on the server side so hopefully it won't unexpectedly drop the connection as much. An update to the webserver should be coming soon. Yes, that's right, an update to the webserver!
W00T! :dance:
nielm
02-24-2009, 09:52 AM
Thanks to Jason, :clap: there is a new version of the sage webserver with a whole load of bugfixes, and some new features.
V2.23 24 Feb 2009 For SageTV 2.2-6.5 (http://sourceforge.net/project/showfiles.php?group_id=108108&package_id=153357&release_id=663702)
NOTE:
Requires Java JRE v1.6
BUGFIXES:
Import allows multiple airings for null channels
(jreichen) Set search string text box as the control with default focus on search page
(jreichen) The episode id is always the last 4 digits of the show id], regardless of the length of the show id
(jreichen) Fix errors that prevented VLC streaming from a Linux server.
(jreichen) Add server-side buffering for VLC streaming to reduce premature end-of-file errors
(jreichen) Recordings were not scheduled for a new favorite with a selected channel
(jreichen) Favorite Options item was sometimes still displayed on details page after favorite was deleted
(jreichen) Conflicts page crashes if missed airing is a manual recording
(jreichen) Conflict icon for missed manual recording not displayed in EPG, details, or search results
(jreichen) Web server was assuming port 80 was the default port when generating HTTP and HTTPS URLs. It should be port 80 for HTTP and port 443 for HTTPS
(jreichen) RSS feed items had a problem in the URL and viewing them would display an error that it was an unknown AiringId
(jreichen) Remove unnecessary parameters from RSS feed URL because of the limit on the URL length in iTunes subscriptions
(jreichen) In the EPG Channel View, handle the case where no channels are configured in SageTV or the URL has invalid channel IDs
ENHANCEMENTS
(jreichen) Custom CSS styles for show categories and subcategories
(jreichen) Support for multi-channel favorites
geogecko
02-24-2009, 10:02 AM
Cool. Been a long time since this was updated...
I just wish my Sage box wasn't dead... DVR boxes stink, and have like 0.01% WAF...or HAF even...
=(
ToonGal
02-24-2009, 12:01 PM
Thanks to Jason, :clap: there is a new version of the sage webserver with a whole load of bugfixes, and some new features.Fantastic! I love it, Nielm, welcome back. And great job, Jason.
Tested this for about 10 minutes and it works. First obvious difference is the always 4-digit ep code. Hooray! :D Will test thoroughly over the next couple of days and get back to you with anything I see... v5 compatible too! Hip hip, Hooray!!!
A few observations about the install though, and a gift. :)
On the install, all the .html files are missing in the .zip pack. I compared it against the previous version .zip file and it is even missing the about.html page, so I'm sure this was an oversight. In noticing the missing .html pages, I even found some interesting .html files I never saw before like the speed test. Will investigate what is there vs. what is missing, but without the previous .zip file, the new one is incomplete.
That being said, I also noticed that I have some updated graphics on my side that never got into the general compilation. Some of my poorly drawn ones are still there, and I figured I'd upload the new ones to be replaced in further packs. Enjoy! :)
Comitizer
03-01-2009, 10:51 PM
Has anyone tried to get this web interface to proxy through the webserver on IIS?
I've managed to get everything up and running and when I get to my new site I am proxied through (I know because I get the login prompt). However, once I've logged in, the browser just sits and spins.
I'm using the managed fusion plugin from codeplex and this the the rule that I have set up:
RewriteBase /Remote/Sage
RewriteRule ^(.*)$ http://<server>:8080/sage/home$1 [NC,P]
mkanet
03-01-2009, 11:11 PM
I've been waiting for an IIS version for years; but I never figured out a way to get it to work. Currently, I have IIS 7 to serve http/https (for my ASP.NET applications); and sageTV webserver to run completely independantly. It would be so nice to have sageTV webserver running on IIS https port 443.
Has anyone tried to get this web interface to proxy through the webserver on IIS?
I've managed to get everything up and running and when I get to my new site I am proxied through (I know because I get the login prompt). However, once I've logged in, the browser just sits and spins.
I'm using the managed fusion plugin from codeplex and this the the rule that I have set up:
RewriteBase /Remote/Sage
RewriteRule ^(.*)$ http://<server>:8080/sage/home$1 [NC,P]
AzJazz
03-03-2009, 07:46 AM
Bummer! :bang:
Even with the new version, I see an "Unhandled Win32 Exception" on VLC.
Is there anything I can provide that will give more info on how to fix this?
Thanks ...
AzJazz
evilpenguin
03-03-2009, 12:43 PM
I just noticed the recent update, thanks a bunch for continuing to develop this great plug-in:goodjob:
vBulletin® v3.7.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.