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

CloudBase script for Cumulus Ver CU1.5

Discussion of Ken True's web site templates

Moderator: saratogaWX

Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by Gregorean »

Dennis, I changed NZAA to EHLE but everything remains on night. :cry:
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
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
BCJKiwi
Posts: 1259
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post 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.
Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post 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';
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by Gregorean »

I found the problem, had not checked realtime CUtags.php in Extra Webfiles. :oops:
Now it works again as before. :D
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
BCJKiwi
Posts: 1259
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by BCJKiwi »

Happy you have resolved the issue. :clap: :clap:

Unfortunately there always seems to be too many things that need to configured / set to make all these details and options work right. :roll: :roll:
Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post 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. :P

Sjaak.
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
BCJKiwi
Posts: 1259
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CloudBase script for Cumulus Ver CU2.2.4

Post 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' ).
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: CloudBase script for Cumulus Ver CU2.2.4

Post by ConligWX »

BCJKiwi wrote: Fri 22 Apr 2022 11:05 pm 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' ).
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!
User avatar
JennyLeez
Posts: 336
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post 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.
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post 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.
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post 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
David
Image
BCJKiwi
Posts: 1259
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post 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
You do not have the required permissions to view the files attached to this post.
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post 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?
David
Image
BCJKiwi
Posts: 1259
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post 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.
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by water01 »

PHP Version 8.1.31 and the error is thrown just checked it.
David
Image
Post Reply