Page 5 of 14
Re: CloudBase script for Cumulus Ver CU1.3
Posted: Sun 25 Aug 2013 3:38 am
by BCJKiwi
UPDATE to Ver CU1.3 posted
See first post for details and download.
Re: CloudBase script for Cumulus Ver CU1.3
Posted: Sun 25 Aug 2013 3:09 pm
by n9mfk
Hi BCJKiwi
The new Version id not printing in English
http://99.148.157.210/working/cloudbaseCU.php?html=1
Thanks Beau
Re: CloudBase script for Cumulus Ver CU1.3
Posted: Sun 25 Aug 2013 9:01 pm
by BCJKiwi
Sorry, left in the test set of translated captions for $translate = false;
Have updated the downloads in post 1 above to English defaults for $translate = false;
So you have a two options,
1. download the update again
2. just edit the translations by copy paste the English versions that are specially placed adjacent at lines 346 - 356 as noted in the script and the HowTo
Thanks for letting me know this was an issue for you.
Re: CloudBase script for Cumulus Ver CU1.3
Posted: Sun 25 Aug 2013 9:37 pm
by n9mfk
The Fix woks Great
I had a question if $onlyUseMetar = false; what data is used?
thanks for all your great work
Beau
Re: CloudBase script for Cumulus Ver CU1.3
Posted: Mon 26 Aug 2013 12:22 am
by BCJKiwi
Interesting Question.
For any Metar functionality you must first have $getMetar = true;
Then,
$useMetarAtNight = true;
and
$onlyUseMetar = true;
are both 'selectors' to determine when Metar is used. If Metar is NOT used then the Cumulus forecast number is used instead
The settings are used here;
Code: Select all
if ($metcond != null) {
if(($getMetar && $metarICAO!="" && $useMetarAtNight && $night) || ($getMetar && $metarICAO!="" && $onlyUseMetar)) {
$curcond = nameCloudsFromMetar($metcond);
}
}
so firstly $metcond must not be null - i.e. there must be metar data.
Then the part before the || decides if Metar is used at Night,
and
the part after the || decides if Metar is used all the time, i.e. if $onlyUseMetar = true; then $useMetarAtNight is over-ridden.
If $getMetar = true;
but BOTH $useMetarAtNight = false; AND $onlyUseMetar = false;
Metar will be downloaded but not used - confusing isn't it!
This is all the way it is in the original

Re: CloudBase script for Cumulus Ver CU1.3
Posted: Mon 26 Aug 2013 4:32 pm
by joewith
I have installed CloudBase script Version CU1.3 and really like it and would like to add it to my web site.
However, I am down to one problem though which has to do with the Degree symbol. I get another character inserted into the image (
see attached image ) and have not been able to find a solution as of yet. If anyone that has encountered this problem could please steer me in the right direction to resolve this issue I would sure appreciate it.
My link to the script is
http://www.tigerdenweb.com/tigerdenwx/c ... php?html=1
Thanks,
Joe
Re: CloudBase script for Cumulus Ver CU1.3
Posted: Mon 26 Aug 2013 8:32 pm
by BCJKiwi
When you made your setting changes, what editor did you use?
This happens if the file is saved as UTF-8.
To generate the graphic properly, the file must be saved as ANSI
If you don't have an editor that allows you to change the Encoding, then I suggest you download Notepad++ (it's free) and you will see there is a menubar item 'Encoding', select that and from the drop down menu click on 'Convert to ANSI' and save.
Re: CloudBase script for Cumulus Ver CU1.3
Posted: Mon 26 Aug 2013 9:28 pm
by joewith
Thanks for the reply and solution. The problem was indeed the editor I was using "CoffeCup HTML Editor". Even though the default character set in my preferences states to us ANSI it converts to UTF-8.

Guess I'll be looking for another package to manage my projects.
Anyhow in fixing that problem I stumbled onto another one. Suddenly my cloudbaseCU indicates that it is snowing but the temperature is close to or above 90 degrees. Any ideas?
Thanks,
Joe
Re: CloudBase script for Cumulus Ver CU1.3
Posted: Mon 26 Aug 2013 10:19 pm
by BCJKiwi
Well the decoding logic has managed to find SN in the middle of DSNT in the metar and decided it is SNowing.
DSNT apparently means 'distant' and I guess was not anticipated in the original program.
Your Denver Metar is very detailed which appears to include a number of codes that don't appear in any of the listings I have found.
Will study it in detail and see what fixes may be available.
Thanks
Re: CloudBase script for Cumulus Ver CU1.4
Posted: Tue 27 Aug 2013 3:37 am
by BCJKiwi
27 August 2013
Now Ver CU1.4
See first post for details and download.
Re: CloudBase script for Cumulus Ver CU1.4
Posted: Tue 27 Aug 2013 5:46 am
by gluepack
Sorry, I don't see anywhere in notes or howto, what is cloudbaseCUWinDir.txt for and where does it go. Sure the note at the front of the file implies I don't need it and it may well be explained in the thread somewhere but...
Re: CloudBase script for Cumulus Ver CU1.4
Posted: Tue 27 Aug 2013 6:20 am
by BCJKiwi
The only relevant notes now regarding cloudbaseCUWinDir.txt are in the 'Translation options' section in the header of the script which is repeated in the HowTo.
The file contains a partial list as samples of the compass points on other laguages to use if you don't want English as the default.
They are only relevant for those with translation set to false or a non-English language and non Saratoga translations.
These instructions were changed when the wind dir optional settings were moved from Cumulus .ini to the script as noted in the change logs for ver 1.3 in the first post.
Re: CloudBase script for Cumulus Ver CU1.4
Posted: Tue 27 Aug 2013 9:45 am
by gluepack
Oh, it now says it is raining even though we haven't had rain for god knows how long. It is cloudy though...

Re: CloudBase script for Cumulus Ver CU1.4
Posted: Tue 27 Aug 2013 11:52 am
by BCJKiwi
Hey,
Don't shoot the messenger
You are using Cumulus forecast number which is showing 21
// CU default is forecast number // Cumulus code description // original Zambretti
case 21: $curcond = $raining; break; // Occasional precipitation, worsening // Rain at times, worse later
Do you have a metar within a reasonable distance? Even if it is some way off, it may be more reliable than the forecast number.
Re: CloudBase script for Cumulus Ver CU1.4
Posted: Tue 27 Aug 2013 1:45 pm
by gluepack
You're not the messenger, you're an interpreter.
I've already dropped the metar because it was unreliable. For a start, when I've checked, it has been at least three hours behind me and a 20 min drive (e.g. to the airport) from my location takes you into all sorts of different micro-climates.
I do understand how difficult it is to cater for all cases when writing software but a rainfall of 0.0 would tell me it isn't raining.
Even this...
case 21: $curcond = $raining; break; // Occasional precipitation, worsening // Rain at times, worse later
...(at least the comments) doesn't say it
is raining.