SageTV Community  

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

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #321  
Old 07-24-2015, 09:05 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Please bear with me. I'm new to Java EE development.

Is there documentation somewhere to get the development environment set up? I have the JDK, Eclipse, and Tomcat set up. I'm getting IDE errors relating to servlets as well as the SageApi. There doesn't seem to be a Targeted Runtime option in the project properties or am I barking up the wrong tree with Tomcat?
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #322  
Old 07-24-2015, 10:37 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Never mind, figured it out. Less of a n00b now.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #323  
Old 07-24-2015, 04:42 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
No problem. For anyone who comes along later... Tomcat is not needed. Jetty is the web server. You also need to copy the Sage jar file from your SageTV installation into the classpath in your IDE.
__________________
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
  #324  
Old 07-24-2015, 05:12 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Yeah, I figured out that I had to create the SAGE_JAR and SAGELIB variables.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #325  
Old 12-10-2015, 09:24 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
For anyone who is interested here is the css fix for the squared corners on hover over epg cells. Quite annoying looking when the corner radius gets all screwed up just by hovering over something. Works on IE, Edge, Chrome, and Firefox.

Just remove the .txt from the end and replace the file in the jetty folder structure and in the war file.

Edited: Forgive me. I noticed a bug in search results that caused the same issue. Now corrected the apparent redundancy in the css that was causing issue.
Attached Files
File Type: txt sage_all.css.txt (21.7 KB, 108 views)
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD

Last edited by Taddeusz; 12-10-2015 at 04:30 PM.
Reply With Quote
  #326  
Old 12-14-2015, 11:54 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I have a question. I'm trying to build/export the webserver JAR file. When I try to use the webserver.jardesc it says the main class is not valid. It doesn't like net.sf.sageplugins.webserver.Version. It says it's not included or does not have a main method.

What could I be doing wrong?
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #327  
Old 12-22-2015, 04:56 PM
troycheek's Avatar
troycheek troycheek is offline
Sage Advanced User
 
Join Date: Feb 2008
Posts: 148
I was using a program that used wget to obtain information from the Web UI running on my SageTV server called media-pc. Something like this:

Code:
wget "http://sage:frey@media-pc:8080/sage/Recordings?xml=yes" -O test.xml
In the past, even something like getting all the information for all the currently stored recorded shows took just a few seconds (even though that's 7 MB of information!). Recently, however, each query started taking more than a minute to complete. I stepped through the process manually and found that the delay was that wget (or Windows 7 or my router or the DNS server or something) was resolving "media-pc" to its IPv6 address as well as the IPv4 address. wget couldn't actually connect to this IPv6 address for whatever reason, so after a minute or so it would fall back to the IPv4 address, connect to that, and get the requested information. I "solved" the problem by adding the "-4" parameter to the wget command line like this:

Code:
wget -4 "http://sage:frey@media-pc:8080/sage/Recordings?xml=yes" -O test.xml
This tells wget to try to connect to the IPv4 address first, I assume. Just thought I'd pass that along in case anybody else had that problem.

Minor bug report/feature request: The WebUI's XML results returned above do not include information about which tuner encoded any particular recording. I think I've figured out how to scrape that information from one of the html pages. Still working on it. (Useful information if you have automated file conversions set up with different parameters depending on the encoder.)

The WebUI and wget are a powerful combination for anybody who wants to get information from Wiz.bin or otherwise interact with SageTV and has no idea how to use the Sage API(s) actually intended for this purpose.
Reply With Quote
  #328  
Old 01-09-2016, 04:41 PM
fidget's Avatar
fidget fidget is offline
Sage Icon
 
Join Date: Jun 2003
Location: Cedar Rapids, Iowa, USA
Posts: 1,186
I had everything working fine with Sage 7, running in Windows 7 with Java 8. When I updated the PC to Windows 10, I can no longer get a page back when I connect to Sage. There is no error in the web browser and I don't see any new errors in the log file. Does anyone have this working in Windows 10?
__________________
Server: i5-2405S (4 core @ 2.5 GHz), 8GB RAM, NORCO RPC-4220 4U case
Tuners: 2 SiliconDust HDHomeRun , 2 Hauppauge HD-PVR Connected to 1 Pace700X and 1 TiVo Series 4
DVD Storage: 24 TB
TV Storage: 11 TB (4x1.5TB for recording, 5TB for archive)
Clients: 3
SageTV Extenders:5
Reply With Quote
  #329  
Old 01-09-2016, 07:20 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I am betting it is a Java issue - have you tried rolling back to 7?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #330  
Old 01-09-2016, 07:55 PM
fidget's Avatar
fidget fidget is offline
Sage Icon
 
Join Date: Jun 2003
Location: Cedar Rapids, Iowa, USA
Posts: 1,186
Quote:
Originally Posted by wayner View Post
I am betting it is a Java issue - have you tried rolling back to 7?
Since that version has reached end of life, I'd rather not do that. I may do some mucking around with the firewall. I remember seeing it pop-up some warnings with Plex after the update.
__________________
Server: i5-2405S (4 core @ 2.5 GHz), 8GB RAM, NORCO RPC-4220 4U case
Tuners: 2 SiliconDust HDHomeRun , 2 Hauppauge HD-PVR Connected to 1 Pace700X and 1 TiVo Series 4
DVD Storage: 24 TB
TV Storage: 11 TB (4x1.5TB for recording, 5TB for archive)
Clients: 3
SageTV Extenders:5
Reply With Quote
  #331  
Old 01-09-2016, 07:59 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
The Windows installer for SageTV V9 that jusjoken is working on explicitly installs Java 7. If I remember correctly I believe the issue is that version of Jetty used with the web server doesn't work with Java 8.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #332  
Old 01-09-2016, 08:11 PM
fidget's Avatar
fidget fidget is offline
Sage Icon
 
Join Date: Jun 2003
Location: Cedar Rapids, Iowa, USA
Posts: 1,186
Quote:
Originally Posted by wayner View Post
The Windows installer for SageTV V9 that jusjoken is working on explicitly installs Java 7. If I remember correctly I believe the issue is that version of Jetty used with the web server doesn't work with Java 8.
That is very strange, since the web server had been working with Jave 8 until I upgraded from Win 7 to 10. I'll let you know if I am able to get it working.

I am holding off updating to SageTV 9 for now. Once it gets a bit more stable, I'll move over.
__________________
Server: i5-2405S (4 core @ 2.5 GHz), 8GB RAM, NORCO RPC-4220 4U case
Tuners: 2 SiliconDust HDHomeRun , 2 Hauppauge HD-PVR Connected to 1 Pace700X and 1 TiVo Series 4
DVD Storage: 24 TB
TV Storage: 11 TB (4x1.5TB for recording, 5TB for archive)
Clients: 3
SageTV Extenders:5
Reply With Quote
  #333  
Old 01-09-2016, 08:13 PM
Monedeath Monedeath is offline
Sage Expert
 
Join Date: Sep 2009
Location: Idaho
Posts: 514
Quote:
Originally Posted by wayner View Post
The Windows installer for SageTV V9 that jusjoken is working on explicitly installs Java 7. If I remember correctly I believe the issue is that version of Jetty used with the web server doesn't work with Java 8.
It works for some without issue, it is "quirky" for a few others, most other users seem to only encounter pain when they try it with Java8. So based on feedback from other posters, I will no longer claim it won't work with v8, it might. But the typical experience is it usually doesn't.
Reply With Quote
  #334  
Old 01-09-2016, 08:38 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Monedeath View Post
It works for some without issue, it is "quirky" for a few others, most other users seem to only encounter pain when they try it with Java8. So based on feedback from other posters, I will no longer claim it won't work with v8, it might. But the typical experience is it usually doesn't.
I honestly don't think anyone has even tried to track down specifically what part of the web interface breaks with java 8, just that it does - the general consensus seems to be that it's better to simply move the (or more accurately, create a whole new) web interface to the current version of Jetty, fully compatible with Java 8. Not sure if/when that will happen, and for now, it is recommended to use Java 7 for the server. MOST people run their server as a headless, or rarely interacted with appliance, in which case, an old version of java really shouldn't make any sort of difference.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #335  
Old 01-11-2016, 11:40 AM
MattHelm MattHelm is offline
Sage Icon
 
Join Date: Jun 2005
Location: Chicago, IL
Posts: 1,209
I had a machine act weird on me when updating to 10. Had to reinstall VS2015, I think. I also added the web server to someones machine the other day, and SageTV stopped, but then started again. I forget what he needed to do to get it running. Will ask at lunch.
__________________
Server #1= AMD A10-5800, 8G RAM, F2A85-M PRO, 12TB, HDHomerun Prime, HDHR, Colossus (Playback - HD-200)
Server #2= AMD X2 3800+, 2G RAM, M2NPV-VM, 2TB, 3x HDHR OTA (Playback - HD-200)
Reply With Quote
  #336  
Old 01-11-2016, 01:17 PM
MattHelm MattHelm is offline
Sage Icon
 
Join Date: Jun 2005
Location: Chicago, IL
Posts: 1,209
OK, ask my friend, and he did have to roll back to JAVA 7 to get the web interface running under Windows 10. All my servers still use 1.7.
__________________
Server #1= AMD A10-5800, 8G RAM, F2A85-M PRO, 12TB, HDHomerun Prime, HDHR, Colossus (Playback - HD-200)
Server #2= AMD X2 3800+, 2G RAM, M2NPV-VM, 2TB, 3x HDHR OTA (Playback - HD-200)
Reply With Quote
  #337  
Old 01-17-2016, 01:50 PM
fidget's Avatar
fidget fidget is offline
Sage Icon
 
Join Date: Jun 2003
Location: Cedar Rapids, Iowa, USA
Posts: 1,186
I discovered that Win 10 installs an HTTP service. In order to free up port 80, I had to do the following from an administrator command prompt:

net stop http /y

Once that was done, Sage was able to create the server connection.
__________________
Server: i5-2405S (4 core @ 2.5 GHz), 8GB RAM, NORCO RPC-4220 4U case
Tuners: 2 SiliconDust HDHomeRun , 2 Hauppauge HD-PVR Connected to 1 Pace700X and 1 TiVo Series 4
DVD Storage: 24 TB
TV Storage: 11 TB (4x1.5TB for recording, 5TB for archive)
Clients: 3
SageTV Extenders:5
Reply With Quote
  #338  
Old 01-17-2016, 02:40 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by fidget View Post
I discovered that Win 10 installs an HTTP service. In order to free up port 80, I had to do the following from an administrator command prompt:

net stop http /y

Once that was done, Sage was able to create the server connection.
I don't see a service called http running on my Win 10 PCs - I have generally run all of my Sage/Jetty stuff through port 8080.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #339  
Old 01-17-2016, 03:09 PM
fidget's Avatar
fidget fidget is offline
Sage Icon
 
Join Date: Jun 2003
Location: Cedar Rapids, Iowa, USA
Posts: 1,186
Quote:
Originally Posted by wayner View Post
I don't see a service called http running on my Win 10 PCs - I have generally run all of my Sage/Jetty stuff through port 8080.
Try this:
- Shut down Sage
- Open a command prompt with administrator privileges.
- From the command prompt, type 'netstat-a' and look to see if a process is using your desired port. I had a process listening on port 80.

With my current Sage,configuration, I am able to run Java 8 and still have the SageTV web server work correctly.
__________________
Server: i5-2405S (4 core @ 2.5 GHz), 8GB RAM, NORCO RPC-4220 4U case
Tuners: 2 SiliconDust HDHomeRun , 2 Hauppauge HD-PVR Connected to 1 Pace700X and 1 TiVo Series 4
DVD Storage: 24 TB
TV Storage: 11 TB (4x1.5TB for recording, 5TB for archive)
Clients: 3
SageTV Extenders:5
Reply With Quote
  #340  
Old 02-02-2016, 08:15 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I've noticed with the latest version of Chrome, v48, that the menus no longer open when hovered over. You must now click to open the menus. At least they still work. Just noticed the change in behavior.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 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: SageTV Web Interface V2 for Jetty jreichen SageTV Customizations 256 02-09-2014 08:05 AM
Plugin: Mobile Web Interface 1.2 jreichen SageTV Customizations 281 06-17-2011 02:20 PM
Plugin: Sage Web Lite (SWL) Slugger SageTV Customizations 28 04-23-2009 01:32 PM
Web Plugin RSS feed question matt91 SageTV Customizations 1 07-28-2006 11:24 AM
error message with web server plugin edgley SageTV Customizations 3 01-15-2006 11:32 AM


All times are GMT -6. The time now is 07:12 PM.


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