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 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

User avatar
ConligWX
Posts: 1573
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 »

BCJKiwi wrote: Mon 21 Mar 2022 1:24 am 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.
Cant seem to download the file from your site at present. getting no download at all.

PS I had to revert mine back to an older variant too as I also go a 500 error. not sure why. think my previous working one was cached perhaps and not showing an updated cloudbasemx file. I've just upgraded Apache to 2.4.53 and php to 8.1.4 now, so would like to try your latest version and see what issues I see.
griffo42 wrote: Sun 20 Mar 2022 8:02 am 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
Keith are you able to take a look at your apache logs? you may see some logging of the error there.
Regards Simon

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

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 »

Apologies,
I have been making further minor changes and managed to get a fail on the moon code which I did not notice prior to posting for download.

So blocked the download while I sorted it out.

Just completed the update so will post shortly.
griffo42
Posts: 226
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 »

@ConligWX

Sorry Simon, I know nothing about Apache. I am in a Windows environment. Having said that it seems that my ISP does provide Apache in the provided cpanel but I know nothing about it. Let's wait to see what @BCJKiwi comes up with to see if I can get it to work here.

Keith
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
User avatar
ConligWX
Posts: 1573
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 »

griffo42 wrote: Tue 22 Mar 2022 2:26 am @ConligWX

Sorry Simon, I know nothing about Apache. I am in a Windows environment. Having said that it seems that my ISP does provide Apache in the provided cpanel but I know nothing about it. Let's wait to see what @BCJKiwi comes up with to see if I can get it to work here.

Keith
Yep sure. I've tested a new release with PHP 8.1.4 and it seems to be working now. Brian should probably release it soon.
Regards Simon

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

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

There is an updated version of this script Dated 23 March 2022 available on our Saratoga website at
http://silveracorn.nz/weather/wxscripts.php

It is compatible with PHP 7 and PHP 8 ( tested with ver 8.1.4 ).
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.
griffo42
Posts: 226
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 »

Still having trouble in getting this to work with my Saratoga site after having downloaded and installed the new version 2.2.4 dated 23 March 2022 following, what I thought as carefully, the updated instructions. According to my ISP - Host Papa, the PHP version it is set for is PHP 7. Tried changing the PHP version to PHP 8 and this causes the whole site not to work.

One strange thing that happens is when I FTP the file cloudbaseCUmx.php using PHP7 to my ISP remote site the file name changes to lower case "cu" rather than "CU". This happens whether I use Filezilla or my usual FTP program in Total Commander (this part of Total Commander has worked reliably for many years now). The error message reported is - Failed to load resource: the server responded with a status of 500 ()

Don't know where to go from here.

Keith
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 »

Well there is some issue with the file transfer or settings somewhere as the filename should not change when uploaded - very strange!

When using Filezilla you can edit or rename the file on the server.

In the Remote Site panel:-
Expand the sitename in the Remote Site
Right click the filename
click Rename

Change the filename to the correct case format.

Do any other files get their name changed?
griffo42
Posts: 226
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 »

@BCJKiwi Thanks Brian. After trying a few different things, I found that the file "get-metarSA-inc.php had also been transferred to the server with lowercase "sa" similar to the "CU" in the cloudbase file. Once corrected it seems to be working. Would appreciate your having a look to check, please.

As to why the change in file name occurs is still a mystery!

Keith
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 »

Looks OK but you are not using the latest version.
griffo42
Posts: 226
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 »

@BCJKiwi

All good now. Started again from scratch with a fresh download of the latest v 2.2.4. The problem with changing the case in some files when uploading to the server continues to be a conundrum. I know of it’s possibility now so will keep it in mind.

Thanks. Keith
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
User avatar
ConligWX
Posts: 1573
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 »

griffo42 wrote: Sat 26 Mar 2022 11:44 am @BCJKiwi

All good now. Started again from scratch with a fresh download of the latest v 2.2.4. The problem with changing the case in some files when uploading to the server continues to be a conundrum. I know of it’s possibility now so will keep it in mind.

Thanks. Keith
FileZilla has section to select "default actions" on file transfers is a file exists. I suggest you take a look at that and see what setting is selected.

open FileZilla, do not connect. then goto Edit, Settings. then in the Settings window, select "File Exist action" in the Transfers section.
Regards Simon

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

Image
griffo42
Posts: 226
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 »

@ConligWX

Thanks for the advice, Simon. Implemented. In my previous post it's should be its - missed that in proof reading.

Keith
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
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 »

Hello, I just did an update to Cloudbase 2.2.4, everything works fine only it stays on night while it is now day. The Time Zone is set correctly but does not switch to day, what could be wrong ? :roll:

cloudbase.JPG
INPUT ITEM: RAW DATA -> DERIVED
Current temp :- 2.6 °C
Dewpoint :- -2.1 °C
Rain Fall :- 0.0 mm
Barometer :- 1015 hPa
Humidity :- 71 %
Wind Speed :- 3 km/h
Wind Dir :- 238 degrees
Cloud Altitude :- 590 m (AGL)
Latitude :- 52.333056 N = Northern Hemisphere
Season :- Spring
Moon Age :- 1 days
Moon Percent :- 0
Day or Night ? :- Night
Tag file time Interval :- 10 Minutes

CUMULUS CONDITIONS
Cumulus conditions not in use
Zambretti # :- 6

METAR CONDITONS - Metar Times UTC, Update Station times based on timezone setting
$pathToMetFile :- ./cache/
Metar - Rawdata :- 2022/04/02 14:30 NZAA 021430Z AUTO 00000KT 6000 NCD 17/17 Q1019 TEMPO 2000 BR
Metar - Trimmed :- 021430Z AUTO 00000KT 6000 NCD 17/17 Q1019
Metar - Decoded :- Not Raining; Sunny
Now :- 1648910972 seconds
Metar report timestamp :- 1648909800 seconds
Age of File :- 19.53 minutes
When to update Metar :- 1648912140 seconds (Metar report timestamp plus 39 mins refresh time)
Next Download in :- 19.47 Minutes (if '-' then refresh page, if still '-' then Metar update overdue!)
Metar file :- Existing file used
AUTO Metar station updates usually every 30 minutes. MANUAL Metar station updates usually Hourly.

OUTPUT DATA
Background image file name :- ./images/cb/cb-bg-00sprn.png
$showAGL / ASL :- true
Cloud Temp :- -3 °C
$useWXrain :- true
$tag interval :- 10
Last rained :- 0.48 days ago
Last rained Y-M-D h:m :- 2022-04-01 12:28
No rain in last 10 minutes :- Not raining
Moon Image (cbmoon.png) created @ :- 19:31:57

SETTINGS
$tagfile :- ./CUtags.php
$time last update :- 00:00 on 02 April 2022
$ICAO :- NZAA
$pathToMetFile :- ./cache/
$tz :- Europe/Amsterdam
$pathToImages :- ./images/cb/ ( background, cloud, windsock and scale images )
$srcmoonimgdir :- ./images/moon/ ( source of moon images )
$dstmoonimgdir :- ./images/moon/ ( cbmoon.png )
$switchSeasons :- true
$showCldSource :- true
$showCloudTemp :- true
$showCaption :- true
$showMoon :- true
$showScale :- true
$showWinsock :- false
$showWindDir :- false
$showWindSpd :- false
$showTemp :- false
$showHumidity :- false
$showBaro :- false
$alwaysShowCloud :- false
$useCUHeight :- true
$getMetar :- true
$metarRefresh :- true
$useMetarAtNight :- true
$onlyUseMetar :- true
$reportMistAt :- 25 m
$reportFogAt :- 10 m
$stationAltitude :- 7 m AGL

Sjaak.
You do not have the required permissions to view the files attached to this post.
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
Dennisdg
Posts: 220
Joined: Tue 07 Feb 2012 9:42 am
Weather Station: Davis Vantage PRO2
Operating System: Windows 11 Pro 64 Bit
Location: Camberley

Re: CloudBase script for Cumulus Ver CU1.5

Post by Dennisdg »

You have Auckland Airport NZAA set for decoding the METAR. Try setting a nearer airport e.g. EHAM if nearby.
Dennis

https://g4glp.co.uk

Davis Vantage PRO2
Win 11 Pro 64 bit
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 »

Hello Dennis, stupid that I did not think of that, has always been like that (wrong). :bash: :bash:
I need to find something in the Netherlands, the nearest airport is https://metar-taf.com/nl/EHLE Lelystad-Airport.

Many thanks,
Sjaak.
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
Post Reply