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

Translations, weather graphics, etc ...

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Translations, weather graphics, etc ...

Post by beteljuice »

The "I Wants" have said:

I want to translate the forecast.
I want to translate the wind direction.
I want to translate the Beaufort description.
I want to translate the pressure trend.
I want to translate the temperature trend.
I want to translate the Moon phases.
I want forecast graphics.
I want ........... a good smack :lol:

So, using the same sort of techniques as in beteljuice_ajax here is a 'test bed' Cumulus indexT.htm.

Here is an excerpt from the page:

// what do you want to do ? - NB. any value except false = true !
change_forecast = true; // true or false - get the idea - translate / modify Cumulus forecast
show_TZ = true; // show your (declared) time zone - includes DST logic
change_date = true; // translate / modify time stamp - also allows short / long day / month
change_latlong = true; // ie. convert to decimal notation
change_moonphase = true; // translate / modify Moon Phase
hide_moon = true; // only show moon graphic if above horizon
change_winddir = true; // translate / modify AVERAGE wind direction
change_beaufort = true; // translate / modify AVERAGE Beaufort text
show_day = true; // display a daytime graphic
show_night = true; // display a night-time graphic
change_pressure = true; // translate / modify pressure trend text
change_temp = true; // translate / modify temperature trend text

Hey - there's a few other things in there as well !
Notice the phrase 'modify', what's the difference between a translation and a modification ?
You could keep it 'English', but for example change colour or enbolden for particular decisions.

The following test-bed will show a day / night graphic top left, if the Moon is 'up' display the 'round' Moon top left. etc. etc. (Notice the time date stamp ;) )

If variables are missing, or incorrectly declared, or nonsense, or the viewer has Javascript disabled, the 'default' Cumulus variables will be displayed.

http://www.dickie.webfusion.co.uk/betel ... s/bog.html

In this example page, the 'translated / modified' JavaScript stuff is hightlighted or boxed in yellow.

Comments please !!!!
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Translations, weather graphics, etc ...

Post by beteljuice »

What - no comment !

Ne'er mind :?

Through another forum I have been made aware of Australian farmers who have bought Watson clones, ergo using Cumulus, to help make agricultural decisions.

So, using info from the 'bom' site - here is an (unproven) variant:

http://www.dickie.webfusion.co.uk/betel ... spray.html
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Jonsey
Posts: 112
Joined: Mon 05 Jan 2009 2:25 am
Weather Station: Fine Offset WH1081
Operating System: Shuttle Xpc SK41, XP Pro SP3
Location: Worsley, Manchester
Contact:

Re: Translations, weather graphics, etc ...

Post by Jonsey »

Am impressed with that beetlejuice, espicially the forecast part where you get a image. But on a whole top job. and if it helps the farmers it's all good... 8-) 8-)

Dave
Image
Post Reply