Author Topic: New Animated Forecast Icons for WU and WXSIM!!  (Read 18999 times)

0 Members and 1 Guest are viewing this topic.

Offline meteotreviglio

  • Member
  • *
  • Posts: 35
    • Stazione meteo di Treviglio (BG)
New Animated Forecast Icons for WU and WXSIM!!
« on: September 27, 2011, 12:58:20 PM »
Hello everyone!

I also finished creating the entire set of animated icons for weather forecasts with WU and WXSIM ....



454 free icons to download!

Link for download: Animated forecast icons WU-WXSIM


Change the extension to this point into WU-forecast.php by removing the right side .jpg and entering .gif  Wink

NWSiconlist = array(
 // WU Icon name => NWS icon name // WU meaning
 'chanceflurries.gif'    => array('sn.gif','Chance flurries'), // Chance of Flurries
 'chancerain.gif'       => array('hi_shwrs.jpg','Chance rain'), // Chance of Rain
 'chancesleet.gif'       => array('ip.jpg','Chance sleet'), // Chance of Sleet
 'chancesnow.gif'       => array('sn.jpg','Chance snow'), // Chance of Snow
 'chancetstorms.gif'    => array('hi_tsra.jpg','Chance thunderstorms'), // Chance of Thunderstorms
 'clear.gif'          => array('skc.jpg','Clear'), // Clear
 'cloudy.gif'          => array('ovc.jpg','Cloudy'), // Cloudy
 'flurries.gif'       => array('sn.jpg','Flurries'), // Flurries
 'fog.gif'             => array('fg.jpg','Fog'), // Fog
 'hazy.gif'          => array('fg.jpg','Hazy'), // Hazy
 'mostlycloudy.gif'    => array('bkn.jpg','Mostly cloudy'), // Mostly Cloudy
 'mostlysunny.gif'       => array('sct.jpg','Partly cloudy'), // Mostly Sunny
 'partlycloudy.gif'    => array('sct.gif','Partly cloudy'), // Partly Cloudy
 'partlysunny.gif'       => array('bkn.jpg','Mostly sunny'), // Partly Sunny
 'rain.gif'          => array('ra.jpg','Rain '), // Rain
 'sleet.gif'          => array('ip.jpg','Sleet'), // Sleet
 'sleat.gif'          => array('ip.jpg','Sleet'), // Sleet (other spelling)
 'snow.gif'          => array('sn.jpg','Snow'), // Snow
 'sunny.gif'          => array('skc.jpg','Sunny'), // Sunny
 'tstorms.gif'          => array('tsra.jpg','Thunderstorms'), // Thunderstorms
 'unknown.gif'          => array('na.jpg',''), // Unknown
 'nt_chanceflurries.gif' => array('nsn.jpg','Chance flurries'), // Chance of Flurries
 'nt_chancerain.gif'    => array('hi_nshwrs.jpg','Chance rain'), // Chance of Rain
 'nt_chancesleet.gif'    => array('ip.jpg','Chance sleet'), // Chance of Sleet
 'nt_chancesnow.gif'    => array('nsn.jpg','Chance snow'), // Chance of Snow
 'nt_chancetstorms.gif' => array('hi_ntsra.jpg','Chance thunderstorms'), // Chance of Thunderstorms
 'nt_clear.gif'       => array('nskc.jpg','Clear'), // Clear
 'nt_cloudy.gif'       => array('novc.jpg','Cloudy'), // Cloudy
 'nt_flurries.gif'       => array('nsn.jpg','Flurries'), // Flurries
 'nt_fog.gif'          => array('nfg.jpg','Fog'), // Fog
 'nt_hazy.gif'          => array('nfg.jpg','Hazy'), // Hazy
 'nt_mostlycloudy.gif'    => array('nbkn.jpg','Mostly cloudy'), // Mostly Cloudy
 'nt_mostlysunny.gif'    => array('nsct.jpg','Partly cloudy'), // Mostly Sunny
 'nt_partlycloudy.gif'    => array('nsct.jpg','Partly cloudy'), // Partly Cloudy
 'nt_partlysunny.gif'    => array('nbkn.jpg','Mostly cloudy'), // Partly Sunny
 'nt_rain.gif'          => array('nra.jpg','Rain '), // Rain
 'nt_sleet.gif'       => array('ip.jpg','Sleet'), // Sleet
 'nt_sleat.gif'         => array('ip.jpg','Sleet'), // sleet (other spelling)
 'nt_snow.gif'          => array('nsn.jpg','Snow'), // Snow
 'nt_sunny.gif'       => array('nskc.jpg','Sunny'), // Sunny
 'nt_tstorms.gif'       => array('ntsra.jpg','Thunderstorms'), // Thunderstorms
 'nt_unknown.gif'       => array('na.jpg',''), // Unknown
 '.gif'               => array('na.jpg',''), // Unknown
) ;

See you soon!
« Last Edit: September 27, 2011, 05:15:43 PM by meteotreviglio »

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #1 on: September 27, 2011, 10:21:31 PM »
Do we replace the old icons with these?\
Is there a change that needs to be made in the advforcast.php file?



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

Offline meteotreviglio

  • Member
  • *
  • Posts: 35
    • Stazione meteo di Treviglio (BG)
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #2 on: September 28, 2011, 02:45:45 AM »
Do we replace the old icons with these?\
Is there a change that needs to be made in the advforcast.php file?

We have a differents file for settings this... :shock:

Try to upload the icons in another folder (ex. forecast/images2 ) and in the Settings.php change the old folder directory with the new at line 165..

$SITE['fcsticonsdir'] = './forecast/images/'; // NOAA-style icons for NWS, WU, WXSIM forecast scripts    OLD Directory

$SITE['fcsticonsdir'] = './forecast/images2/'; // NOAA-style icons for NWS, WU, WXSIM forecast scripts    NEW Directory




Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #3 on: October 01, 2011, 11:27:54 PM »
For those with template sets, I've updated multiple scripts to support the new animated GIF icon sets:

Template updates at http://saratoga-weather.org/wxtemplates/updates.php

Scripts updated:
  plaintext-parser.php (WXSIM formatter)
  WU-forecast.php   (International WeatherUnderground forecast)
  advforecast2.php  (NWS forecast)
  ajax-dashboard.php (the default one, not the alternative dashboard from websterweather)
  ajaxWDwx.js   (Weather-Display conditions icon update)
  Settings.php   (add a new setting to specify forecast/condition icon type)
  get-metar-conditions-inc.php (support for animated icons)
  ajax-images/*.gif  (added corresponding conditions icons to set)

Note: you'll need to visit the animated icon download site, unpack the .rar file into your forecast/images/ directory and upload it for the scripts to find the new forecast icons.

Thanks to Paolo for letting me include some of his set in the distribution files for use as conditions icons!

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 Dr Obbins

  • Forecaster
  • *****
  • Posts: 1152
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #4 on: October 02, 2011, 04:54:49 AM »
This is certainly a nice addition  \:D/
Thanks,
Ken & Paolo

Cave Country Forecast

Offline AWL

  • Forecaster
  • *****
  • Posts: 727
    • Ardmore Weather Live
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #5 on: October 02, 2011, 10:11:02 PM »
I don't guess these icons will work on every site???. Will not work on mine. Or is there something I need to change?

Thanks, Doug
« Last Edit: March 19, 2015, 05:26:50 AM by DougW »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #6 on: October 02, 2011, 10:23:41 PM »
You'll need to update your advforecast2.php script to the 3.01 version and install the new animated icons in your forecast/images/ directory.

In the advforecast2.php script V3.01,  then change:
Code: [Select]
$iconType = '.jpg';        // default type='.jpg' -- use '.gif' for animated icons from http://www.meteotreviglio.com/
to
Code: [Select]
$iconType = '.gif';        // default type='.jpg' -- use '.gif' for animated icons from http://www.meteotreviglio.com/
and the new icons should be displayed on your non-template site.

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 saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #7 on: October 02, 2011, 10:31:31 PM »
Yep.. need V3.01 which has the mods to make the .gif images work :)
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 jahuff

  • Member
  • *
  • Posts: 46
    • johnsnhweather
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #8 on: October 03, 2011, 09:56:23 AM »
Hi meteotreviglio,

This is a very nice addition.
 
Thanks,

John

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #9 on: October 03, 2011, 10:04:42 AM »
More changes.
I try to get out and it keeps pulling me back in.
   ](*,)


YES IT WORKED!!!!!! (this scares me sometimes-I am NOT a programmer)

Ken, thanks for the simple explanation.

meteotreviglio- those are cool icons.  This week is only sun and clear skies. Can't wait to see the others.


« Last Edit: October 03, 2011, 11:51:51 AM by chief-david »



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

Offline AWL

  • Forecaster
  • *****
  • Posts: 727
    • Ardmore Weather Live
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #10 on: October 03, 2011, 12:02:21 PM »
With Ken's help I now have them working. I think they look nice.
« Last Edit: March 19, 2015, 05:26:19 AM by DougW »

Offline meteotreviglio

  • Member
  • *
  • Posts: 35
    • Stazione meteo di Treviglio (BG)
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #11 on: October 03, 2011, 12:57:06 PM »
You are welcome!!

I' m so happy for you compliments :-)

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #12 on: October 05, 2011, 10:43:40 AM »
I don't have an icon for one day.

Slight chance thunderstorms.  Chance for measurable precipitation 20%

any thoughts?



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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #13 on: October 05, 2011, 10:49:32 AM »
I don't have an icon for one day.

Slight chance thunderstorms.  Chance for measurable precipitation 20%

any thoughts?
It looks like the series of icons nscttra*.gif in Paolo's set should be renamed to nscttsra*.gif

Do the renames in your directory, and the images should show correctly.

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: New Animated Forecast Icons for WU and WXSIM!!
« Reply #14 on: October 05, 2011, 11:09:03 AM »
that was it. 

may have to work through a few bugs



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

Offline meteotreviglio

  • Member
  • *
  • Posts: 35
    • Stazione meteo di Treviglio (BG)
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #15 on: October 05, 2011, 11:51:11 AM »
I don't have an icon for one day.

Slight chance thunderstorms.  Chance for measurable precipitation 20%

any thoughts?
It looks like the series of icons nscttra*.gif in Paolo's set should be renamed to nscttsra*.gif

Do the renames in your directory, and the images should show correctly.

Best regards,
Ken

Ok, tonight i will be edit this...now i'm going at work  ;)

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #16 on: October 05, 2011, 12:44:01 PM »
Thanks, Paolo!

You might include a na.gif in the set also



It was the only missing one I found (in addition to renaming the nscttra*.gif to nscttsra*.gif files), and deleting the index.php.gif file from the set.

I've done a repackage of the set using .zip so it unpacks to the forecast/images/ directory -- would it be ok with you to have me post the repackaged icon set on my site?  It does include a readme file with the following text
Quote
The Animated GIF Conditions icons were created by Paolo of http://www.meteotreviglio.com/

Downloadable in original .RAR file format from:
http://www.meteotreviglio.com/iconimageprevisioni-meteo-treviglio-lombardia-italia/download-icons/download-ajax-windrose-icons.html

They are free for your personal use on your weather website and Paolo asks that if you use
them, then place a link to his website giving him credit for the icons. 

Link suggestion:

<p>Animated weather icons by <a href="http://www.meteotreviglio.com/">Meteotreviglio.com</a>.</p>

A donation would also be appreciated, but is not required.

This note is by Ken True - Saratoga-weather.org - 03-Oct-2011
for repackaged alternative icon set using .ZIP and
placed in forecast/images/ directory for easy installation
on existing Carterlake icon .JPG sets.

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 meteotreviglio

  • Member
  • *
  • Posts: 35
    • Stazione meteo di Treviglio (BG)
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #17 on: October 05, 2011, 06:22:24 PM »
Thanks, Paolo!

You might include a na.gif in the set also



It was the only missing one I found (in addition to renaming the nscttra*.gif to nscttsra*.gif files), and deleting the index.php.gif file from the set.

I've done a repackage of the set using .zip so it unpacks to the forecast/images/ directory -- would it be ok with you to have me post the repackaged icon set on my site?  It does include a readme file with the following text
Quote
The Animated GIF Conditions icons were created by Paolo of http://www.meteotreviglio.com/

Downloadable in original .RAR file format from:
http://www.meteotreviglio.com/iconimageprevisioni-meteo-treviglio-lombardia-italia/download-icons/download-ajax-windrose-icons.html

They are free for your personal use on your weather website and Paolo asks that if you use
them, then place a link to his website giving him credit for the icons. 

Link suggestion:

<p>Animated weather icons by <a href="http://www.meteotreviglio.com/">Meteotreviglio.com</a>.</p>

A donation would also be appreciated, but is not required.

This note is by Ken True - Saratoga-weather.org - 03-Oct-2011
for repackaged alternative icon set using .ZIP and
placed in forecast/images/ directory for easy installation
on existing Carterlake icon .JPG sets.

Best regards,
Ken

Hi Ken,

I've fixed the wrong icons and add the .zip format on my website  ;)

I prefer if people download the icons from my site if it is not a problem for you, how do you think about this?

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #18 on: October 05, 2011, 08:08:28 PM »
Hi Paolo,

It is no problem for me. 

I do suggest you put the icons in a forecast/images/ directory on your system, then have WinZip or equivalent do the packing starting at the forecast directory.  That way, when someone unzips the file with 'use directories' enabled (as I do for the templates), the icons will automatically be placed in the proper directory.  With your current packing, folks will need to manually have WinZip direct the output files to the forecast/images/ directory (or if they don't, end up with all the icons in their document root and have to move them).

Will http://www.meteotreviglio.com/iconimageprevisioni-meteo-treviglio-lombardia-italia/download-icons/download-wu-wxsim-forecast-icons.html be the permanent link to the download for the icon set?

If so, I'll add that link on the template install.php so folks can easily find and use it when doing a template installation.
Is that ok with you?

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 meteotreviglio

  • Member
  • *
  • Posts: 35
    • Stazione meteo di Treviglio (BG)
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #19 on: October 06, 2011, 03:08:31 AM »
Ok!

Fixed the directory icons  ;)

Yes, it's the permanent link....and it's ok for me the link on install.php

Regards  :grin:

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #20 on: October 06, 2011, 01:07:15 PM »
Thanks Paolo, the new zip looks great using the forecast/images/ directory inside of it.

I've updated the install page to have samples of the icons displayed and the link to your site to download the animated icons for USA, World and Canada(with WXSIM) use.

Thank you for your great efforts to let us enjoy a bit of animation in the weather forecast icons!   =D&gt;  \:D/  8-)

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 stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #21 on: October 08, 2011, 01:08:59 AM »
Hi meteotreviglio,

Wonderful edition for everyone to use.

Thank you for sharing your great work!

Tom
CoCoRaHS NC-BR-1
CW0803
Advanced Spotter

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #22 on: October 08, 2011, 09:24:50 PM »
YES IT WORKED!!!!!! (this scares me sometimes-I am NOT a programmer)

Not trying to be a pain here, but just looked at your home page and there are numerous HTML/PHP errors - no icons.

Just FYI...
John
W7JKG

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #23 on: October 08, 2011, 10:16:18 PM »
your post was 8:24.  at 9:08 it looks ok on my end.

If they do not show up sometimes-it is not a surprise.

My site in running on a school server.  "once in a while"  there is a server/internet hiccup.  One day last week- the server system
was down for two hours.  No internal network drives-which means it does not like to call php scripts.  The server is php 4.4.4.


OR

try http://weather.rms.rdale.org/weather.php

Cause I just noticed that I have not changed the new updated page address in my profile.  #-o  It has only been php for 4 weeks.

also
I have put in a request to change that address to my main page.   has not happened yet.
« Last Edit: October 08, 2011, 10:36:48 PM by chief-david »



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

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: New Animated Forecast Icons for WU and WXSIM!!
« Reply #24 on: October 09, 2011, 12:19:11 AM »
Yep, looks like I beat you to it but that short time. Very nice display now!
John
W7JKG