Page 1 of 1

Forecast Codes

Posted: Sat 23 Mar 2013 5:56 pm
by krmidas
Wasn't sure whether to post this under "weather by you" or Cumulus/VP2, so I've chosen to post it here:

I've got a Davis VP2 and I'm re-working my forecast icons, and I'm a little confused by the forecast number that's generated by the webtag <#forecast>. My site uses the Weather Blues Template. In Cumulus, I've got the "Cumulus forecast" box unchecked (assume that means I'm using Davis-generated forecast). Is that webtag outputting one of the 200 forecasts shown at this link:https://cumulus.hosiene.co.uk/viewtopic.php?f=6&t=4140

Or is the webtag outputting one of the 26 or so values shown here:http://weatherbyyou.com/icons_grzanka.php

I'm not clear if I need to link my icons to 26 outputs or 200.

-Tom

Re: Forecast Codes

Posted: Sat 23 Mar 2013 6:11 pm
by steve
The <#forecastnumber> web tag (which I think is the one you mean) supplies the 'Zambretti' forecast number - possible values 1 to 26, and negative if the 'Exceptional weather' modifier has been applied.

Re: Forecast Codes

Posted: Sat 23 Mar 2013 6:35 pm
by krmidas
Yes, you are right. I meant <#forecastnumber>

I see the Zambetti forecasts are listed A-Z (see attached). Are those letters just converted to the numbers 1-26? In addition, does <#forecastnumber> return a value of "0" for "not available"? Finally, this may be a typo on the weatherbyyou page, but it lists a value of "-1" for "exceptional fine".

-Tom

Re: Forecast Codes

Posted: Sat 23 Mar 2013 6:42 pm
by steve
This is what the help for <#forecastnumber> says: "Current forecast. See samplestrings.ini for list. Negative means 'exceptional'. Zero = no Cumulus forecast"

This is the list from samplestrings.ini:

forecast1=Settled fine
forecast2=Fine weather
forecast3=Becoming fine
forecast4=Fine, becoming less settled
forecast5=Fine, possible showers
forecast6=Fairly fine, improving
forecast7=Fairly fine, possible showers early
forecast8=Fairly fine, showery later
forecast9=Showery early, improving
forecast10=Changeable, mending
forecast11=Fairly fine, showers likely
forecast12=Rather unsettled clearing later
forecast13=Unsettled, probably improving
forecast14=Showery, bright intervals
forecast15=Showery, becoming less settled
forecast16=Changeable, some precipitation
forecast17=Unsettled, short fine intervals
forecast18=Unsettled, precipitation later
forecast19=Unsettled, some precipitation
forecast20=Mostly very unsettled
forecast21=Occasional precipitation, worsening
forecast22=Precipitation at times, very unsettled
forecast23=Precipitation at frequent intervals
forecast24=Precipitation, very unsettled
forecast25=Stormy, may improve
forecast26=Stormy, much precipitation

So -1 is "Exceptional weather, Settled fine", whatever that means.