Page 1 of 1

banner.php wind speed average to latest?

Posted: Fri 01 Feb 2013 6:18 pm
by William Grimsley
Hi Steve/others,

Ok, first of all I've got these 2 bits of code in my banner.php:

As you can see, I've deleted the "wspeed" tag and added the "wlatest" tag. I thought this makes sense.

Code: Select all

// Current field names (matches tag fields) used
$SITE['cvalues'] = array(
    "date","time","temp","hum","dew","wlatest","wgust","avgbearing","rrate",
    "rfall","press","wdir","beaufort","windunit","tempunit","pressunit","rainunit",
    "windrun","presstrend","rmonth","ryear","rfallY","intemp","inhum","wchill",
    "temptrendval","tempTH","TtempTH","tempTL","TtempTL",
    "windTM","TwindTM","wgustTM","TwgustTM",
    "pressTH","TpressTH","pressTL","TpressTL",
    "cversion","cbuild");
Then, I added the same thing here. I changed the ("wspeed") tag to the ("wlatest") tag. I thought this makes sense.

Code: Select all

// Print windspeed
$text = "Wind: " . ret_value("wdir") . " " . ret_value("wlatest") . ' ' . ret_value("windunit");
if ($SITE['usettf'] == "yes" ) {
    $size = 10;
    imagettftextbox($im, $size, 0, 0, 22, $green, $font1, $text, $SITE['image_width'], "left");
} else {
    $size = 5;
    imageWriteString($im, $size, $text, $green, "left", 23);
}
But, then it just came up with the "wspeed" value instead of the "wlatest" value on my banner.php file. :(

Why has this happened?

Thanks

William

Re: banner.php wind speed average to latest?

Posted: Fri 01 Feb 2013 6:28 pm
by steve
Can you not ask your banner questions in the thread created for the purpose?

https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=103

You might even find your answer there.

Re: banner.php wind speed average to latest?

Posted: Fri 01 Feb 2013 6:40 pm
by William Grimsley
Hi Steve,

I looked through the thread and I couldn't find anything relevant for what I was wanting and I even searched the forum and it came up with my post (this exact one) and a post of yours on a thread about wind gusts but nothing in the thread you gave me. So, I've posted my exact same post, except changing "Hi Steve/others" to "Hi there". :D

Thanks for the link,

William