|
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 |
#61
|
|||
|
|||
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* |
#62
|
|||
|
|||
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. |
#63
|
|||
|
|||
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.
|
#64
|
|||
|
|||
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... |
#65
|
|||
|
|||
First, thanks for this.
Second, a bug: Scattered T-storms image is missing. |
#66
|
|||
|
|||
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. |
#67
|
|||
|
|||
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! |
#68
|
||||
|
||||
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! |
#69
|
||||
|
||||
Quote:
The following property should not exist (but will not cause any harm if it does): Code:
mlbdude/=weather_exe\=\\STVs\\OriginalV2\\MlbDude\\getweathe Code:
mlbdude/weather_exe=\\STVs\\OriginalV2\\MlbDude\\weather.bat |
#70
|
|||
|
|||
If you set up a windows schduled task to delete the weather.txt file say every 5 minutes, would that decrease the polling interval?
|
#71
|
||||
|
||||
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 .
|
#72
|
||||
|
||||
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!! |
#73
|
||||
|
||||
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.
|
#74
|
||||
|
||||
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. |
#75
|
||||
|
||||
Quote:
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... |
#76
|
||||
|
||||
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? |
#77
|
||||
|
||||
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 |
#78
|
||||
|
||||
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. |
#79
|
|||
|
|||
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. |
#80
|
||||
|
||||
Quote:
Quote:
Note that this value can also be edited in Detailed Setup/enhancements, which is easier than shutting down Sage and editing the props file! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|