okay i figured it out and because i dont know a thing about html code it took me considerable time to find which file i had to edit. in case anyone was going to try and help. i managed to edit daily.wts in forecast\vista folder and changed this line
I saw that “N/A” images are usually named “-.ext”. Maybe Vista skin should keep this convention.
The following line fixes the problem, (works with any “-.ext” for “N/A” data, where ext=same image ext as used in other images, in this case gif)
I took a look in Current.wtp, and I saw that the problem is the lowest value on the barometer gouge is 27.5 inches, while at those locations it is lower than that (they are at 2000+ meters alt).
One solution would be to display the gouge on the lowest value (zero) even if the algorithm says it should be lower than zero.
The code change in this cases is quite simple:
//*******************************************************
//* Figure out how many ticks to fill in on barometer *
//*******************************************************
switch(barometer) {
case 'N/A':
barometerTickCount = 0;
break;
default:
barometerTickCount = Math.round(((barometer - 27.5) / 4) * 22);
if (barometerTickCount < 0)
barometerTickCount = 0;
break;
}
Note that I just added the part that checks for negative values in barometerTickCount.
Another alternative is to display new, special image.
//*******************************************************
//* Figure out how many ticks to fill in on barometer *
//*******************************************************
switch(barometer) {
case 'N/A':
barometerTickCount = 0;
break;
default:
barometerTickCount = Math.round(((barometer - 27.5) / 4) * 22);
if (barometerTickCount < 0)
barometerTickCount = -1;
break;
}
Feel free to use any content from my posts to improve the skin, and keep the good work. :thumbright:
PS: Also consider the case when barometerTickCount is > than 22 :icon_smile:
Strage. When I preview the message, and right after i submit it I can see the image just fine. But when I enter from another computer it’s not displayed. (I used the same method for all images, except that the last one is gif) :-k
alanguy, i had the same problem. I realized the installer was not putting the files in the right folder. Change the installer file extension from .wws to a .zip file. Open the zip and copy the folders to C:\Program Files\Weather Watcher[b]Users[/b]\Username\Skins or whatever drive you installed Weather Watcher to.
Make sure it goes into the Users/Username/Skins folder and NOT the Weather Watcher/Skins folder!