Author Topic: Forecast Icons Changing  (Read 13471 times)

0 Members and 1 Guest are viewing this topic.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6377
    • Valentine Nebraska's Real-Time Weather
Re: Forecast Icons Changing
« Reply #25 on: July 07, 2015, 11:26:06 AM »
Fixed my issue used the updater. Thanks Ken and Curly.
Randy

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast Icons Changing
« Reply #26 on: July 07, 2015, 11:27:45 AM »
No, just wait for the conversion to the new 6-hr NWS forecast capability.

I just now have seen the switch for my forecast.

First image - point printable forecast before NWS cutover this morning
Second image - point printable forecast after NWS cutover this morning
Third image - what advforecast2.php V4.00 shows

It's working :)

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 ValentineWeather

  • Forecaster
  • *****
  • Posts: 6377
    • Valentine Nebraska's Real-Time Weather
Re: Forecast Icons Changing
« Reply #27 on: July 07, 2015, 11:32:05 AM »
Dual image working here too.
« Last Edit: July 07, 2015, 11:37:49 AM by ValentineWeather »
Randy

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Forecast Icons Changing
« Reply #28 on: July 07, 2015, 12:17:31 PM »
My new forecast page appears fine, but troubles on the home page (Scott's dashboard) in all 3 sections that have the new icons.

Thoughts appreciated.
John
W7JKG

Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1019
    • Southern Maryland Weather
Re: Forecast Icons Changing
« Reply #29 on: July 07, 2015, 12:27:57 PM »
Ken,
  Awesome work as usual! Thanks! I downloaded the latest advforecast.php script from your site and implemented it. right now, I have text showing up on the right of the icon.. Used to be below it, then the temps below that.... will this change once they (NWS) goes to the dual icons at my NWS office (BALT/Wash)?

Jim

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast Icons Changing
« Reply #30 on: July 07, 2015, 12:28:59 PM »
The code generated for your front page icon list is
Code: [Select]
<tr>
                <td style="font-size: 10px;">
                    Wednesday<br><br><img src="./forecast/images/few.jpg" alt="Wednesday: Sunny, with a high near 104. Light and variable wind becoming south southwest 8 to 13 mph in the morning. " title="Wednesday: Sunny, with a high near 104. Light and variable wind becoming south southwest 8 to 13 mph in the morning. " class="forecast-icon">Sunny<br><br><br>
                    Hi <span style="color: #FF0000;">104  °F</span>                </td>
                <td style="font-size: 10px;">
                    Wednesday<br>Night<br><img src="DualImage.php?i=nwind_few&amp;j=nskc" alt="Wednesday Night: Mostly clear, with a low around 80. Breezy, with a west southwest wind 10 to 15 mph becoming light and variable  after midnight. Winds could gust as high as 21 mph. " title="Wednesday Night: Mostly clear, with a low around 80. Breezy, with a west southwest wind 10 to 15 mph becoming light and variable  after midnight. Winds could gust as high as 21 mph. " class="forecast-icon">Mostly Clear<br>and Breezy<br>then Clear<br><br>
                    Lo <span style="color: #0000FF;">80  °F</span>                </td>
                <td style="font-size: 10px;">
                    Thursday<br><br><img src="DualImage.php?i=few&amp;j=wind_few" alt="Thursday: Sunny, with a high near 100. Breezy, with an east southeast wind 6 to 11 mph becoming south southwest 12 to 17 mph in the afternoon. Winds could gust as high as 24 mph. " title="Thursday: Sunny, with a high near 100. Breezy, with an east southeast wind 6 to 11 mph becoming south southwest 12 to 17 mph in the afternoon. Winds could gust as high as 24 mph. " class="forecast-icon">Sunny then<br>Sunny and<br>Breezy<br><br>
                    Hi <span style="color: #FF0000;">100  °F</span>                </td>
                <td style="font-size: 10px;">
                    Thursday<br>Night<br><img src="DualImage.php?i=nwind_few&amp;j=nfew" alt="Thursday Night: Mostly clear, with a low around 78. Breezy. " title="Thursday Night: Mostly clear, with a low around 78. Breezy. " class="forecast-icon">Mostly Clear<br>and Breezy<br>then Mostly<br>Clear<br><br>
                    Lo <span style="color: #0000FF;">78  °F</span>                </td>
                <td style="font-size: 10px;">
                    Friday<br><br><img src="./forecast/images/few.jpg" alt="Friday: Sunny, with a high near 101." title="Friday: Sunny, with a high near 101." class="forecast-icon">Sunny<br><br><br>
                    Hi <span style="color: #FF0000;">101  °F</span>                </td>
                <td style="font-size: 10px;">
                    Friday<br>Night<br><img src="./forecast/images/nfew.jpg" alt="Friday Night: Mostly clear, with a low around 79." title="Friday Night: Mostly clear, with a low around 79." class="forecast-icon">Mostly Clear<br><br><br>
                    Lo <span style="color: #0000FF;">79  °F</span>                </td>
                <td style="font-size: 10px;">
                    Saturday<br><br><img src="./forecast/images/few.jpg" alt="Saturday: Sunny, with a high near 103." title="Saturday: Sunny, with a high near 103." class="forecast-icon">Sunny<br><br><br>
                    Hi <span style="color: #FF0000;">103  °F</span>                </td>
            </tr>
The combination of the <img ...> followed immediately by text (as it is in the raw HTML from the NWS) is not causing a 'break' in the <td> formatting, so the image and text flow together.

I also noticed the <br> are not converted to <br/> and the <img ...> doesn't have <img... /> tags in proper form.
I'll look at correcting that now the new forecast is implemented by the NWS.

It's always a gamble that the 'preview' code won't exactly match the 'production' code when such major website changes by the NWS are done.  I still have worries about the Zone forecast failover (which wasn't working correctly in the preview).

So.. there will be a update (or a few) as the new NWS code settles into place on their website.

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 SoMDWx

  • Forecaster
  • *****
  • Posts: 1019
    • Southern Maryland Weather
Re: Forecast Icons Changing
« Reply #31 on: July 07, 2015, 12:33:37 PM »
thanks!

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Forecast Icons Changing
« Reply #32 on: July 07, 2015, 12:37:17 PM »
Thank you, Ken, as always for the super quick reply. Actually was just starting to look at the generated source when your message came in.

Also, please do not look at my post as a complaint. The fact that you got so much done and working prior to the constantly changing NWS release(s) is unreal (as you usually are).  :grin:
John
W7JKG

Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1019
    • Southern Maryland Weather
Re: Forecast Icons Changing
« Reply #33 on: July 07, 2015, 12:43:26 PM »
Ken,
  Do we/I have to download any new icons sets for this stuff to work?

Jim

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast Icons Changing
« Reply #34 on: July 07, 2015, 12:52:30 PM »
No worries, John -- I appreciate the feedback.  I know that my testing on my local and hosted systems can never be as complete as implementations on the variety of hosts (and website customizations), so highlighting issues found is very valuable -- thanks.

I did have a 'head start' on doing the V4.00 coding beginning in early May when the 'preview' site was available -- Over the intervening time, I took samples from the NWS preview and tweaked the coding repeatedly to produce a script set and icon set.  The DualImage.php was the hardest one to do as there was no published source for it, so I had to invent that by seeing how the arguments were handled in the sample pages, and making the code replicate the results .. that was a hoot.

I deliberately waited until the 6th of July to do final testing (to see if the preview was changing), and the packaging for release.  I just hoped that the 'preview' would match what the 'production' version would be, in which case, we'd be ready.  The advforecast2.php V4.00 was designed to be both old/new compatible and would recognize when the new-format was available.

I'll add a bit of reprocessing to the icon HTML to the script to see if we can get rid of the messy-non-flow of image and text.

Ken,
  Do we/I have to download any new icons sets for this stuff to work?

Jim
No, but there is a new set available from the template install or scripts page.  saratoga-icons2.zip has all the images in the new format at 55x55px (the new 'square' standard used by the NWS instead of the older 55x58px ones).

If you happen to dig through the code in both advforecast2.php and DualImage.php, you'll see I also put in support for 86x86px PNG images (and have a full set of those to be made available).  With all the initial implementation stuff going on, I just didn't have time to document and release how to use larger/higher fidelity images which could be useful on wide-format websites (not recommended for the 800px narrow format).


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 jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Forecast Icons Changing
« Reply #35 on: July 07, 2015, 01:17:41 PM »
Actually, Ken, I didn't think it was an issue with your stuff, as the forecast page is working just fine. Wanted to spread it around 'just in case'. Sounds like you really had 'a ball'   :roll:   putting it all together.

I'd say ya done real good :!: :grin:
John
W7JKG

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6377
    • Valentine Nebraska's Real-Time Weather
Re: Forecast Icons Changing
« Reply #36 on: July 07, 2015, 01:25:57 PM »
Looking forward to the larger 86x86px PNG images when you have time.
Thanks for the hard work and staying on top as usual Ken.  =D&gt;
Randy

Offline dasman

  • Forecaster
  • *****
  • Posts: 491
    • Wx Peotone
Re: Forecast Icons Changing
« Reply #37 on: July 07, 2015, 06:02:37 PM »
I have the same issue on my index page with the text starting to the right of some of the icons.

Ken thanks for everything you do for the template sets.
www.peotoneweather.com
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast Icons Changing
« Reply #38 on: July 07, 2015, 06:12:34 PM »
Re: icon+text issues .. I'm working on a fix for that.
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 n3ouc

  • Contributor
  • ***
  • Posts: 123
    • Air Products Campus Weather
Re: Forecast Icons Changing
« Reply #39 on: July 07, 2015, 08:55:57 PM »
Ok, I have the same text to the right on my wxindex page as well.. I also have the same problem on the printable forecast page. The problem exists on both the alt template and your Saratoga template if that information helps you. Thanks for all you do with these templates Ken!!

Mike
« Last Edit: July 07, 2015, 09:10:28 PM by n3ouc »
Mike Stanton
Air Products Campus Weather

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1043
    • GosportWx.com
Re: Forecast Icons Changing
« Reply #40 on: July 07, 2015, 10:10:49 PM »
I have the same problem as well.. will check back tomo.
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: Forecast Icons Changing
« Reply #41 on: July 07, 2015, 10:16:43 PM »
My text is correct I just can't get the dual icons to show up.




Ryan 

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

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1043
    • GosportWx.com
Re: Forecast Icons Changing
« Reply #42 on: July 07, 2015, 10:24:03 PM »
My text is correct I just can't get the dual icons to show up.

Ryan did you download this too???

Download: Icon Set UPDATES July-2015 and DualImage.php script (upload to your website and preserve the directory names - included with Base-USA template)

then once you download the new icon set run this and it'll be working http://cospringsweather.com//DualImage.php?i=scttsra&j=ra&ip=20&jp=50
Mike
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast Icons Changing
« Reply #43 on: July 07, 2015, 10:31:07 PM »
And... advforecast2.php V4.01 is now available -- fixes the text-icon-text issue and passes HTML validation (on both point and zone forecasts).

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 cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: Forecast Icons Changing
« Reply #44 on: July 07, 2015, 10:31:28 PM »
My text is correct I just can't get the dual icons to show up.

Ryan did you download this too???

Download: Icon Set UPDATES July-2015 and DualImage.php script (upload to your website and preserve the directory names - included with Base-USA template)

then once you download the new icon set run this and it'll be working http://cospringsweather.com//DualImage.php?i=scttsra&j=ra&ip=20&jp=50
Mike

Yes I have DualImage.php  and the new advforecast2.php V4.01 loaded.




Ryan 

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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast Icons Changing
« Reply #45 on: July 07, 2015, 10:34:33 PM »
Ryan,
You need to fully upload ALL the contents of the standalone file set from http://saratoga-weather.org/saratoga-icons-addon-2015.zip

There is a forecast/icon-templates/* set of files needed and they aren't on your site yet.
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 mkutche

  • Forecaster
  • *****
  • Posts: 1043
    • GosportWx.com
Re: Forecast Icons Changing
« Reply #46 on: July 07, 2015, 10:35:07 PM »
My text is correct I just can't get the dual icons to show up.

Ryan did you download this too???

Download: Icon Set UPDATES July-2015 and DualImage.php script (upload to your website and preserve the directory names - included with Base-USA template)

then once you download the new icon set run this and it'll be working http://cospringsweather.com//DualImage.php?i=scttsra&j=ra&ip=20&jp=50
Mike

Yes I have DualImage.php  and the new advforecast2.php V4.01 loaded.

hmm this is the error i get.. -Error: unable load overlay './forecast/icon-templates/overlay-86x15.png' .. hopefully Ken can get you a quick fix.. sorry I'm no help but in my opinion you are lacking the new icons.. :(
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast Icons Changing
« Reply #47 on: July 07, 2015, 10:36:28 PM »
The error is due to the missing file(s) on his site....
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 cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: Forecast Icons Changing
« Reply #48 on: July 07, 2015, 10:40:57 PM »
Ryan,
You need to fully upload ALL the contents of the standalone file set from http://saratoga-weather.org/saratoga-icons-addon-2015.zip

There is a forecast/icon-templates/* set of files needed and they aren't on your site yet.

Thanks Ken. I was putting the icon-templates in the root and not within the forecast folder.  :lol:

 Most Excellent Sir.  :grin:

Dang thats alot of wording under the icon now!


http://cospringsweather.com/wxforecast.php
« Last Edit: July 07, 2015, 10:44:16 PM by cospringswx »




Ryan 

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

Offline tshattuck

  • Forecaster
  • *****
  • Posts: 337
    • Your Local Weather - Clay, NY
Re: Forecast Icons Changing
« Reply #49 on: July 07, 2015, 11:47:56 PM »
Ken:
I uploaded advforecast2.php V4.01 to my web site and the text is now displaying correctly and the XHTML errors are gone.  :grin:

I am still having one problem: When I have a single condition icon with a percentage chance I always get the old icons not the new ones. If there is no percentage in the icon or there is a dual image icon I get the new ones.
Is there a seperate file I need to download?

I did download all the files from your 07/06/15 update and installed per the included instructions.

Thanks
« Last Edit: July 07, 2015, 11:49:46 PM by tshattuck »