WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: daybreak on April 11, 2020, 09:45:54 AM

Title: Precipitation Forecast Amounts
Post by: daybreak on April 11, 2020, 09:45:54 AM
Good Morning,

I live in an agricultural area and the farming community is a big user of my website.  Is there a script that gives approximate rainfall amounts for each day.  Like https://forecast.weather.gov/MapClick.php?w3u=1&w4=sky&w5=pop&w7=rain&w8=thunder&w9=snow&w10=fzg&w11=sleet&w13u=0&w16u=1&pqpfhr=24&psnwhr=6&AheadHour=0&Submit=Submit&FcstType=graphical&textField1=38.717&textField2=-88.9157&site=all&unit=0&dd=&bw=   or the Wunderground 10 day forecast tab?

Thanks,
Richard
Title: Re: Precipitation Forecast Amounts
Post by: gwwilk on April 11, 2020, 12:48:18 PM
https://www.weather.gov/forecastpoints might contain what you're looking for.

Zoom, click, bookmark.
Title: Re: Precipitation Forecast Amounts
Post by: daybreak on April 11, 2020, 02:34:07 PM
Thank you Jerry, didn't know that page existed! 

Richard
Title: Re: Precipitation Forecast Amounts
Post by: gwwilk on April 11, 2020, 05:22:14 PM
Understandably. Itís new and experimental.
Title: Re: Precipitation Forecast Amounts
Post by: gwwilk on January 10, 2022, 06:53:43 AM
If you're using the Saratoga template USA version you can get local graphical forecasts using this script (https://www.gwwilkins.org/wxgraphicalfc.php).  Precipitation amounts appear when they are forecast.  Be aware that it's utterly dependent upon appropriately set values in your Settings.php, and there are some instructions/caveats included in the main script.

I just updated an outdated link for the local WFO, so it should be good to go.

As usual you can get the script here (https://www.gwwilkins.org/gwwScripts.php). 

Update 9 am CST: an eagle-eyed user noticed a small discrepancy in his results vs. mine.  A new variable for your time zone has been added to the latest script iteration, and it should be set to your time zone in order to get the best results.
Title: Re: Precipitation Forecast Amounts
Post by: gwwilk on January 11, 2022, 09:56:02 AM
Update:  My eagle-eyed user has noted that wind speed predictions can be in either mph or knots.  Accordingly with his help a switch has been added to the script so you can choose which to display.

Also, the Time Zone algorithm is now automated, so no entry is required there.

Thanks, Bill!

The latest and I hope final script is available on my scripts page (https://www.gwwilkins.org/gwwScripts.php). :-)