Page 2 of 3

Re: Light Snow not showing

Posted: Fri Jan 13, 2012 2:37 pm
by par
Oops.... There must be an error.
I will try to find and fix it.

Re: Light Snow not showing

Posted: Fri Jan 13, 2012 3:02 pm
by mdwx
par wrote:Oops.... There must be an error.
I will try to find and fix it.
Thanks for looking into this. I have since re-installed the widget code to see if there may have been an error in that.

I just tested it out by setting the metar to a station that is reporting light snow at this time, and it still does not show snow falling in the window even though the condition says "light snow."

Re: Light Snow not showing

Posted: Fri Jan 13, 2012 4:03 pm
by jmcmurry
I noticed something similar yesterday in a script that I have that parses my METAR and it took awhile for me to figure out what was happening. The script was parsing from left to right, saw the -SN for light snow, but then just like in your example there was BR for mist right after that and in my script that overrode the snow condition. Pasha may find that he has something similar going on.

Rest assured, he will find it.

- Jim

Re: Light Snow not showing

Posted: Sat Jan 14, 2012 8:31 am
by par
Found and fixed!

Thanks for the tips Jim and mdwx.
There was an error in Widget source code.
It did not override snow or rain if <precipitation> tag was there.
Now it does.

To see the changes - clear browser cache and reload the page.

Please check if I did not break other functionality by an accident.

Re: Light Snow not showing

Posted: Sat Jan 14, 2012 1:11 pm
by jmcmurry
Pasha,

I'm sorry to say, but I think something is still wrong. Now I'm getting light snow when there should be none. My METAR is

Code: Select all

KVOK 141138Z AUTO 00000KT 10SM FEW014 OVC021 M11/M13 A3001 RMK AO2 SNE1102B1108E1117B1125E1138 SLP182
and my xml is

Code: Select all

<sky>
  <description value="Night Overcast"/>
  <clouds value="overcast"/>
  <precipitation>
    <rain>
      <rate value="0.000" unit="mmph"/>
      <daily_total value="0.0" unit="mm"/>
    </rain>
    <snow>
      <rate value="0" unit="mmph"/>
      <level value="5.1" unit="cm"/>
    </snow>
  </precipitation>
  <thunderstorm value="0"/>
</sky>
but the widget is giving me light snow.

- Jim

Re: Light Snow not showing

Posted: Sat Jan 14, 2012 2:06 pm
by jmcmurry
Pasha,

Now it is working correctly, the light snow has stopped. Maybe it fixed itself? Anyway the Current METAR is now

Code: Select all

KVOK 141225Z AUTO 02003KT 10SM OVC022 M11/M13 A3002 RMK AO2 SNB1157E1207B1217E1225 SLP185
The xml is the same.

Thanks. - Jim

Re: Light Snow not showing

Posted: Sat Jan 14, 2012 2:35 pm
by mdwx
par wrote:Found and fixed!

Thanks for the tips Jim and mdwx.
There was an error in Widget source code.
It did not override snow or rain if <precipitation> tag was there.
Now it does.

To see the changes - clear browser cache and reload the page.

Please check if I did not break other functionality by an accident.
Thank you so much for the fix! I just checked the widget using the KBUF metar and it works! Light snow is falling, overriding my PWS data.

Re: Light Snow not showing

Posted: Sat Jan 14, 2012 3:38 pm
by par
Just doing my best ;)

Re: Light Snow not showing

Posted: Fri Jan 20, 2012 2:04 pm
by yelondesmon
There is a lot of confusion in parameters of PWS.

Re: Light Snow not showing

Posted: Fri Jan 20, 2012 3:07 pm
by jmcmurry
You would have to provide examples of what is confusing and perhaps things can be made more clear. I think it's pretty straightforward, but maybe it can be better.

If you'll look at http://yowindow.com/forum/viewtopic.php?f=19&t=368 you'll see a link to the xml format that YoWindow can understand. If your xml provides the data for a condition, that will be used. If not, YoWindow will use data from your METAR.

- Jim