Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Build 881 - Beaufort String change?

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
emsiwx
Posts: 12
Joined: Sat 03 Oct 2009 11:07 pm
Weather Station: ClimeMET CM2000
Operating System: Windows XP SP3
Location: Bytca, Slovakia
Contact:

Build 881 - Beaufort String change?

Post by emsiwx »

Hello,

since the last build, I have noticed , that the string Ligt breeze is not translated using script on indexT.htm:

<script type="text/javascript">
var beaudesc = "<#beaudesc>";
if (beaudesc=="Calm"){document.write("Bezvetrie");} else
if (beaudesc=="Light Air"){document.write("Vánok");} else
if (beaudesc=="Light breeze"){document.write("Slabý vietor");} else
if (beaudesc=="Gentle breeze"){document.write("Mierny vietor");} else
if (beaudesc=="Moderate breeze"){document.write("Dosť čerstvý vietor");} else
if (beaudesc=="Fresh breeze"){document.write("Čerstvý vietor");} else
if (beaudesc=="Strong breeze"){document.write("Silný vietor");} else
if (beaudesc=="Near gale"){document.write("Prudký vietor");} else
if (beaudesc=="Gale"){document.write("Búrlivý vietor");} else
if (beaudesc=="Strong gale"){document.write("Víchrica");} else
if (beaudesc=="Storm"){document.write("Silná víchrica");} else
if (beaudesc=="Violent storm"){document.write("Mohutná víchrica");} else
if (beaudesc=="Hurricane"){document.write("Orkán");} else
if (beaudesc=="Steady"){document.write("Ustálený");} else
{document.write("Light breeze");}
</script>

Before, no problem at all. Now only Light Breeze is not being translated. Only thing I can think about is if the string changed inside the new build, e.g. like now it contains a bckspace or another invisible character?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Build 881 - Beaufort String change?

Post by steve »

emsiwx wrote:if (beaudesc=="Light Air"){document.write("Vánok");} else
I may have changed the "Light air" one, it now reads as in my quotes, i.e. lower case "a".

I think there's a bug in your code so that "Light breeze" is the default if the string isn't recognised:
{document.write("Light breeze");}
should be:

{document.write("<#beaudesc>");}

So your code is not finding "Light air" and is outputting "Light breeze".

But why do you not use the strings.ini file anyway?
Steve
emsiwx
Posts: 12
Joined: Sat 03 Oct 2009 11:07 pm
Weather Station: ClimeMET CM2000
Operating System: Windows XP SP3
Location: Bytca, Slovakia
Contact:

Re: Build 881 - Beaufort String change?

Post by emsiwx »

Thank you Steve, u were right.

I plan to translate and use string.ini in few days.

Cheers.

EmsiWx
Post Reply