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
  #181  
Old 07-03-2008, 03:04 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
pj,

if you open up the weatherconfig.xml using a text editor (in Windows, right-click on the file, select "Edit" and tell it to use Notepad or Wordpad), you will notice that there are numerous comments in it.

Whenever you see: <!--
in an XML file, all the text after that point is a comment until you see: -->

To start with, read all the comments in the default weatherconfig.xml file.

Near the top of the file you will see the following comments:
Quote:
A layer represents one set of frames in a view. Each layer in a view should have either X number
of frames, or 1 frame (if it is not an animated layer).

All layers have the following attributes:

type: the type of layer (can be "animation", "image" or "manualanimation").

name: used to identify the layer for the purposes of having a more readable configuration file.


A layer of type "animation" reads and parses an animated gif file. An animation layer has the
following attributes:

href: URL of the file that represents the layer's data

(optional) cropbottom, croptop, cropleft, cropright: percentage of the image to crop before rendering the
image for the client. Defaults to 0. Must be between 0 and 1 inclusive.

(optional)anchorX, anchorY: values passed to the client to define the location of the anchor within the
rendered image. Defaults to 0. 0,0 it the top left.

(optional)fixedWidth, fixed height: values passed to the client to define the width and height of the
anchor within the rendered image. Defaults to 1.0.


A layer of type "image" reads an image file. An image layer has the same attributes as an "animation"
layer.


A layer of type "manualanimation" reads a series of image file and composes them into an animation.
A manualanimation layer has the same attributes as an "animation" layer, except that it lack an href
attribute.
So the WRS import reserves an area on the screen where it will display the images or animation. The fixedwidth, fixed height, and anchor numbers are percentages relative to this area. The crop numbers are percentages relative to the original image.

By setting the crop attributes, you can trim unwanted parts of your picture.
By setting the fixed width and fixed height attributes, you can stretch or compress your image.
By setting the anchor attributes, you can move the images around.

You will probably need to spend some time playing around with these numbers to get the effect you want.

It's been awhile since I did this, but if I remember correctly, the weatherconfig.xml file only gets read once when you start WRS. This means you need to restart Sage every time you make a change before it takes effect.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #182  
Old 07-04-2008, 10:01 PM
pjpjpjpj pjpjpjpj is offline
Sage Icon
 
Join Date: Feb 2008
Posts: 2,164
Quote:
Originally Posted by Tiki View Post
...So the WRS import reserves an area on the screen where it will display the images or animation. The fixedwidth, fixed height, and anchor numbers are percentages relative to this area. The crop numbers are percentages relative to the original image.

By setting the crop attributes, you can trim unwanted parts of your picture.
By setting the fixed width and fixed height attributes, you can stretch or compress your image.
By setting the anchor attributes, you can move the images around.

You will probably need to spend some time playing around with these numbers to get the effect you want.

It's been awhile since I did this, but if I remember correctly, the weatherconfig.xml file only gets read once when you start WRS. This means you need to restart Sage every time you make a change before it takes effect.
Thanks - I had read those notes but I guess I just wanted confirmation from someone.

Unfortunately, I have bigger fish to fry right now... one of my HDHRs died... not good for the WAF....
__________________
Server: AMD Athlon II x4 635 2.9GHz, 8 Gb RAM, Win 10 x64, Java 8, Gigabit network
Drives: Several TB of internal SATA and external USB drives, no NAS or RAID or such...
Software: SageTV v9x64, stock STV with ADM.
Tuners: 4 tuners via (2) HDHomeruns (100% OTA, DIY antennas in the attic).
Clients: Several HD300s, HD200s, even an old HD100, all on wired LAN. Latest firmware for each.
Reply With Quote
  #183  
Old 07-11-2008, 01:06 AM
Skarr11 Skarr11 is offline
Sage User
 
Join Date: Dec 2004
Posts: 72
Weather.com "high level info" not displayed

Greetings!

I am unable to display the weather.com information for current conditions, forecast, etc. Essentially, anything from weather.com isn't coming up. All my other maps, animations, etc. display fine. I have confirmed that the location codes from weather.com are correct. Any thoughts as to why this is occurring?

Attached is my weather config file.

Thanks.
Attached Files
File Type: txt weatherconfig.xml.txt (20.4 KB, 244 views)
__________________
HTPC: Gigabyte GA-890GPA-UD3H Motherboard; AMD Phenom II X6 1090T Processor; 8 GB RAM; Asus NVidia GeForce GT 430; 1x1000 GB WD SATA HDD (apps, photos, music), 1x1000 GB WD SATA HDD (Recordings); Antec Sonata Case; Windows 7 HP 64-bit; SageTV V7.023.246; 1xHauppauge HD-PVR

Video sources: DirecTV H21 receiver controlled with Paterson Technology device
Reply With Quote
  #184  
Old 07-13-2008, 11:12 AM
Skarr11 Skarr11 is offline
Sage User
 
Join Date: Dec 2004
Posts: 72
Bump...
__________________
HTPC: Gigabyte GA-890GPA-UD3H Motherboard; AMD Phenom II X6 1090T Processor; 8 GB RAM; Asus NVidia GeForce GT 430; 1x1000 GB WD SATA HDD (apps, photos, music), 1x1000 GB WD SATA HDD (Recordings); Antec Sonata Case; Windows 7 HP 64-bit; SageTV V7.023.246; 1xHauppauge HD-PVR

Video sources: DirecTV H21 receiver controlled with Paterson Technology device
Reply With Quote
  #185  
Old 07-14-2008, 04:06 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Did this configuration file work at some time in the past and suddenly stop working?

If it never worked, you could try removing the entries for El Segundo and 29Palms and try again. If that fixes your problem, then it might be because it doesn't like the punctuation in your labels (').

I had a problem where I labeled one of my maps "Satellite & Radar Composite" and it wouldn't work because of the "&".
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #186  
Old 07-15-2008, 11:52 AM
pjpjpjpj pjpjpjpj is offline
Sage Icon
 
Join Date: Feb 2008
Posts: 2,164
Quote:
Originally Posted by Tiki View Post
pj,
...
By setting the crop attributes, you can trim unwanted parts of your picture.
By setting the fixed width and fixed height attributes, you can stretch or compress your image.
By setting the anchor attributes, you can move the images around.
So I took exactly what I had - which gave me a bunch of stuff stacked on top of itself - and I put in the anchorx and anchory values from the site that I found the source code for the page, converting the pixel offsets to decimal numbers (assuming that the background map will be "1x1", where the original was listed as being offset 360 pixels, I made the anchorx=".360"). I don't know if that's the right way to do it or not... but regardless, now I get a blank screen. Hmmm. I can understand if the offsetting was wrong, but I was hoping I would at least see something, so that I could make corrections...

I guess what I really need is someone to explain to me the text from the original source code, and what those offset numbers are doing with relation to the original background map, so that I can try to determine how to use them in the WRS code.... but first I would like to have the map pieces visible, period.
__________________
Server: AMD Athlon II x4 635 2.9GHz, 8 Gb RAM, Win 10 x64, Java 8, Gigabit network
Drives: Several TB of internal SATA and external USB drives, no NAS or RAID or such...
Software: SageTV v9x64, stock STV with ADM.
Tuners: 4 tuners via (2) HDHomeruns (100% OTA, DIY antennas in the attic).
Clients: Several HD300s, HD200s, even an old HD100, all on wired LAN. Latest firmware for each.
Reply With Quote
  #187  
Old 08-02-2008, 07:38 PM
egeller egeller is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Drexel Hill, PA
Posts: 334
Null Pointer Exception

The WRS has not been retrieving forecast data since for a few months for me. The maps are OK, it's the forecast I'm missing. At first I thought it might have been related to the changes at Weather.com, but traffic on this thread seems to indicate that the WRS is working fine for some. Please advise if that's not true.

Today I finally had time to look at the error. The error has me stumped. Here's a sample from the log:
Tue 7/22 11:37:54.302 com.stusals.wrs.Location: Problem retrieving data
Tue 7/22 11:37:54.303 com.stusals.wrs.Location: Failed to create class com.stusals.wrs.data.WeatherDotCom: InvocationTargetException
Tue 7/22 11:37:54.303 com.stusals.wrs.Location: java.lang.NullPointerException
Tue 7/22 11:37:54.303 java.lang.NullPointerException
Tue 7/22 11:37:54.304 at com.stusals.wrs.data.WeatherDotCom.getFirstElement(WeatherDotCom.java:345)
Tue 7/22 11:37:54.304 at com.stusals.wrs.data.WeatherDotCom.getSubElementValue(WeatherDotCom.java:349)
Tue 7/22 11:37:54.304 at com.stusals.wrs.data.WeatherDotCom.<init>(WeatherDotCom.java:79)
Tue 7/22 11:37:54.304 at sun.reflect.GeneratedConstructorAccessor50.newInstance(Unknown Source)
Tue 7/22 11:37:54.305 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
Tue 7/22 11:37:54.305 at java.lang.reflect.Constructor.newInstance(Unknown Source)
Tue 7/22 11:37:54.305 at com.stusals.wrs.Location.retrieve(Location.java:57)
Tue 7/22 11:37:54.305 at com.stusals.bgupdate.BGUpdateable.update(BGUpdateable.java:73)
Tue 7/22 11:37:54.306 at com.stusals.bgupdate.Updater.update(Updater.java:12)
Tue 7/22 11:37:54.306 at com.stusals.bgupdate.UpdateThread.run(UpdateThread.java:23)


I was able to get Testy to work without error messages, after I struggled through some Java ignorance. (see http://tools.assembla.com/sageplugin...tSuite#Testing)

I have also examined the timestamps of all the components in the WRS installation zip file and confirmed that I'm using the correct components.

Any thoughts? Right now I have maps only. Is it a weather.com thing or a Sage Beta thing?
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT
SageTV Extender:3x HD200 1x HD300 1xFireTV
Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon
All in lovely Drexel Hill, PA
Reply With Quote
  #188  
Old 08-30-2008, 05:58 AM
scat scat is offline
Sage Aficionado
 
Join Date: Jul 2005
Location: Palm Coast,Fl
Posts: 253
Thumbs up Anyone use the Weather Report Suite? Add Hurricane Info

I have revised my weatherconfig.xml to include Hurricane information, see my post: http://forums.sagetv.com/forums/show...884#post274884

Scat
Reply With Quote
  #189  
Old 08-30-2008, 11:41 PM
Skarr11 Skarr11 is offline
Sage User
 
Join Date: Dec 2004
Posts: 72
Sorry, I forgot to keep tabs on this thread!

Tiki, this config file had been working fine for quite awhile, a couple of years now. My problem is exactly like egeller's: the maps (static and animated) are fine, and they retrieve up-to-date information, but the forecasts from Weather.com don't come in. I simply get "Untitled" for each location I select. But the maps are fine.
__________________
HTPC: Gigabyte GA-890GPA-UD3H Motherboard; AMD Phenom II X6 1090T Processor; 8 GB RAM; Asus NVidia GeForce GT 430; 1x1000 GB WD SATA HDD (apps, photos, music), 1x1000 GB WD SATA HDD (Recordings); Antec Sonata Case; Windows 7 HP 64-bit; SageTV V7.023.246; 1xHauppauge HD-PVR

Video sources: DirecTV H21 receiver controlled with Paterson Technology device
Reply With Quote
  #190  
Old 08-31-2008, 08:46 AM
egeller egeller is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Drexel Hill, PA
Posts: 334
Madas, Skarr11 and I, apparently, are seeing the same behavior - No forecast retrieval, but the maps work fine.

Thinking it's a Java issue, I nuked all the versions of Java and reinstalled the latest. No change.

I have a laptop I use infrequently. It has a SageClient license, so I upgraded it to V6.4.8 and loaded WRS and it works fine. I have compared the Jars in ..\SageTV\SageTV\JARs between the server and the laptop and made the server identical to the laptop there. Still no change on the server.

Does anyone have any idea on what to do about the NullPointerException error? I am still getting it.
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT
SageTV Extender:3x HD200 1x HD300 1xFireTV
Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon
All in lovely Drexel Hill, PA
Reply With Quote
  #191  
Old 09-30-2008, 06:51 AM
SnyperBob SnyperBob is offline
Sage User
 
Join Date: Apr 2008
Location: Chicagoland
Posts: 61
Hey guys,

For some reason, I'm unable to download the v4 weather report suite zipfile via the link in the wiki.

I'll test it out again later today. I was wondering if anyone else is having this problem, and if this file can be downloaded elsewhere. Can someone host this file that has it?

Thank you

Here's the link thats not working:
http://sageplugins.sf.net/nielm_modu...ite_import.zip
Reply With Quote
  #192  
Old 09-30-2008, 07:57 AM
salsbst's Avatar
salsbst salsbst is offline
SageTVaholic
 
Join Date: Jun 2003
Posts: 2,592
Strange -- worked for me. I just posted the file here, see if this works "better":

http://stusals.com/weather_report_suite_import.zip
Reply With Quote
  #193  
Old 09-30-2008, 04:46 PM
SnyperBob SnyperBob is offline
Sage User
 
Join Date: Apr 2008
Location: Chicagoland
Posts: 61
Thank you! I appreciate it. For some reason earlier today the links in the wiki were not working correctly. Linked images were not even displaying.

Thanks for posting another link, I'll check this out. Have a great day!
Reply With Quote
  #194  
Old 09-30-2008, 04:50 PM
salsbst's Avatar
salsbst salsbst is offline
SageTVaholic
 
Join Date: Jun 2003
Posts: 2,592
I hope the weather holds up for you!
Reply With Quote
  #195  
Old 09-30-2008, 06:53 PM
SnyperBob SnyperBob is offline
Sage User
 
Join Date: Apr 2008
Location: Chicagoland
Posts: 61
Thank you! I got the default locations to work no problem. It was a breeze to install this mod. This is only my second mod to install, so I was a little tentative. I installed dynamic menus so I could add this to my menus.

Now I just need to figure out how to configure it to tweak this for my location! Thank you!
Reply With Quote
  #196  
Old 10-01-2008, 12:25 AM
SnyperBob SnyperBob is offline
Sage User
 
Join Date: Apr 2008
Location: Chicagoland
Posts: 61
Hello,

I just have a few questions. I tried to make a couple changes to get my local weather to show up. The default stuff seems to show up and work fine (DC, New York, etc), but when I make my changes I don't see them.

Is the only file I need to make changes to weatherconfig.xml? What about weatherconfig_us.xml? Do I need to make changes to both of these files? It appears everyone only poster their weatherconfig.xml, so I assume I don't need to update the other file...??

After I make changes, do I just have to restart SageTV, or do I have to do an 'import' or something again? I'm missing a step since I can't see my changes. I have tried restarting SageTV and that didn't work (I didn't see my changes). I'm wondering if I need to do another import again or something.

Sorry I don't know much about XML and I'm having trouble figuring out the flow of the code...

Thank you

Last edited by SnyperBob; 10-01-2008 at 01:59 AM.
Reply With Quote
  #197  
Old 10-01-2008, 05:54 AM
salsbst's Avatar
salsbst salsbst is offline
SageTVaholic
 
Join Date: Jun 2003
Posts: 2,592
You should only need to modify weatherconfig.xml and restart Sage. If you're using the service, you need to restart the service (I think).
Reply With Quote
  #198  
Old 10-01-2008, 05:56 AM
SnyperBob SnyperBob is offline
Sage User
 
Join Date: Apr 2008
Location: Chicagoland
Posts: 61
Hmmm, odd, restarting Sage/service wasn't doing it. I just now redid my config file, re-imported the WRS, and THEN restarted Sage again and it works!

Thanks for your help

Works great, I love it
Reply With Quote
  #199  
Old 10-01-2008, 06:13 AM
salsbst's Avatar
salsbst salsbst is offline
SageTVaholic
 
Join Date: Jun 2003
Posts: 2,592
Ok, on second thought, I don't think you need to restart the service. Restarting the client should have done the trick. I don't think re-importing could possibly be of help.

Anyway, glad you got it working.
Reply With Quote
  #200  
Old 03-02-2009, 07:29 AM
scat scat is offline
Sage Aficionado
 
Join Date: Jul 2005
Location: Palm Coast,Fl
Posts: 253
Anyone using this with Sage 6.5.9?

After I updated from 6.4.8 to 6.5.9 all my screens are messed up see image, I haven't changed any font setting in Sage, and the Weather Report Suite was already set up under ver 6.5.8 and working good.

Scat

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
Simple (but effective) security for any STV Lester Jacobs SageTV Customizations 5 12-17-2010 03:21 PM
STV Import: Slim Player for SageMC (for SageTV 6.3+) Morgan111 SageMC Custom Interface 326 07-28-2010 06:54 AM
STV: Cayars17 Ultimate STV (Release 17 - Jan 18) Cayars SageTV Customizations 3664 12-13-2005 05:35 PM
STV: MalDude2 custom STV (V1.6 Feb 9) Opus4 SageTV Customizations 78 06-10-2005 08:54 PM


All times are GMT -6. The time now is 02:48 AM.


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