Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

CloudBase script for Cumulus Ver CU1.5

Discussion of Ken True's web site templates

Moderator: saratogaWX

BCJKiwi
Posts: 845
Joined: Mon Jul 09, 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

Postby BCJKiwi » Sat Aug 22, 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: 845
Joined: Mon Jul 09, 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

Postby BCJKiwi » Sun Aug 23, 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: 26247
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in France
Contact:

Re: CloudBase script for Cumulus Ver CU1.5

Postby steve » Sun Aug 23, 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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

BCJKiwi
Posts: 845
Joined: Mon Jul 09, 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

Postby BCJKiwi » Sun Aug 23, 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: 845
Joined: Mon Jul 09, 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

Postby BCJKiwi » Wed May 25, 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/observations/metar/stations/' . $icao . '.TXT';
to $rawfile = 'http://tgftp.nws.noaa.gov/data/observations/metar/stations/' . $icao . '.TXT';


So, please amend your cloudbaseCU.php script.

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

Re: CloudBase script for Cumulus Ver CU1.5

Postby Toxic17 » Thu May 26, 2016 9:17 am

Thanks for the heads-up!
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: CloudBase script for Cumulus Ver CU1.5

Postby HRVistaWeather » Tue Jul 04, 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
https://southfranklinweather.com
Image
Huon River Vista - South Franklin Weather - Tasmania
Davis Vantage Pro 2 Plus - FARS, Cumulus MX, 2 Soil Temp/Moist Solar/Rad.
Back Online : 2017-11-01

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

Re: CloudBase script for Cumulus Ver CU1.5

Postby Toxic17 » Tue Jul 04, 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+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: CloudBase script for Cumulus Ver CU1.5

Postby HRVistaWeather » Tue Jul 04, 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
https://southfranklinweather.com
Image
Huon River Vista - South Franklin Weather - Tasmania
Davis Vantage Pro 2 Plus - FARS, Cumulus MX, 2 Soil Temp/Moist Solar/Rad.
Back Online : 2017-11-01


Return to “Saratoga Templates”

Who is online

Users browsing this forum: No registered users and 1 guest