I noticed that with the wxgraphic...when it displays the "gust" it is not my maximum high wind gust for the day, but only the gust for most recent time period....where as my avatar that I am using from wxhost, under my username on left, does display the highest gust for today (currently 16mph at time of writting this message)
so there must be something I can edit within the config file of wxgraphic (banner), the question is what do I need to do to make it display my daily highest wind gust within this part of the config file below:
/* write_banner_big: This function writes your values onto the 500X80 banner. */
/******************************************************************************/
function write_banner_big() {
// let's start by defining some global variables that will be passed between
// functions. This is kind of clunky!
// NOTE: IF YOU ADD ADDITIONAL COLORS YOU'LL NEED TO ADD THEM HERE TOO!
global $color1, $color2, $color3, $color4, $color5, $date, $time, $temp,
$degree_units, $winds, $wind_units, $gust, $raintoday, $rain_units,
$barom, $barom_units, $baromtrendwords, $dewpt, $humidity, $heatindex,
$heat_index_threshold, $windchill, $wind_chill_threshold,
$banner_icon_x, $banner_icon_y, $anti_alias;
// this section does the heat index and wind chill
// it figures out what to show, wind chill, heatindex or nothing
// depending upon your settings
switch (TRUE){
// if windchill is <= $wind_chill_threshold we'll output it
case ($windchill <= $wind_chill_threshold):
$feelslike = "Wind Chill: $windchill$degree_units";
imagecenteredtext(90, 50, "$feelslike", 2, 8, $color5, 0);
break;
// if heat index >= $heat_index_threshold we'll output it
case ($heatindex >= $heat_index_threshold):
$feelslike = "Heat Index: $heatindex$degree_units";
imagecenteredtext(90, 50, "$feelslike", 2, 8, $color5, 0);
break;
} // end switch
// this section controls what is written to the image, where it is written.
// see the explanation above for details on what each parameter represents
imagecenteredtext(250, 10, "
www.gateway2capecod.com", 5, 14, $color5, 0);
imagecenteredtext(456, 10, "Wareham, Ma.", 2, 7, $color5, 0);
imagecenteredtext(250, 35, "$date @ $time", 2, 8, $color5, 0);
imagecenteredtext(90, 38, "Temp: $temp$degree_units", 5, 14, $color5, 0);
imagecenteredtext(90, 65, "Humidity: $humidity%", 5, 11, $color5, 0);
imagecenteredtext(250, 53, "Wind: $winds", 5, 11, $color5, 0);
imagecenteredtext(250, 67, "Gust: $gust$wind_units", 2, 8, $color5, 0);
imagecenteredtext(425, 36, "Rain: $raintoday$rain_units", 5, 14, $color5, 0);
imagecenteredtext(425, 51, "Dew Pt: $dewpt$degree_units", 5, 11, $color5, 0);
imagecenteredtext(425, 63, "$barom$barom_units $baromtrendwords", 2, 8, $color5, 0);
} /***** end function write_banner_big *****/
thanks, chris