Page 11 of 14
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Tue 22 Feb 2022 10:35 pm
by BCJKiwi
I have it running in my Saratoga site using the same files as the CumulusMXUI site.
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Tue 22 Feb 2022 10:48 pm
by sfws
Contents of post deleted, due to response to it
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Tue 22 Feb 2022 11:06 pm
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.
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Wed 23 Feb 2022 10:07 am
by BCJKiwi
@ ConligWX
Have sent you a PM with code to test.
Re: CloudBase script for Cumulus Ver CUmx 2.2.4
Posted: Wed 16 Mar 2022 9:21 pm
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.
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Thu 17 Mar 2022 10:47 am
by ConligWX
Is this version 2.2.4 and not 2.4.4?
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Thu 17 Mar 2022 7:37 pm
by BCJKiwi
CloudBase for Cumulus Ver 2.2.4
Hmm bad typo!
Yes it is 2.2.4
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Fri 18 Mar 2022 12:40 am
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
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Fri 18 Mar 2022 1:22 am
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?
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Fri 18 Mar 2022 1:31 am
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 ft';
$latitudedp6 = '51.230278';
$isdaylight = '0';
$interval = '10';
$MoonPercent = '100';
$MoonAge = '15';
$ns = ('51.230278' > 0 )? "N" : "S";
$daylightsaving = date('I');
?>
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Fri 18 Mar 2022 1:35 am
by BCJKiwi
Well, that is as it should be - mystery remains.
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Fri 18 Mar 2022 1:44 am
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
Re: CloudBase script for Cumulus Ver CUmx 2.2.4
Posted: Fri 18 Mar 2022 1:53 am
by BCJKiwi
OK,
Good news.
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 . '°' . $uomTemp;
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Sun 20 Mar 2022 8:02 am
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
Re: CloudBase script for Cumulus Ver CU1.5
Posted: Mon 21 Mar 2022 1:24 am
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.