View unanswered posts | View active topics
| Author |
Message |
|
dlbryant
|
Posted: Sun Aug 12, 2007 11:44 pm |
|
Joined: Sat May 13, 2006 3:12 pm Posts: 165 Location: USA
|
|
I've never dealt with scripts before. How do I run a script? Do I remove all the echos, including "@echo"?
Like I said before, I'm not a techically-minded person.
David
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Mon Aug 13, 2007 1:05 am |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2223 Location: Western NY, USA
|
dlbryant wrote: I've never dealt with scripts before. How do I run a script? Once you save it, dbl click on it. It will open a Command prompt window and will pause when it finishes and then you close the window. dlbryant wrote: Do I remove all the echos, including "@echo"?
All?? Oops, sorry, remove only the last one. The other two just make the output pretty and could be deleted but I wouldn't recommend it. Just remove the "echo" before the "ren". It's there as a safe guard should someone dbl click the script without intending to. Once removed the script is "live".
And, in reviewing it, I believe it's rerunable. It will just keep reversing the image names. m1 will become m29 and if rerun m29 will become m1 again.
|
|
| Top |
|
 |
|
dlbryant
|
Posted: Mon Aug 13, 2007 2:55 am |
|
Joined: Sat May 13, 2006 3:12 pm Posts: 165 Location: USA
|
|
I put the script into the "Stone Soup South" images folder and all it did was turn the bulb of the thermoniter blue. Did nothing to the moon images.
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Mon Aug 13, 2007 8:52 am |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2223 Location: Western NY, USA
|
 The thermometer color is related to a cookie or Registry setting and the script doesn't touch either.
So you copied the c:\Program Files\Weather Watcher\Skins\Forecasts\Eds Stone Soup folder to c:\Program Files\Weather Watcher\Skins\Forecasts\Stone Soup South and created a CMD file in the c:\Program Files\Weather Watcher\Skins\Forecasts\Stone Soup South\Images folder, yes? And when you dbl click on the CMD file a Command Prompt window opens and what do you see?
 Oops, I see the problem. The images weren't being renamed back correctly. But when corrected they do reflect the Wunderground view. I hadn't noticed the naming problem, I was just excited when I saw the images' sequence change.
Here's a revised script.
SHmoons.cmd Code: @echo off&title Ed's Southern Hemisphere moons setlocal ENABLEDELAYEDEXPANSION echo. for /f "delims=m tokens=1" %%F in ('dir moon\m*.gif /B') do ( if %%~nF LEQ 99 ( set /A numn=30-%%~nF ren moon\m%%~nF.gif m!numn!.gifNU ) ) if exist moon\m*.gifNU ren moon\m*.gifNU m*.gif dir moon\*.gif echo. echo Better? pause
Delete the messed up Moons folder, restore it from the backup/original location and rerun the script.
Sorry for the inconvenience.
|
|
| Top |
|
 |
|
dlbryant
|
Posted: Mon Aug 13, 2007 10:32 am |
|
Joined: Sat May 13, 2006 3:12 pm Posts: 165 Location: USA
|
|
It's still doing nothing! I shut down Weather Watcher. I copied the Ed's Stone Soup to Ed's Stone Soup South, place that script in the images folder and clicked on it, it looked like it was renaming the files, but when I reopened WW, and changed skins to Ed's Stone South, the moon was still the same.
Thank you
David
Last edited by dlbryant on Mon Aug 13, 2007 5:59 pm, edited 1 time in total.
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Mon Aug 13, 2007 5:47 pm |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2223 Location: Western NY, USA
|
Give the script one last chance dlbryant. One last technicality had to be overcome. If the Windows Explorer view of the Moon folder was Thumbnails there is a hidden system file that was preventing the images from changing. This version of the script resolves that problem.
SHmoons.cmdCode: @echo off&title Ed's Southern Hemisphere moons set Moons=Moon setlocal ENABLEDELAYEDEXPANSION echo. if exist %Moons%\thumbs.db ( attrib -h -s %Moons%\thumbs.db del %Moons%\thumbs.db ) for /f "delims=m tokens=1" %%F in ('dir %Moons%\m*.gif /B') do ( if %%~nF LEQ 99 ( set /A numn=30-%%~nF echo ren %Moons%\m%%~nF.gif m!numn!.gifNU ren %Moons%\m%%~nF.gif m!numn!.gifNU ) ) echo. if exist %Moons%\m*.gifNU ( echo ren %Moons%\m*.gifNU m*.gif ren %Moons%\m*.gifNU m*.gif ) echo Done. pause > nul
And once this script works for you it should work for anyone else that comes this way.
Just make sure when you run the script you don't have an Explorer window open displaying the images being renamed. 
Last edited by Ed_P on Mon Aug 13, 2007 7:24 pm, edited 1 time in total.
|
|
| Top |
|
 |
|
dlbryant
|
Posted: Mon Aug 13, 2007 6:58 pm |
|
Joined: Sat May 13, 2006 3:12 pm Posts: 165 Location: USA
|
It changed the moon, but Weather Watcher insists that whenever moon-phase type is in Eds Stone Soup will be the one in Eds Soup South.
Meaning....I can change Eds Stone Soup South to be a Southern phase, but if Eds Stone Soup is Northern, it will display Northern for both....and vice versa. Whatever phase that Eds Stone Soup is in will wind up being Eds Stone Soup South as well...and yes, I check the files and Eds Stone Soup had Northern moons and Eds Stone Soup South had Southern moons.
Meaning that there is only one conclusion:
Your Stone Soup is demon-possesed!!!!
Hey, it's either laugh or cry!
Anywhoo, Barba just fixed the data switch in his cool skin and I fixed the URLs to weather.com, so what I think what I'll do is fix your Stone Soup to South and use Barba's for north. Barba's skin is really neat and original...especially the scrolling forecast and the real-look thermoniter!
Thanks for your hard work....it was greatly appreciated!
David
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Mon Aug 13, 2007 7:32 pm |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2223 Location: Western NY, USA
|
The path to the moons is hard coded in the Current.wtp file.  And I'm not sure there is an option around it other than change line 875 to be the name of the new Forecast skin's folder.
wtp files are text files and can be opened with Notepad. Unfortunately Notepad doesn't show line numbers but it does have a Search capability and searching for "Images/Moon" should bring you right to the line.
Sorry for all the trouble dlbryant, but I think(hope/pray) this may be the last hurdle.
Well, maybe there is a more appropiate fix. On line 875 of the Current.wtp template change:
Code: EdsMoon="file:///" + EdsMoon.replace(/\\/g, '/') +"/Skins/Forecasts/Eds Stone Soup/Images/Moon/m"+moonicon+".gif"; to be Code: EdsMoon="Images/Moon/m"+moonicon+".gif";
hth
Last edited by Ed_P on Tue Aug 14, 2007 12:38 am, edited 2 times in total.
|
|
| Top |
|
 |
|
dlbryant
|
Posted: Mon Aug 13, 2007 9:06 pm |
|
Joined: Sat May 13, 2006 3:12 pm Posts: 165 Location: USA
|
|
AT LAST!!!!!
It's working!!!!
I used the script before the one about thumbs.db....that thumbs script didn't work.
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Mon Aug 13, 2007 9:20 pm |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2223 Location: Western NY, USA
|
Good to hear, finally.
If the thumbs.db file got deleted then either script will work. And the scripts are rerunable to reverse the renames. But once the folder is opened with Explorer in the View Thumbnails mode again you will need to use the last script should you wish to rerun the renames.
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Tue Aug 14, 2007 8:39 pm |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2223 Location: Western NY, USA
|
|
The download file has been updated. The Stone Soup Current forecast template has been updated.
|
|
| Top |
|
 |
|
johngalt
|
Posted: Thu Aug 16, 2007 10:19 pm |
|
Joined: Thu Aug 11, 2005 6:48 pm Posts: 217 Location: 3rd Rock
|
|
A lot of info in 5 pages - basically, Ed, this is a skin you developed for the regular version of WW for PC desktops? Looks pretty good - I am kinda wondering if I get animated images, but other than that....looks good.
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Fri Aug 17, 2007 12:05 am |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2223 Location: Western NY, USA
|
johngalt wrote: basically, Ed, this is a skin "a skin"  You better reread the 1st posting. johngalt wrote: wondering if I get animated images
Animated weather icons are possible. The skin s work fine with the Meteo Consult, Lycos, AniWeather and animated WC weather icons. I'm sure you can find others, check the other threads in this section.
|
|
| Top |
|
 |
|
johngalt
|
Posted: Fri Aug 17, 2007 3:13 pm |
|
Joined: Thu Aug 11, 2005 6:48 pm Posts: 217 Location: 3rd Rock
|
|
lol my apologies - I should have said a set of skins...
I like several things you have done with it and am going to try them out here in a minute.
|
|
| Top |
|
 |
|
johngalt
|
Posted: Mon Aug 20, 2007 4:07 pm |
|
Joined: Thu Aug 11, 2005 6:48 pm Posts: 217 Location: 3rd Rock
|
|
Ed,
I finally got your skins working - it took me a bit of messing around to get the download right, as DTA for Fx seems to want to download the .html file only, and then using the registry entry failed because the string after the HKEY_USERS was not on my computer - b/c my user string is different than yours, obviously.
But, now, regardless of which of the skins I use (even the defaults, such as splendid and such), I get an error - whenever I try to open the options panel from the main window (as opposed to right clicking the taskbar icon and selecting options) the program goes into a loop and keeps opening the options panel until WW kills itself.
I will see if the registry entry is causing the problem, though a cursory examination of it makes me think that should not be the case....
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|
|
|