Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

CloudBase script for Cumulus Ver CU1.5

Discussion of Ken True's web site templates

Moderator: saratogaWX

BCJKiwi
Posts: 1255
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 »

I have it running in my Saratoga site using the same files as the CumulusMXUI site.
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: CloudBase script for Cumulus Ver CU1.5

Post by sfws »

Contents of post deleted, due to response to it
Last edited by sfws on Fri 18 Mar 2022 5:41 pm, edited 1 time in total.
BCJKiwi
Posts: 1255
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 »

There are more changes required that just the match function.
match may be sufficient for 8.0 but not for later versions.

There are other changes to support later versions.

Currently testing with php 8.1.3

If you want to keep with the older files then run a file compare on the current and new CumulusMXUI version and the Saratoga version and update all the necessary changes.
BCJKiwi
Posts: 1255
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 »

@ ConligWX
Have sent you a PM with code to test.
BCJKiwi
Posts: 1255
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 CUmx 2.2.4

Post by BCJKiwi »

CloudBase for Cumulus Ver 2.2.4
There is an updated version of this script available on our website at
https://silveracorn.nz/weather/wxscripts.php

It is compatible with PHP 7 and PHP 8 ( tested with ver 8.1.3 ).
This version works with a CumulusMX template or with a Saratoga template.
It now uses the CumulusMX style Moon images and a version of these are included in the package.

it will also be included in the next release of the CumulusMXUI template.
Last edited by BCJKiwi on Thu 17 Mar 2022 7:59 pm, edited 2 times in total.
User avatar
ConligWX
Posts: 1606
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by ConligWX »

Is this version 2.2.4 and not 2.4.4?
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
BCJKiwi
Posts: 1255
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 »

CloudBase for Cumulus Ver 2.2.4

Hmm bad typo! :bash: :bash:
Yes it is 2.2.4
water01
Posts: 3245
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by water01 »

Implemented the new script. All OK except the ^A in the temperature. Thought it was the UTF-8 problem but tried all normal combinations but don't seem to be able to get rid of it.

https://www.dmjsystems.co.uk/weatherbos ... seCUmx.php
David
Image
BCJKiwi
Posts: 1255
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 »

Hmm, very peculiar.

It is not showing on my site nor on another users London site and we all use metric temp C.
I test with both CUtags and cloudbaseCUtags.php and the UK sites both use cloudbaseCUtags.php

What does the tag file $temp look like?
water01
Posts: 3245
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by water01 »

Here it is.

Code: Select all

<?php
// silveracorn.nz Cloudbase Version MX_2.2.4 - 4-March-2022
$time = '01:20 on 18 March 2022';
$timehhmm = '01:20';
$datelong = 'Friday, March 18, 2022';
$temp = '9.0';
$tempunitnodeg = 'C';
$dew = '7.6';
$rfall = '0.00';
$rainunit = 'in';
$MinutesSinceLastRainTip = '2040';
$press = '1039.6';
$pressunit = 'mb';
$hum = '91';
$wspeed = '0';
$bearing = '0';
$windunit = 'mph';
$forecastnumber = '1';
$cloudbasevalue = '569';
$cloudbaseunit = 'ft';
$altitude = '33&nbsp;ft';
$latitudedp6 = '51.230278';
$isdaylight = '0';
$interval = '10';
$MoonPercent = '100';
$MoonAge = '15';
$ns = ('51.230278' > 0 )? "N" : "S";
$daylightsaving = date('I');
?>
David
Image
BCJKiwi
Posts: 1255
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 »

Well, that is as it should be - mystery remains.
water01
Posts: 3245
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by water01 »

OK solved it. Usually save my .php files with UTF-8 with BOM. Saved this one with plain ANSI and all is well.

https://www.dmjsystems.co.uk/weatherbos ... seCUmx.php
David
Image
BCJKiwi
Posts: 1255
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 CUmx 2.2.4

Post by BCJKiwi »

OK,
Good news. :clap: :clap:

I have had endless issues with UTF-8 with BOM so avoid BOM.

I noticed it was displaying correctly in the ?html=1 diagnostic.
You might try changing:-

// determine text lengths of alt, temp, hum, baro and wind text
$txtT = $curtemp . '°'. $uomTemp;

to
// determine text lengths of alt, temp, hum, baro and wind text
$txtT = $curtemp . '&deg;' . $uomTemp;
griffo42
Posts: 230
Joined: Thu 10 Dec 2015 6:41 am
Weather Station: Davis Vantage Pro2
Operating System: Win 11 Home
Location: Brisbane, Queensland, Australia
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by griffo42 »

Am having trouble with this upgrade for my Saratoga site. It cant find cloudbaseCUmx.php and gives a 500 error. Can anyone help please. Screen shots of data generated by Firefox are attached.

Keith
You do not have the required permissions to view the files attached to this post.
Keith
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
Image
BCJKiwi
Posts: 1255
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 »

Could not figure out what was going on there but notice you have reverted to a working version.

Have updated the Howto files (now a separate one for Cumulus and for Saratoga) so hopefully that will help to make a successful installation.
Post Reply