Oops.... There must be an error.
I will try to find and fix it.
Light Snow not showing
Re: Light Snow not showing
Thanks for looking into this. I have since re-installed the widget code to see if there may have been an error in that.par wrote:Oops.... There must be an error.
I will try to find and fix it.
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 (145.08 KiB) Viewed 7432 times
Re: Light Snow not showing
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
Rest assured, he will find it.
- Jim
- par
- Posts: 8736
- Joined: Mon Sep 21, 2009 11:56 am
- Name: Pasha
- Location: Saint-Petersburg, Russia
- Contact:
Re: Light Snow not showing
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.
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
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
and my xml is
but the widget is giving me light snow.
- Jim
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
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>
- Jim
Re: Light Snow not showing
Pasha,
Now it is working correctly, the light snow has stopped. Maybe it fixed itself? Anyway the Current METAR is now
The xml is the same.
Thanks. - Jim
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
Thanks. - Jim
Re: Light Snow not showing
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.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.
-
- Posts: 1
- Joined: Fri Jan 20, 2012 1:43 pm
- Name: yelon desmon
- Location: united states
- Contact:
Re: Light Snow not showing
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
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