|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#2041
|
||||
|
||||
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. |
#2042
|
||||
|
||||
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 |
#2043
|
|||
|
|||
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 |
#2044
|
||||
|
||||
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.
|
#2045
|
||||
|
||||
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. |
#2046
|
|||
|
|||
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. |
#2047
|
|||
|
|||
Quote:
|
#2048
|
|||
|
|||
Would you mind posting compiling instructions?
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#2049
|
|||
|
|||
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:
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. |
#2050
|
|||
|
|||
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 |
#2051
|
|||
|
|||
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).
|
#2052
|
|||
|
|||
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:
__________________
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. |
#2053
|
||||
|
||||
Quote:
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. |
#2054
|
|||
|
|||
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.
|
#2055
|
|||
|
|||
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 |
#2056
|
|||
|
|||
Quote:
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. |
#2057
|
|||
|
|||
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. |
#2058
|
|||
|
|||
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(); } } } |
#2059
|
||||
|
||||
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. |
#2060
|
|||
|
|||
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. |
Tags |
web |
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|
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 |