Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

banner.php wind speed average to latest?

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

banner.php wind speed average to latest?

Post 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
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: banner.php wind speed average to latest?

Post 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.
Steve
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: banner.php wind speed average to latest?

Post 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
Post Reply