Author Topic: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops  (Read 1980 times)

0 Members and 1 Guest are viewing this topic.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« on: October 19, 2015, 11:04:55 AM »
This script displays HAniS loops of the Weather Prediction Center's Three Day Probabilistic Precipitation Guidance.  Unlike the regularly purged and therefore easily readable directory structure of the similar Freezing Precipitation Guidance with the latest GIF images clearly named as such, these images are all thrown into one huge directory that requires minutes, not seconds, to read.  It's therefore a little harder to extract the most current images, so this script settles for a known time by which ALL of the updated images are available even though SOME more recent images are visible on the WPC's page.  Determining the earliest reliable time when ALL of the updated images are available was a matter of trial and error, but I think after observing this script's behavior for a couple of days the times are fairly close.  As a bonus I've left in place a small Zulu clock that displays and regularly updates UTC time.  I installed it initially for debugging purposes.

Download the main script by Right-clicking the source, selecting 'Save as...', and saving without the '.txt'.  The includes script and the iframe script can be similarly downloaded.

Thanks to John Gillett who generously helped beta test this script. 8-)

Edit 2015 Oct 22:  The link to the demo on my site was my 'localhost' link, not the 'gwwilkins.org' link. :oops: This has been corrected.
« Last Edit: October 22, 2015, 10:54:27 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline satcop

  • Senior Contributor
  • ****
  • Posts: 241
    • Clifton Virginia Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #1 on: October 24, 2015, 11:59:52 AM »
Thank you Jerry, up and running :-)here
« Last Edit: October 24, 2015, 12:02:29 PM by satcop »
Clifton, Virginia Weather


Blitzortung Stations 1189, 1451 - CWOP EW1675

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #2 on: October 24, 2015, 12:40:24 PM »
I hadn't kept up on similar scripts thread and wanted to try this but get a blank page www.komokaweather.ca/wxpqpf-h5loops.php
I have wxpqpf-h5.php wxpqpf-loops-iframe.php and inc-wxpqpf-h5loops.php all in the Saratoga template folder.  Did I miss doing something?
 
Paul

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #3 on: October 24, 2015, 12:49:27 PM »
I hadn't kept up on similar scripts thread and wanted to try this but get a blank page www.komokaweather.ca/wxpqpf-h5loops.php
I have wxpqpf-h5.php wxpqpf-loops-iframe.php and inc-wxpqpf-h5loops.php all in the Saratoga template folder.  Did I miss doing something?
 
Paul
The javascript 'console' reports it can't find '(your web site)/HAniS/hanis_min.js', so you need to put the HAniS javascript library on your web site as well.  :-)  Sorry I didn't make that requirement clearer.

I've attached Tom Whittaker's latest 'zip'.
« Last Edit: October 24, 2015, 12:52:46 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #4 on: October 24, 2015, 06:28:03 PM »
I've uploaded those 3 files into the same folder as all the Saratoga template files, but no change http://www.komokaweather.ca/wxpqpf-h5loops.php
 
I couldn't see any settings to set.  Any other suggestion would be appreciated.
 
Thanks,
Paul

Offline satcop

  • Senior Contributor
  • ****
  • Posts: 241
    • Clifton Virginia Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #5 on: October 24, 2015, 07:47:16 PM »
Hi Paul, put those .js files into a HAniS subdirectory and I think you will solve your problem.

Bob
Clifton, Virginia Weather


Blitzortung Stations 1189, 1451 - CWOP EW1675

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #6 on: October 24, 2015, 10:25:01 PM »
Yes, that got it working http://www.komokaweather.ca/wxpqpf-h5loops.php
 
Thanks,
Paul

Offline tstorm

  • Contributor
  • ***
  • Posts: 141
    • Harpers Ferry Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #7 on: January 19, 2016, 10:45:24 AM »
  I've installed the scripts and I'm having an issue with the graphics not extending far enough to the east (NOAA symbol missing as well as part of the Atlantic Ocean).  I'm also missing the issuance time of the product at the bottom left.

http://harpersferry-weather.com/wxpqpf-h5loops.php

« Last Edit: January 19, 2016, 11:21:20 AM by tstorm »

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #8 on: January 19, 2016, 11:41:48 AM »
For some reason the iframe dimensions, 'iframeWidth' and 'ifrmaeHeight', aren't being being displayed properly by the iframe.  Here's your iframe with the defaults.  Here is the same code as rendered on my site.

You might try updating your /HAniS/hanis_min.js to the latest version.  The window-size parameter was introduced in HAniS 2.5.  I've attached the latest HAniS distribution.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline tstorm

  • Contributor
  • ***
  • Posts: 141
    • Harpers Ferry Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #9 on: January 19, 2016, 12:37:23 PM »
Thanks!  Updating to the latest version of HAniS fixed the problem.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #10 on: February 09, 2016, 01:06:58 PM »
A new Version 1a (20160209) is available on my site.  The functionality is unchanged, but some minor issues with text and numbers were fixed.

The only script that was changed is 'inc-wxpqpf-h5loops.php' but all three scripts were re-versioned to today.

Download the main script by Right-clicking the source, selecting 'Save as...', and saving without the '.txt'.  The includes script and the iframe script can be similarly downloaded.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #11 on: March 26, 2018, 09:10:56 AM »
As of this morning, this script isn't working due to a failure of the site to update the images in its usual timely manner.  If the WPC has instituted changes to their scheme here, only time will tell.  I'm not sure what the implications are, whether they're now only updating these images every 24 hours or there's a system glitch.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 441
    • Penn Lake Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #12 on: March 26, 2018, 09:43:01 AM »
Hi gwwilk,

I tried to change line 206 "https://www.wpc.ncep.noaa.gov/pqpf/conus_hpc_pqpf.php?fpd=6"   to just the "http" It didn't seem to do anything - but with the "s" I can not connect removing the s takes me to a 6 hour probability page -- http://www.wpc.ncep.noaa.gov/pqpf/conus_hpc_pqpf.php?fpd=6

That is in the inc-wxpqpf-h5loops.php

What ever that means - changes someplace or a glitch?

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #13 on: March 26, 2018, 10:58:21 AM »
Hi gwwilk,

I tried to change line 206 "https://www.wpc.ncep.noaa.gov/pqpf/conus_hpc_pqpf.php?fpd=6"   to just the "http" It didn't seem to do anything - but with the "s" I can not connect removing the s takes me to a 6 hour probability page -- http://www.wpc.ncep.noaa.gov/pqpf/conus_hpc_pqpf.php?fpd=6

That is in the inc-wxpqpf-h5loops.php

What ever that means - changes someplace or a glitch?
I also noticed the erroneous link which is located in the includes file.  I've changed it on my site, but until the bigger problem is sorted out I don't want to post a new zip because people will think it contains a solution to the timing problem.  Meanwhile the frozen precipitation forecast remains unchanged, i.e. it's working.  This leads me to hope that this is a temporary problem.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 441
    • Penn Lake Weather

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #15 on: March 26, 2018, 01:07:41 PM »
What's the difference between the 2 versions?  Not code wise, but why 2 scripts?  Am I missing the functional difference between the 2?
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #16 on: March 26, 2018, 01:50:45 PM »
What's the difference between the 2 versions?  Not code wise, but why 2 scripts?  Am I missing the functional difference between the 2?
3 Day Precipitation Loops (currently not working).
3 Day Freezing Precipitation Loops (currently working).
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline satcop

  • Senior Contributor
  • ****
  • Posts: 241
    • Clifton Virginia Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #17 on: March 26, 2018, 07:40:50 PM »
The precip loops seem to be working again. 
Clifton, Virginia Weather


Blitzortung Stations 1189, 1451 - CWOP EW1675

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 441
    • Penn Lake Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #18 on: March 26, 2018, 08:58:50 PM »
Yep!

Offline Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 728
    • Lake Huron Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #19 on: March 26, 2018, 10:38:09 PM »
Yes mine as well is back in operation.

CW3699

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #20 on: March 26, 2018, 10:57:21 PM »
Good news, indeed!

I've posted on my site an updated zip with the correct url for the relevant WPC page.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 441
    • Penn Lake Weather
Re: WPC 3 Day Quantitative Precipitation Forecast HAniS Loops
« Reply #21 on: March 27, 2018, 07:31:47 AM »
Thanks gwwilk!!!!!!!!!!!!

 

anything