Code: Select all
$IconsLarge = array(
"skc.jpg", // 0 imagesunny.visible
"nskc.jpg", // 1 imageclearnight.visible
"bkn.jpg", // 2 imagecloudy.visible
"sct.jpg", // 3 imagecloudy2.visibleModerator: saratogaWX
Code: Select all
$IconsLarge = array(
"skc.jpg", // 0 imagesunny.visible
"nskc.jpg", // 1 imageclearnight.visible
"bkn.jpg", // 2 imagecloudy.visible
"sct.jpg", // 3 imagecloudy2.visibleUsing the http://saratoga-weather.org/wxtemplates/updates.php and set the query for 1 Oct 2011 with your Base and Cumulus-plugin will get you all the files that are needed in the stock templates. You'll also have to put the Meteotreviglio .gif icons in your forecast/images/ directory (where your current .jpg forecast icons reside).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!
Code: Select all
$SITE['fcsticonstype']= '.gif'; // default type='.jpg' -- use '.gif' for animated icons from http://www.meteotreviglio.com/Ken, a little correction to your statement...saratogaWX wrote:The Cumulus realtime.txt does not currently have a 'icon number' for current conditions (unlike Weather-Display's clientraw.txt), so no AJAX update is currently possible.
Code: Select all
var forecast = realtime[54].replace(/_/gm, ' ');
set_ajax_obs("ajaxforecast", forecast);Code: Select all
....
<tr class="td_rainfall_data">
<td width="20%">Forecast</td>
<td width="80%"><span class="ajax" id="ajaxforecastnumber"></span> $nbsp;Davis forecast: <span class="ajax" id="ajaxforecast"></span></td>
</tr>
.....
Code: Select all
$SITE['feelslike'] = 0; // =0 use HeatIndex, =1 use Humidex, =2 use Apparent Temperature
$SITE['DavisVP'] = false; // set to false if not a Davis VP weather station
$SITE['UV'] = false; // set to false if no UV sensor
$SITE['SOLAR'] = false; // set to false if no Solar sensorCode: Select all
$WX['wsforecast'] = 'Not available';Code: Select all
<?php if(isset($SITE['ajaxDashboard']) and file_exists($SITE['ajaxDashboard']))
{ include_once("ajax-dashboard.php");
Code: Select all
<?php if(isset($SITE['ajaxDashboard']) and file_exists($SITE['ajaxDashboard']))
{ $vpforecasttext = ''; include_once("ajax-dashboard.php");