Page 13 of 14
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Sat 02 Apr 2022 6:55 pm
by Gregorean
Dennis, I changed NZAA to EHLE but everything remains on night.
Now that I think about it also logical, the display of metar data changes but not the day or night display
I also checked all the timezone settings but nothing changes, I don't know where to look for it.
Thanks for your advice though.
Sjaak
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Sat 02 Apr 2022 9:04 pm
by BCJKiwi
As suggested in the script around line 203,
If the nearest metar station is too far away to represent your local conditions, you can change the metar settings to false which will enable the zambretti forecast built into Cumulus do the job instead.
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Sun 03 Apr 2022 8:07 am
by Gregorean
Thanks Brian but that is not the problem, I am now getting Metar data from the local airport but it remains set to night.
I also see the problem now, the update stays at 00.00 and that is at night. But what is not being updated now?
Date/Time :- Sun, 03 Apr 2022 09:43:37 (Night)
Last updated :- 00:00 Sunday, April 03, 2022
And this is in CUtags.php
<?php
// silveracorn.nz MXUI website --- Version MX_2.2.4 - 1-February-2022
// MX version 3162
$WXsoftware = 'CU';
$time = '00:00 on 03 April 2022';
$timehhmmss = '00:00:00';
$timehhmm = '00:00';
$timeUTC = '22:00 on 02 April 2022';
$timeUnix = '';
$realtimeinterval = '30';
$interval = '10';
$minute = '00';
$hour = '00';
$date = '03/04/2022';
$datelong = 'Sunday, April 03, 2022';
$dateshort = 'Apr 03, 2022';
$metdate = '03/04/2022';
$metdateyesterday = '02/04/2022';
$day = '03';
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Sun 03 Apr 2022 10:00 am
by Gregorean
I found the problem, had not checked
realtime CUtags.php in Extra Webfiles.
Now it works again as before.

Re: CloudBase script for Cumulus Ver CU1.5
Posted: Sun 03 Apr 2022 11:31 am
by BCJKiwi
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Sun 03 Apr 2022 4:42 pm
by Gregorean
That's right, just to be clear I am using cloudbase 2.24 for your lovely UIMX.
I changed the cloudbase dimensions a bit in index.php which are now :
<img id="cloudbase" src="cloudbaseCUmx.php" alt="cloudbase" width="115" height="215" /> </a>
It is now more readable.
Sjaak.
Re: CloudBase script for Cumulus Ver CU2.2.4
Posted: Fri 22 Apr 2022 11:05 pm
by BCJKiwi
Have made a minor update to this package.
Available at
https://silveracorn.nz/weather/wxscripts.php
The only changes are:-
The date at the top of the file, and at line 798 ( another php 8 'fix' ).
Re: CloudBase script for Cumulus Ver CU2.2.4
Posted: Sat 23 Apr 2022 3:20 pm
by ConligWX
Ahh more work for me:) you got me at a good time. just moved CumulusMX to a new SSD hard disk and installed a new OS too (Ubuntu 22.04 - clean install) also now running as a service, which all of that I thought would be more pain than it was worth but so far fingers cross it went as planned.
right i'll get on your script now...
Thanks for all you hard work btw!
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Thu 23 Jan 2025 3:02 am
by JennyLeez
Good Day,
My server is pushing me from php8.0 to php8.1 which is causing issues.
My cloudbase is blank so I downloaded your latest package following your links above and began again.
I am getting the following error and I am wondering if some kind person could help me please.
Once again I am missing our beteljuice
Code: Select all
<br />
<b>Fatal error</b>: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in wairoa.net/weather/cloudbaseCUmx.php:382
Stack trace:
#0 wairoa.net/weather/cloudbaseCUmx.php(382): round('')
#1 {main}
thrown in <b>wairoa.net/weather/cloudbaseCUmx.php</b> on line <b>382</b><br />
Any help would be much appreciated.
Thanks
Jenny
PS Not sure whether I need to upload file. Not sure whether I should with my details. Let me know if need.
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Thu 23 Jan 2025 8:11 am
by ConligWX
JennyLeez wrote: ↑Thu 23 Jan 2025 3:02 am
Good Day,
My server is pushing me from php8.0 to php8.1 which is causing issues.
My cloudbase is blank so I downloaded your latest package following your links above and began again.
I am getting the following error and I am wondering if some kind person could help me please.
Once again I am missing our beteljuice
Code: Select all
<br />
<b>Fatal error</b>: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in wairoa.net/weather/cloudbaseCUmx.php:382
Stack trace:
#0 wairoa.net/weather/cloudbaseCUmx.php(382): round('')
#1 {main}
thrown in <b>wairoa.net/weather/cloudbaseCUmx.php</b> on line <b>382</b><br />
Any help would be much appreciated.
Thanks
Jenny
PS Not sure whether I need to upload file. Not sure whether I should with my details. Let me know if need.
I'm running php 8.3.x and working here. I'll have a look tonight when I am home and pm you my script if you like.
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Thu 23 Jan 2025 8:16 am
by water01
Mine is working fine on PHP 8.1 using the latest version 2.2.7. only a warning on a lack of precision on line 966
https://www.dmjsystems.co.uk/weatherbos ... seCUmx.php
phpinfo returns PHP Version 8.1.31
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Thu 23 Jan 2025 8:11 pm
by BCJKiwi
This is the latest version of the cloudbase file which I have been using for some time.
There have been very few changes.
I have been routinely updating the PHP files on my development server and checking all the website files against the new php versions as they are released. The current php version is 8.4.3
So, you could try this version and hopefully it will resolve any issues.
cloudbaseCUmx.zip
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Thu 23 Jan 2025 11:12 pm
by water01
I thought I would update mine but in 8.1 it throws this error
Code: Select all
[23-Jan-2025 23:10:30 UTC] PHP Fatal error: Uncaught TypeError: imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, bool given in /home/dmjsystems/public_html/weatherbos/cloudbaseCUmx.php:602
Stack trace:
#0 /home/dmjsystems/public_html/weatherbos/cloudbaseCUmx.php(602): imagecopyresampled()
#1 {main}
thrown in /home/dmjsystems/public_html/weatherbos/cloudbaseCUmx.php on line 602
but it works in 7.4?
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Fri 24 Jan 2025 12:38 am
by BCJKiwi
Which version of php 8.1 are you using?
Just tested PHP versions
8.1.26, 8.1.27 and 8.1.28 and 8.1.31
and all OK.
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Fri 24 Jan 2025 1:18 am
by water01
PHP Version 8.1.31 and the error is thrown just checked it.