SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #2041  
Old 08-14-2008, 06:45 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
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
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #2042  
Old 08-14-2008, 07:05 AM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Thanks! I'm not that bothered about multi-channel faves myself, I'd just prefer that single-channel faves entered via the webserver worked...
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
Reply With Quote
  #2043  
Old 08-15-2008, 07:47 AM
geogecko geogecko is offline
Sage Icon
 
Join Date: Dec 2004
Location: North Oklahoma
Posts: 2,273
Quote:
Originally Posted by rickgillyon View Post
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.
__________________
-Jason
Reply With Quote
  #2044  
Old 08-15-2008, 06:50 PM
BlueH2O's Avatar
BlueH2O BlueH2O is offline
Sage Advanced User
 
Join Date: Aug 2005
Location: Rochester, NY
Posts: 98
HD Power off?

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.
Reply With Quote
  #2045  
Old 08-18-2008, 06:48 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
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
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #2046  
Old 08-19-2008, 04:54 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Line 235 of this source 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?
Code:
killall miniclient
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT

Last edited by bcjenkins; 08-19-2008 at 04:58 AM.
Reply With Quote
  #2047  
Old 08-19-2008, 10:55 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by bcjenkins View Post
Line 235 of this source 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?
Code:
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.
Reply With Quote
  #2048  
Old 08-19-2008, 10:59 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Would you mind posting compiling instructions?

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #2049  
Old 08-19-2008, 11:38 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by bcjenkins View Post
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:

Quote:
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?

Quote:
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.
Reply With Quote
  #2050  
Old 08-19-2008, 11:46 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
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
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #2051  
Old 08-19-2008, 12:09 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by bcjenkins View Post
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).
Reply With Quote
  #2052  
Old 08-19-2008, 12:16 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
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..
Quote:
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?
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT

Last edited by bcjenkins; 08-19-2008 at 12:29 PM.
Reply With Quote
  #2053  
Old 08-19-2008, 12:20 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by bcjenkins View Post
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
Yes. 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.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #2054  
Old 08-19-2008, 01:46 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by bcjenkins View Post
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.
Reply With Quote
  #2055  
Old 08-19-2008, 02:04 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
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.
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #2056  
Old 08-19-2008, 02:14 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by bcjenkins View Post
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.
Reply With Quote
  #2057  
Old 08-19-2008, 07:45 PM
steve909 steve909 is offline
Sage User
 
Join Date: Sep 2006
Posts: 21
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

Last edited by steve909; 08-19-2008 at 07:52 PM.
Reply With Quote
  #2058  
Old 08-19-2008, 07:50 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
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 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:

Code:
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.
Reply With Quote
  #2059  
Old 08-19-2008, 10:36 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by steve909 View Post
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.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #2060  
Old 08-20-2008, 12:59 AM
steve909 steve909 is offline
Sage User
 
Join Date: Sep 2006
Posts: 21
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.
Reply With Quote
Reply

Tags
web


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: Mobile Web Interface 1.2 jreichen SageTV Customizations 281 06-17-2011 02:20 PM
Can't get Web-based User Interface to install SSBrian SageTV Customizations 3 11-04-2008 08:12 PM
Web User interface link for the metadata file. zzmystique SageTV Customizations 0 06-21-2008 02:26 AM
Idea to enhance the Web User Interface: Messaging jbarr SageTV Customizations 3 05-14-2007 03:59 PM
Linkplayer, Linktheater with SageTV Web User Interface fyodor SageTV Customizations 0 10-08-2006 06:03 PM


All times are GMT -6. The time now is 02:49 PM.


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