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
  #61  
Old 07-23-2004, 02:03 PM
dcannon dcannon is offline
Sage User
 
Join Date: May 2004
Location: Boston
Posts: 26
I just took the icons that came with the MLBDude skin and combined a couple (the sun and showers/thunder storm images) and gave them titles based on weather.com descriptions.
__________________
~Dan

*Go Red Sox*
Reply With Quote
  #62  
Old 07-25-2004, 12:38 PM
allesad allesad is offline
New Member
 
Join Date: Jul 2004
Posts: 2
Weather Challenges (Icons and Units of measure)

I just completed the install of mlbdude 1.8.7 with the lastest weather.com extractor.

While in SageTV, I only get weather icons for my current day WX, and the last 2 days of the 5 day forecast...the other 3 days are blank any idea why? I seem to have all the weather icons in the directory.

Also, I selected "s" for Imperial units of measure in the .bat file and saved it. When I test run the program from the CMD prompt, the weather.txt file reads in Metric units, as does SageTV.

Appreciate any help.
Reply With Quote
  #63  
Old 07-25-2004, 01:11 PM
McTurok McTurok is offline
Sage User
 
Join Date: Dec 2003
Posts: 70
Maybe there aren't images for those types of weather days. Look up in your weather images directory for images with the same discription as on the 3 that are missing.
Reply With Quote
  #64  
Old 07-25-2004, 03:44 PM
allesad allesad is offline
New Member
 
Join Date: Jul 2004
Posts: 2
I checked the weather sub-directory under MlbDude\Default2\Weather and I have 68 files(.png).

Nothing unique about the weather here in KY.

Figured I change the zip code to 89701 and re-run..bingo 5 days of WX Icons. The I changed it to 90210...one day missing (AM Clouds / PM Sun).

So I guess not all the icons exist for all the WX conditions...
Reply With Quote
  #65  
Old 07-25-2004, 04:55 PM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
First, thanks for this.

Second, a bug: Scattered T-storms image is missing.
Reply With Quote
  #66  
Old 07-25-2004, 05:02 PM
McTurok McTurok is offline
Sage User
 
Join Date: Dec 2003
Posts: 70
Your missing my point.... If you looked a few pages back in this thread you will see someone posted 2 new images that were missing. Your issue was one he was having too so he made up to new ones and they now are used when the weather is given the status of "Scattered T-Storms" for example.

Understand?

You have to see the status of that day you are missing the image for.
"Scattered T-Storms"

Therefore you MUST have an image called "Scattered T-Storms.png" in your weather images folder.

Dig deeper into your issue. Or atleast give us more information.

Edit: started typing this before the above post was made by coppit.
Reply With Quote
  #67  
Old 07-25-2004, 07:19 PM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
nielm,

As a courtesy to people whose eyes are buggin out from reading 20+ pages on the mlbdude thread, do you mind putting the filename=weather description information on the first post? (At least until a more reliable method is found)

Thanks!
Reply With Quote
  #68  
Old 07-28-2004, 07:17 AM
ukmgranger's Avatar
ukmgranger ukmgranger is offline
Sage Expert
 
Join Date: Apr 2004
Location: Derby England
Posts: 609
Does Sage automatically update the weather when you go into the weather page, or do I have to set up a .bat file to download the weather every hour or so?

The only way I have managed to get it to work so fas is thus:

created a .bat file (in the same directory as the getweather.bat file) that contains:
getweather.bat ukxx0085 weather.txt

By running this I seem to be able to download the correct weather which Sage can read. If I remove the 'weather.txt' file from the directory Sage does not download a new one.

Here are my properties:

mlbdude/=weather_exe\=\\STVs\\OriginalV2\\MlbDude\\getweathe
mlbdude/auto_close_osd_options=true
mlbdude/background=MlbDude\\default\\background.png
mlbdude/epg_selected_color=0xcccccc
mlbdude/epg_timeout=false
mlbdude/epg_title_color=0xffffcc
mlbdude/main_currently_recording=false
mlbdude/main_upcoming_recordings=false
mlbdude/mini_guide_look_ahead=true
mlbdude/osd_color_border=false
mlbdude/right_image_root=\\STVs\\OriginalV2\\MlbDude\\Default\\
mlbdude/selected_image=MlbDude\\default\\menu-selected.png
mlbdude/selected_menu_font_color=0xffffcc
mlbdude/show_menu_scroll_icons=true
mlbdude/use_file_music_library=false
mlbdude/use_mini_guide=true
mlbdude/weather_exe=\\STVs\\OriginalV2\\MlbDude\\weather.bat
mlbdude/weather_exe_java=false
mlbdude/weather_file=\\STVs\\OriginalV2\\MlbDude\\Weather.txt
mlbdude/weather_provider=www.weather.com
mlbdude/weather_url=
mlbdude/weather_zip=<UKXX0085>

Any help would be grand!
Reply With Quote
  #69  
Old 07-28-2004, 07:38 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally posted by ukmgranger
[B]Does Sage automatically update the weather when you go into the weather page
yes -- provided that the weather.txt file is more than 1 hour old, otherwise it will use the cached data.

The following property should not exist (but will not cause any harm if it does):
Code:
mlbdude/=weather_exe\=\\STVs\\OriginalV2\\MlbDude\\getweathe
and the flename in the following property should be getweather.bat
Code:
mlbdude/weather_exe=\\STVs\\OriginalV2\\MlbDude\\weather.bat
Check the readme in the zipfile for the correct property names.
Reply With Quote
  #70  
Old 07-28-2004, 01:40 PM
Diginerd Diginerd is offline
Sage Advanced User
 
Join Date: Jul 2004
Location: Stamford, CT
Posts: 173
Send a message via AIM to Diginerd Send a message via Yahoo to Diginerd
If you set up a windows schduled task to delete the weather.txt file say every 5 minutes, would that decrease the polling interval?
Reply With Quote
  #71  
Old 07-28-2004, 02:05 PM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
In the next release of the STV you will also be able to do a refresh which will delete the file and rerun. Weather in my area changes very quickly too .
Reply With Quote
  #72  
Old 07-29-2004, 04:53 AM
ukmgranger's Avatar
ukmgranger ukmgranger is offline
Sage Expert
 
Join Date: Apr 2004
Location: Derby England
Posts: 609
This is driving me insane!!

I can get the 'getweather.bat' file to download a weather report, but Sage will not update a weather report on its own. If there is no 'weather.txt' file in the mlbdude directory Sage just says 'Loading.......' and does nothing.

I added the 'start /wait cmd /k' prefix to my .bat file, but no cmd boxes appear when I click weather in Sage.

I have done all the run from cmd tests as indicated in the readme, but to no avail.

Here is my getweather.bat:

@echo off

rem numdays is number of days to forecast -- between 1 and 10
set numdays=5

rem units is metric (m) or standard/imperial (s)
set units=m

rem %1 is weather.com url or location code
rem %1 is output file name (weather.txt)

echo %1

start /wait cmd /k java "getWeather3" UKXX0085 weather.txt %units% %numdays%

rem For debug purposes, add the following before the
rem 'java "getWeather3"' ... command:
rem 'start /wait cmd /k '

rem This will cause a command window to pop up containing
rem the output of the getWeather command -- useful
rem for debugging within SAGE.
rem Close this command window by typing "exit"




Here are the relevant parts of my .properties file:

mlbdude/auto_close_osd_options=true
mlbdude/background=MlbDude\\default\\background.png
mlbdude/epg_selected_color=0xcccccc
mlbdude/epg_timeout=false
mlbdude/epg_title_color=0xffffcc
mlbdude/main_currently_recording=false
mlbdude/main_upcoming_recordings=false
mlbdude/mini_guide_look_ahead=true
mlbdude/osd_color_border=false
mlbdude/right_image_root=\\STVs\\OriginalV2\\MlbDude\\Default\\
mlbdude/selected_image=MlbDude\\default\\menu-selected.png
mlbdude/selected_menu_font_color=0xffffcc
mlbdude/show_menu_scroll_icons=true
mlbdude/use_file_music_library=false
mlbdude/use_mini_guide=true
mlbdude/weather_exe=\\STVs\\OriginalV2\\MlbDude\\getWeather.bat
mlbdude/weather_exe_java=false
mlbdude/weather_file=\\STVs\\OriginalV2\\MlbDude\\Weather.txt
mlbdude/weather_provider=www.weather.com
mlbdude/weather_url=
mlbdude/weather_zip=<UKXX0085>

As far as I can see - all is well. Someone please call me a fool and point out some really stupid error!!
Reply With Quote
  #73  
Old 07-29-2004, 05:00 AM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
Try making the case of the Weather.txt in your properties file to weather.txt. It looks like that is how you are generating the file.
Reply With Quote
  #74  
Old 07-29-2004, 05:20 AM
ukmgranger's Avatar
ukmgranger ukmgranger is offline
Sage Expert
 
Join Date: Apr 2004
Location: Derby England
Posts: 609
Thats not really where the problem is occurring. If there is a weather.txt file that has been downloaded manually, Sage displays this fine. It is only when Sage has to initiate the downloading of a new weather.txt file that he problem occurrs.

I did try your solution however and it didn't work.

I'm starting to strugle - this is one of my missus' favorite features.
Reply With Quote
  #75  
Old 07-29-2004, 06:12 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally posted by ukmgranger
I added the 'start /wait cmd /k' prefix to my .bat file, but no cmd boxes appear when I click weather in Sage.
Your mlbdude/weather_exe property line is probably still incorrect...

The properties lines as shown in the forums contains some extra spaces and odd newlines (but this may not be the case in reality!)

Check also that there are no hidden spaces at the end of the batchfile name in the properties file -- This happens sometimes with copy/paste...
Reply With Quote
  #76  
Old 07-29-2004, 06:29 AM
ukmgranger's Avatar
ukmgranger ukmgranger is offline
Sage Expert
 
Join Date: Apr 2004
Location: Derby England
Posts: 609
I have just looked through the sage.properties again and I just cant see anything wrong with it. There are no extra spaces after anything (even though pasting it into this forum added one!?!).

Any more ideas?
Reply With Quote
  #77  
Old 07-29-2004, 07:03 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
A few of the obvious:
is the getweather.bat file in the location
<sagetv directory>\STVs\OriginalV2\MlbDude\getWeather.bat

Sage executes the command by (effectively)
cd <full_path_to_sagetv directory>\STVs\OriginalV2\MlbDude
<full_path_to_sagetv directory>\STVs\OriginalV2\MlbDude\getWeather.bat


You could try the same to see if it runs...

Regarding the spaces -- really check that there is nothing at the end of the line -- Click the end of the line, and backspace until the 't' disappears, then delete until the next line merges , then hit t/Return to replace them...
This sounds stupid, but it has caught me out before
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #78  
Old 07-29-2004, 07:19 AM
ukmgranger's Avatar
ukmgranger ukmgranger is offline
Sage Expert
 
Join Date: Apr 2004
Location: Derby England
Posts: 609
There are deffo no spaces in my .properties file.

my getweather.bat file is located here:
C:\Program Files\Frey Technologies\SageTV\STVs\OriginalV2\MlbDude\getweather.bat

As I have said, I have run this .bat from the command line and it works fine?!?

Mmmmmmmm - I think the cogs of my mind are starting to seize up.
Reply With Quote
  #79  
Old 07-29-2004, 11:37 AM
mls mls is offline
Sage Fanatic
 
Join Date: Jun 2004
Posts: 804
The line in the getweather.bat should be:

java "getWeather3" %1 %2 %units% %numdays%

so that the %1 and %2 variables can be passed to it by the STV from the properties file.

Also, be sure that getweather.bat, GetWeatherJava, and the getWeather3.class files are all located in the MlbDude folder.

I don't think the "< >" arrows are required around the zipcode item in the properties file either.

Other than that, the lines you originally posted for the properties file appear to be correct.

Last edited by mls; 07-29-2004 at 11:43 AM.
Reply With Quote
  #80  
Old 07-29-2004, 12:27 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally posted by mls
The line in the getweather.bat should be:

java "getWeather3" %1 %2 %units% %numdays%

so that the %1 and %2 variables can be passed to it by the STV from the properties file.
.. but the problem seems to be that the entire bat file is not being executed, so whether this command line is correct or not should not make much difference... With the start cmd /k prefit the bat file should have popped up a command prompt showing any errors relating to missing classes/command line arguments, and this window is not being shown.
Quote:
I don't think the "< >" arrows are required around the zipcode item in the properties file either.
This could be related to the problem, as this value gets put on the command line that Sage executes and '<>' are special characters...
Note that this value can also be edited in Detailed Setup/enhancements, which is easier than shutting down Sage and editing the props file!
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 03:56 AM.


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