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
  #21  
Old 07-07-2004, 07:51 AM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
I had a 1hr cache in the .Net one as well. However, I removed it since the weather (at least in my area) is prone to sudden change and it was nice to be able to jump in and see an update.

Can this be configurable somehow?
Reply With Quote
  #22  
Old 07-07-2004, 08:08 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
The 'cache' is the generated weather.txt file -- it is is not there, then it has to get new data, if it is there, then the timestamp is checked, so a very simple override is to delete the weather.txt file!

Perhaps you could add a 'refresh' button in the STV which deletes the weather.txt file before running getweather, or alternatively it could call getweather with an extra argument 'nocache' to force an update (obviously this would need an updated of all getweather programs to recognise this argument!)

(the main reson for the cache was because I kept on scrolling to the right to see future forecasts, then scrolled too far back to the left, taking me accidentally back to the main menu, so if I wanted to go back to the weather, I had to wait for another download!)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #23  
Old 07-07-2004, 08:15 AM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
Sounds good. The caching in my version uses the created date of the Weather.txt file so a "Refresh" from Sage should work fine.
Reply With Quote
  #24  
Old 07-07-2004, 03:03 PM
Capt Dean Capt Dean is offline
Sage User
 
Join Date: Apr 2004
Location: Great Falls, MT
Posts: 51
Quote:
Originally posted by nielm
The error message is indicating that java.exe cannot find the getWeather3.class file. Normally you would not see this error if you are running the .bat file from the directory where the getWeather3.class file is.

Is that a direct copy of the error message -- because the the class name is case-sensitive, and it should be getWeather3 (note the capital 'W').
If so it seems that the class name is being magically translated to all lower case, and so the java.exe cannot find it...

Try putting getWeather3 in quotes ("getWeather3") in the batch file as a possible workaround and see if the manual test works...

(I tested on W2K and WXP -- are you running W98/ME?)
note an exact quote. It actually is getWeather3
Tried the quotes. no good.
Running XP.

Maybe note, I'm doing this in client.
Reply With Quote
  #25  
Old 07-07-2004, 09:00 PM
Brett Brett is offline
Sage Advanced User
 
Join Date: Jan 2004
Posts: 184
Quote:
Originally posted by nielm
Attached is a Screenshot with the additional information shown...
Your screenshot has a different font size for the data below the pictures, how did you make it smaller?
Reply With Quote
  #26  
Old 07-08-2004, 01:43 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally posted by Capt Dean
not an exact quote. It actually is getWeather3
Tried the quotes. no good.
Maybe note, I'm doing this in client.
I also running it on a client in XP...

Can you try running a command prompt, then cd to the STVs/OriginalV2/mlbdude directory (where the getweather3.class file is) and run:
java getWeather3
java -cp . getWeather3
If you get 'java is not recognised as a command', then add the full path to the java.exe (eg "c:\program files\java\j2re1.4.2_03/bin/java.exe")

If one of these works, you should get a help message from getWeather3 -- update the .bat file with the command line that works!
Reply With Quote
  #27  
Old 07-08-2004, 01:53 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally posted by ThatGuy
Your screenshot has a different font size for the data below the pictures, how did you make it smaller?
Don't know! I think I am using the default fonts sizes in the .properties file, but they should auto-scale

A quick test shows that the relative font size (and the amount of weather info displayed) depends on the window height, but it changes in 'jumps', so in some resolutions, the fonts will be relatively larger, leading to cut-off... in 1024x768, I get everything shown, while in 800x600, I get some cut-off...
In non-full screen mode, changing the width also helps...
Reply With Quote
  #28  
Old 07-08-2004, 04:48 AM
JasonJoel JasonJoel is offline
Sage Icon
 
Join Date: Mar 2003
Location: St. Louis, MO
Posts: 1,043
Yeah, all of my 'precipitation' lines are cut off because the font is too big.

Also, there are no 'weather pictures' for certain forecasts (like isolated thunderstorms). I assume the picture just hasn't been made yet on those...

Jason
Reply With Quote
  #29  
Old 07-08-2004, 06:25 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally posted by JasonJoel
Also, there are no 'weather pictures' for certain forecasts (like isolated thunderstorms). I assume the picture just hasn't been made yet on those...
Known bug -- documented in readme.txt
See this post:
http://forums.sage.tv/forums/showthr...8321#post48321
(sorry, can't do much about the font size )
Reply With Quote
  #30  
Old 07-08-2004, 07:24 AM
gotuitdan gotuitdan is offline
Sage Advanced User
 
Join Date: Apr 2004
Posts: 105
Nielm:
Suggestion on the font size problem, as I have it to.
Could you shorten "precipitation" to "precip."? That would leave room for the actual percentage for those of us with the font size problem...

thanks!

dan.
Reply With Quote
  #31  
Old 07-08-2004, 08:19 AM
Brett Brett is offline
Sage Advanced User
 
Join Date: Jan 2004
Posts: 184
Also for the missing icons renaming the pictures in the weather folder fixes this for anyone curious.
Reply With Quote
  #32  
Old 07-08-2004, 09:32 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally posted by gotuitdan
Could you shorten "precipitation" to "precip."?
Done:
Update -- version 1.1.2 / July 8
  • make Precipitation and Humidity smaller, but add padding to force word-wrap.
  • Use non-breaking spaces where appropriate
Download here
Reply With Quote
  #33  
Old 07-08-2004, 09:33 AM
Capt Dean Capt Dean is offline
Sage User
 
Join Date: Apr 2004
Location: Great Falls, MT
Posts: 51
Quote:
Originally posted by nielm
I also running it on a client in XP...

Can you try running a command prompt, then cd to the STVs/OriginalV2/mlbdude directory (where the getweather3.class file is) and run:
java getWeather3
java -cp . getWeather3
If you get 'java is not recognised as a command', then add the full path to the java.exe (eg "c:\program files\java\j2re1.4.2_03/bin/java.exe")

If one of these works, you should get a help message from getWeather3 -- update the .bat file with the command line that works!

Using java -cp . getWeather3 worked. Thanks
Reply With Quote
  #34  
Old 07-08-2004, 06:02 PM
heirway heirway is offline
Sage User
 
Join Date: Jun 2004
Location: Dallas
Posts: 6
All seems to be working except I receive no icon for "Isolated Thunder Storms".
Reply With Quote
  #35  
Old 07-08-2004, 07:32 PM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
Icons are currently based on condition title. If you are missing one, copy one in the weather images directory to match that condition. The next version will work more integrated with the weather.com data but until then that is the only option.
Reply With Quote
  #36  
Old 07-09-2004, 12:11 AM
jhh jhh is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: BE
Posts: 196
Nielm and mlbdude,

works beautifully - thanks for your efforts it is very much appreciated.

I think I'll dump the weather forecast as a favourite now.

Jan
Reply With Quote
  #37  
Old 07-09-2004, 04:30 AM
cmaffia's Avatar
cmaffia cmaffia is offline
Sage Expert
 
Join Date: May 2004
Posts: 612
Send a message via Yahoo to cmaffia
Not sure why it took a reboot to make this work but it did.
Great job!
__________________
Server: Dual Tuner: PVR-150MCE/PVR-250MCE/SageTV v5.02/Asus Pundit-R 2.4GHZ/512MB DDR RAM/250 GB Maxtor HD (8MB Buffer) External Seagate 400GB HD via USB 2.0/Onboard ATI 9100 using SVIDEO TV-Out/Nvidia DVD decoder/Actisys 200L IR Blaster (Dish receiver) USBUIRT (DirectTV receiver)/Lite-On 4X DVD-R/RW/Windows XP Pro SP2/Adesso Mini IR Keyboard w/integrated mouse/Tivo "Peanut" Remote via USBUIRT/Dish Network Model 301/DirectTV subscriber/Webserver Plugin v2.8
Reply With Quote
  #38  
Old 07-11-2004, 12:15 PM
ntmitche ntmitche is offline
New Member
 
Join Date: Jul 2004
Posts: 1
I can't get this to work for me at all. I have the .bat file setup so that it creates a correct weather.txt file. The problem I am having is that I cannot get the sage program to add a weather button on the main menu. I have added the code into the sage.prperties file and It stays in there when I close sage and look at it again. Am I missing something or...? thanks for any help
Reply With Quote
  #39  
Old 07-11-2004, 12:30 PM
Alex0230 Alex0230 is offline
Sage Advanced User
 
Join Date: Mar 2004
Location: AZ
Posts: 203
You need to close sage completely first before editing the props file. Sage rewrites the properties file on close, so if you don't close it first....all your changes will get overwrriten. From what you said, it sounded like that was the problem.

If you have custom5 mapped on your remote, you can try that....just to verify you have the correct STV loaded. Custom5 in the MlbDude STV loads the weather module. You'll need the latest MlbDude STV to get the weather module running.

http://forums.freytechnologies.com/f...&threadid=5755
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70
250 GB 7200 RPM HD = $160
512 MB Kingston DDR 333 = $80
Hauppage 350 Bundle = $220
SageTv = PriceLess

Last edited by Alex0230; 07-11-2004 at 12:34 PM.
Reply With Quote
  #40  
Old 07-11-2004, 07:53 PM
dagar dagar is offline
Sage Expert
 
Join Date: Jun 2004
Location: Chesapeake, VA
Posts: 667
I have a Sage-customization-noobie (TM) question:

Can this mod work with the mlbdude combo-mod?
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


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


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