Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3044 7 December 2018. See the Wiki for download

CloudBase script for Cumulus Ver CU1.5

Discussion of Ken True's web site templates

Moderator: saratogaWX

BCJKiwi
Posts: 873
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by BCJKiwi » Sat 22 Aug 2015 11:38 am

Thanks Steve.

I'll add that change to future versions of the script.
Will need to look at some other scripts as well where the same explode() is used.

A surprise this has not come up before as I would have expected other users of the script to have come across this. It seems that it has - n9mfk reported it a few posts before this but without enough info to track the issue, not sure anyone else reported it though.
It so happens I only get away with it as our lat is -36 else I would have found it myself a long time ago.

BCJKiwi
Posts: 873
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by BCJKiwi » Sun 23 Aug 2015 2:40 am

Steve,
It seems that everyone in the northern hemisphere should have been affected by this but I have not seen a corresponding number of complaints.
Have incorporated your suggestion into the script but also changed the variable in the cloudbaseCUT.txt data file that Cumulus sends.
Either or both changes will work.

This data item is only used to determine hemisphere and the script already caters for the regular <#latitude> tag as well as the dp version.

Have attached a revised cloudbaseCUT.txt file.
Users may just replace the existing file in their cumulus/web folder (C1 or MX) and /or make the change to the cloudbaseCU.php file as suggested above.
You do not have the required permissions to view the files attached to this post.

User avatar
steve
Cumulus Author
Posts: 26714
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by steve » Sun 23 Aug 2015 7:43 am

I've also changed the code so that hopefully it will just use the required number of characters without padding, as Cumulus 1 apparently does.
Steve

BCJKiwi
Posts: 873
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by BCJKiwi » Sun 23 Aug 2015 10:51 am

Ah, I got the impression from your earlier post that the padding process was the same in C1 and MX. On re-reading the posts it seems that was your original feeling but proved not to be the case. That would explain the lack of grumbles.

I'm sure consistency in the data file is the best solution.

BCJKiwi
Posts: 873
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by BCJKiwi » Wed 25 May 2016 10:14 pm

As per Ken's info on the changes at NOAA for Metar access, please note that change also affects this Cloudbase script IF and only IF you are using the Metar option in your configuration.

Have put a note on the page http://silveracorn.nz/weather/wxscripts.php until (if) the script there gets updated.

The Note there says;
UPDATE May 2016:- If using the Metar option, $getmetar = true; then line 1126 in cloudbaseCU.php should be changed;
from $rawfile = 'http://weather.noaa.gov/pub/data/observ ... /stations/' . $icao . '.TXT';
to $rawfile = 'http://tgftp.nws.noaa.gov/data/observat ... /stations/' . $icao . '.TXT';
So, please amend your cloudbaseCU.php script.

User avatar
ConligWX
Posts: 734
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by ConligWX » Thu 26 May 2016 9:17 am

Thanks for the heads-up!
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
HRVistaWeather
Posts: 179
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Home (64bit)
Location: Franklin, Huon Valley, Tasmania
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by HRVistaWeather » Tue 04 Jul 2017 11:52 am

A Brilliant Script, Thanks Brian.
Image attached with it in action, showing the use of Local vs Metar data.
CB-Compare.PNG
And actual site data image for compare.
Huon River Vista Weather Huon Valley South Franklin Tasmania Home-min.png
regards,
You do not have the required permissions to view the files attached to this post.
Tony
Huon River Vista - South Franklin Weather - Tasmania
Davis Vantage Pro 2 Plus - FARS, Cumulus MX, 2 Soil Temp/Moist Solar/Rad.
Image

User avatar
ConligWX
Posts: 734
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by ConligWX » Tue 04 Jul 2017 5:01 pm

Hi Tony

Whats up with your site at the moment? not seeing any data or site for that matter.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
HRVistaWeather
Posts: 179
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Home (64bit)
Location: Franklin, Huon Valley, Tasmania
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Post by HRVistaWeather » Tue 04 Jul 2017 10:31 pm

Hi Simon,

as per my signature below each post;

Weather PC Died 2016/11/21 15:25 Cannot justify replacement (Website dead)

Only running local Wamp site since then, most likely will not go public again, don't have the time nor money.

regards,
Tony
Huon River Vista - South Franklin Weather - Tasmania
Davis Vantage Pro 2 Plus - FARS, Cumulus MX, 2 Soil Temp/Moist Solar/Rad.
Image

Post Reply