Author Topic: advforecast2.php V4.00 support for NWS dual-image icons  (Read 6563 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
advforecast2.php V4.00 support for NWS dual-image icons
« on: July 06, 2015, 03:32:16 PM »
The NWS is set to implement the dual-image forecast icons on 7-Jul-2015, and the advforecast2.php script has been updated (V4.00) to support both 'old' and 'new' forecast automatically.

The dual-images are dynamically created by a DualImage.php script (which I kinda reverse-engineered from the NWS version as there was no code available for their official version) by combining up to two icon template images to form a new image with 6-hour periods, and individual numbers for PoP where needed.
The new companion DualImage.php script and the associated icon templates (in ./forecast/icon-templates) is available
as a download for standalone users (along with the advforecast2.php script download) from the
script page at http://saratoga-weather.org/scripts-carterlake.php#advforecast

Also available there is a newer set of PoP-stamped .jpg icons at 55x55px sizing to match the newer NWS icons.

For Base-USA template users, the Update tool page has the complete updates (with the new icons that weren't included in the saratoga-icons.zip set).  Use query for Base-USA, Plugin-*,  06-Jul-2015 to get the complete .zip file.

Folks using the meteotriviglio animated GIF icons will NOT have dual-images displayed -- only the first 6-hour image will show up.  It's just too involved to take apart two animated GIFs, extract parts, combine on new images and remake the single animated GIF.  Also, the following NEW NWS images would be needed from Meteotriviglio to complete the current icon set:
Code: [Select]
hur_warn.gif
hur_watch.gif
nsnip.gif
nsnip10.gif
nsnip100.gif
nsnip20.gif
nsnip30.gif
nsnip40.gif
nsnip50.gif
nsnip60.gif
nsnip70.gif
nsnip80.gif
nsnip90.gif
nwind_bkn.gif
nwind_few.gif
nwind_ovc.gif
nwind_sct.gif
nwind_skc.gif
snip.gif
snip10.gif
snip100.gif
snip20.gif
snip30.gif
snip40.gif
snip50.gif
snip60.gif
snip70.gif
snip80.gif
snip90.gif
ts_nowarn.gif
ts_warn.gif
ts_watch.gif
wind_bkn.gif
wind_few.gif
wind_ovc.gif
wind_sct.gif
wind_skc.gif

For once, I'm trying to make the update available BEFORE the change to the NWS website :)  :roll:

Best regards,
Ken

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #1 on: July 06, 2015, 04:14:40 PM »
Stand alone looking good here.

Had Saratoga weather for a minute.  Found out why.

Not sure if I have dual images correct yet.
« Last Edit: July 06, 2015, 04:17:53 PM by chief-david »



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #2 on: July 06, 2015, 04:51:54 PM »
You're ready :)
Try http://weather.rms.rdale.org/DualImage.php?i=nscttsra&j=nfg&ip=10 and see a dual image dynamically created.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #3 on: July 06, 2015, 06:19:55 PM »
just hoping I had put everything in the right folders.

Thanks!



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1825
    • Maumelle Weather
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #4 on: July 06, 2015, 07:15:28 PM »
Thanks for the update, Ken!!!  Working fine here.

John
GR2AE, GR3, Cumulus

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #5 on: July 07, 2015, 08:11:16 AM »
looks like the dual image is not an every day deal. 
MPLS does not have one yet,  Saratoga does, Sacrey did not.

Just had to check.



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #6 on: July 07, 2015, 09:20:09 AM »
The forecast.weather.gov site still shows
Quote
Effective July 7, 2015, NWS will implement changes to the icons depicted on all of its Point Forecast pages. Highlights will include new icons with increased clarity, 6-hour increments for rapidly changing weather and new color blocks to highlight forecast hazards.
but... it has not cut over to use the 6-hr forecast icons quite yet.

The dual-icons shown on my forecast page are actual JPG images that are already in the set for patchy fog/clearing

Old:   New:

We just have to wait for the cutover to take place.. the advforecast2 V4.00 handles both old and new, so when they switch, your forecast will continue to be displayed :)



Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 225
    • Vermilion weather
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #7 on: July 07, 2015, 11:49:46 AM »
For some reason, and it doesn't happen all the time, my icon text does not place itself below the icon.
As can be seen here... http://vermilionweather.com/wx2.php

My main Forecast page is the one from Curly, but I have some viewers who have said they prefer this style so I run both.
I usually have no problem converting your scripts over to my websites format but just have not been able to figure out where this problem is at. I'm pretty sure it is from the DualImage.php script.

Rick
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #8 on: July 07, 2015, 12:23:42 PM »
Rick, I'm having the same problem with Scott's dashboard. Please see http://www.wxforum.net/index.php?topic=25891.msg256874#msg256874.

Thanks.

EDIT: Being fixed by Ken.
« Last Edit: July 07, 2015, 01:20:49 PM by jgillett »
John
W7JKG

Offline azkiwi

  • Senior Contributor
  • ****
  • Posts: 160
    • Maricopa, Sonoran Desert, Arizona
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #9 on: July 07, 2015, 12:54:27 PM »
With the godaddy issues yesterday, nothing was done as no ftp... But today, maybe..
Just so I don't shoot myself in the foot, better ask the questions now, than seek help if things go wrong..

Pretty much a 'drop-in' replacement for the Advforecast2, right?  I'm using meteotriviglio icons, my read is I do NOT have to move the icons nor the dualimage.php, nor the new icons to the site?

I noticed also an update for the quake-json and radar status also..  These are also uploads, but for different problems, right?

Thanks

Ken

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #10 on: July 07, 2015, 01:55:31 PM »
Yes, advforecast2.php is a 'drop-in' for template users .. all the settings remain in Settings.php.

You do need to install the DualImage.php in the same directory as the advforecast2.php script, AND upload the forecast/icon-templates/ files so it can create dual icons as needed.  You don't need to customize the DualImage.php -- it generates 55x55px .JPG images from the template icons in forecast/icon-templates/ directory.

If you use Meteotriviglio icons, the script will work with them, HOWEVER it won't try to create dual icons-- it will just load the .gif image for the first icon in the period.  See the first post in the thread for missing Meteotriviglio icons.. if the NWS forecasts with those, then you'll likely see the N/A graphic instead (until Meteotriviglio issues new icons and they are installed).

The other two scripts are unrelated to the forecast changes by the NWS, but you should update to keep the functionality on your site.  The older radar-status.php stopped working due to a website change for the monitor page.  quake-json.php had a date decoding issue with PHP 5.3, and now requires PHP 5.4 to work correctly.

Ken (the other :) )
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2865
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #11 on: July 07, 2015, 02:57:11 PM »
I noticed my forecast page is displaying incorrectly today (see attachement).  I have NOT installed the V4.00 yet. Is this an indicator that is what is required?
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline mkutche

  • Forecaster
  • *****
  • Posts: 1043
    • GosportWx.com
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #12 on: July 07, 2015, 03:56:58 PM »
working on my end: http://www.gosportwx.com/wxforecast.php .. now to wait and see the dual images :P
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1043
    • GosportWx.com
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #13 on: July 07, 2015, 03:58:32 PM »
I noticed my forecast page is displaying incorrectly today (see attachement).  I have NOT installed the V4.00 yet. Is this an indicator that is what is required?

yep you need v4.00 for it to work again.
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #14 on: July 07, 2015, 04:06:22 PM »
Just saw this. I will have to fix mine after work.




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2865
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #15 on: July 07, 2015, 04:35:20 PM »
Just saw this. I will have to fix mine after work.

Ok mine looks just like yours.  So it is the change over.  #-o :?
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline floodcaster

  • Forecaster
  • *****
  • Posts: 635
    • Goose Lake Weather
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #16 on: July 07, 2015, 04:44:24 PM »
I did something wrong. #-o Making some progress but still stumped.

http://www.gooselakeweather.com/wxforecast.php

edit...looks like just a failed upload and was missing some images.

Thanks for all you do Ken! =D>
« Last Edit: July 07, 2015, 05:01:30 PM by floodcaster »
Bill


Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #17 on: July 07, 2015, 05:01:44 PM »
I guess the NWS in Wilmington, OH has not switched.... assuming I updated the files correctly. No dual images.
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #18 on: July 07, 2015, 05:55:06 PM »
Looks correct for the install
Quote
        <!-- advforecast2.php (multi) - V4.00 - 06-Jul-2015 -->
<!-- NWS URL: http://forecast.weather.gov/MapClick.php?lat=39.392973&lon=-84.397737&unit=0&lg=english&FcstType=text&TextType=2 -->
<!-- zone=OHZ070 -->
<!-- loading ./forecast-OHZ070-0.txt - 12134 bytes -->
<!-- isZone='' -->
<!-- new li format found -->
<!-- DualImage capability available -->
...
It's just the forecast does not include any DualImage.php icons from the NWS at this time.

Running DualImage.php?i=scttsra&j=ra&ip=20&jp=50 on your site shows a correct dual image icon, so you are ready when they issue a forecast with differing 6-hour conditions in a 12-hr period.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2865
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #19 on: July 07, 2015, 07:42:29 PM »
I got the new updated script installed, but now I seem to be getting this.  Any ideas?
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #20 on: July 07, 2015, 08:11:11 PM »
Looks correct for the install
Quote
        <!-- advforecast2.php (multi) - V4.00 - 06-Jul-2015 -->
<!-- NWS URL: http://forecast.weather.gov/MapClick.php?lat=39.392973&lon=-84.397737&unit=0&lg=english&FcstType=text&TextType=2 -->
<!-- zone=OHZ070 -->
<!-- loading ./forecast-OHZ070-0.txt - 12134 bytes -->
<!-- isZone='' -->
<!-- new li format found -->
<!-- DualImage capability available -->
...
It's just the forecast does not include any DualImage.php icons from the NWS at this time.

Running DualImage.php?i=scttsra&j=ra&ip=20&jp=50 on your site shows a correct dual image icon, so you are ready when they issue a forecast with differing 6-hour conditions in a 12-hr period.

Thanks for verifying my update Ken!!

Joe
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline Farmtalk

  • Fitzweather
  • Forecaster
  • *****
  • Posts: 4745
    • WV Waterfalls
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #21 on: July 07, 2015, 08:12:20 PM »
Did you add the new files with the update? I had the same problem until I added this new folder under website/forecast as shown in the image below   :-)
Joe Fitzwater
Chief Meteorologist for WVNS-TV 59 in Beckley, WV

Work Page on Facebook -> www.facebook.com/meteojoe
Work Page on Twitter -> https://twitter.com/meteojoe
Waterfalls -> www.wvfalls.com

Offline sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2865
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #22 on: July 07, 2015, 08:37:34 PM »
Yay!! I got it resolved.   \:D/ \:D/

My fix is here.
http://www.wxforum.net/index.php?topic=26684.msg256976#msg256976
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline Russell797

  • Senior Member
  • **
  • Posts: 81
    • Lowell Highlands Weather
Re: advforecast2.php V4.00 support for NWS dual-image icons
« Reply #23 on: July 07, 2015, 08:56:27 PM »
Formating of "silent" print mode is messed up. Text is not wrapping under the icon images.  Everything is fine when the forecast is included. This can be seen on the Saratoga Script page as well as on my site.

http://www.lowellhighlandsweather.com/
« Last Edit: July 07, 2015, 08:58:59 PM by Russell797 »
Lowell Highlands Current Weather Conditions


Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
John
W7JKG