Light Snow not showing

Any questions? Any answers?
User avatar
par
Posts: 8736
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Light Snow not showing

Post by par »

Oops.... There must be an error.
I will try to find and fix it.
Get YoWindow weather app for your phone or tablet.

Image Image Image
mdwx

Re: Light Snow not showing

Post 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."
Attachments
lightsnow.png
lightsnow.png (145.08 KiB) Viewed 7434 times
jmcmurry
Posts: 368
Joined: Tue Oct 13, 2009 11:09 am
Name: Jim
Location: Mauston, WI, USA
Contact:

Re: Light Snow not showing

Post 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
User avatar
par
Posts: 8736
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Light Snow not showing

Post 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.
Get YoWindow weather app for your phone or tablet.

Image Image Image
jmcmurry
Posts: 368
Joined: Tue Oct 13, 2009 11:09 am
Name: Jim
Location: Mauston, WI, USA
Contact:

Re: Light Snow not showing

Post 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
jmcmurry
Posts: 368
Joined: Tue Oct 13, 2009 11:09 am
Name: Jim
Location: Mauston, WI, USA
Contact:

Re: Light Snow not showing

Post 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
mdwx

Re: Light Snow not showing

Post 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.
User avatar
par
Posts: 8736
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Light Snow not showing

Post by par »

Just doing my best ;)
Get YoWindow weather app for your phone or tablet.

Image Image Image
yelondesmon
Posts: 1
Joined: Fri Jan 20, 2012 1:43 pm
Name: yelon desmon
Location: united states
Contact:

Re: Light Snow not showing

Post by yelondesmon »

There is a lot of confusion in parameters of PWS.
jmcmurry
Posts: 368
Joined: Tue Oct 13, 2009 11:09 am
Name: Jim
Location: Mauston, WI, USA
Contact:

Re: Light Snow not showing

Post 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
Post Reply