Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
CumulusMX and Cumulus1 UI style Multilingual Websites
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
@sutne
Most of the <?php echo $RT_rrate; ?> style entries have been removed from the pages which have realtime data updates as the php is not required - the data is supplied via ajax.
You can add them back if you want but why would you?
Most of the <?php echo $RT_rrate; ?> style entries have been removed from the pages which have realtime data updates as the php is not required - the data is supplied via ajax.
You can add them back if you want but why would you?
-
- Posts: 377
- Joined: Sun 14 Oct 2012 4:23 pm
- Weather Station: HP2553 (WS80) and HP2564 (WS90)
- Operating System: Raspbian Bullseye and Bookworm
- Location: Rjoanddalen and Kronstad, Norway
- Contact:
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
Because the rate is missing.
From your site as well:
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
Hmm..
That turns out to be because the ajax id is incorrect !
Should be
Goodness knows how long that error has been there!
That turns out to be because the ajax id is incorrect !
Code: Select all
<td style="text-align:left"><span class="ajax" id="ajaxrratehrNoU"></span>
Code: Select all
<td style="text-align:left"><span class="ajax" id="ajaxrainratehrNoU"></span>
-
- Posts: 7
- Joined: Mon 15 Mar 2021 7:52 pm
- Weather Station: Davis Vantage Vue
- Operating System: Raspbian / Raspberry Pi4
- Location: Aix-en-Provence, FRANCE
- Contact:
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
I applied the same settings in ajaxCUmx.js and ajaxCUmx.min.js (at the root)
and it works on my side.
-
- Posts: 9
- Joined: Fri 09 Apr 2021 11:26 am
- Weather Station: Ecowitt
- Operating System: Raspberry
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
Tried this on mine and still getting missing data in the NAV_BAR:
Only using EN as enabled language - if I enable another language I.e. Spanish (ES) and allow the selection nothing changes other than the dropdown appearing
Forecasts don't show either when enabled = 1 which again I assume is down to language not working
Running on my own server
Apache and PHP7.3
footer.php includes: <script src="./ajaxCUmx.js"></script>Only using EN as enabled language - if I enable another language I.e. Spanish (ES) and allow the selection nothing changes other than the dropdown appearing
Forecasts don't show either when enabled = 1 which again I assume is down to language not working
Running on my own server
Apache and PHP7.3
BCJKiwi wrote: ↑Sun 11 Apr 2021 4:28 am Ver 2.2.1b patch for comma decimal and extra sensors (WH45)
Also available in First Post this thread.
Apologies to those inconvenienced by the incomplete files provided in 2.2.1a
Thanks to betejuice for his help in resolving the issues with the 2.2.1a release.
If you have difficulty with data not displaying as it should, or issues with the nav menu header, you may wish to try the /src/ajaxCUmx.js file instead of the ajaxCUmx.min.js file.
Have found the non-minimised version more reliable on public servers.
It is fine on the local development server I use but not so reliable on the public server.
1. copy ajaxCUmx.js from ./src/to main folder.
2. edit footer.php and change path in
<script src="./ajaxCUmx.min.js"></script>
to
<script src="./ajaxCUmx.js"></script>
You do not have the required permissions to view the files attached to this post.
- 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: CumulusMX and Cumulus1 UI style Multilingual Websites
Are you using the new patch realtime-xT template ?
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 9
- Joined: Fri 09 Apr 2021 11:26 am
- Weather Station: Ecowitt
- Operating System: Raspberry
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
Thank you that has fixed it although I cannot turn off the language selection now!!!
LANGUAGE - Settings for language components
allow_Languages = false; // NO var !! true / false - true for multiple languages, false for THE language in NEXT LINE set_language
set_Language = "en"; // NO var !! short ISO code - DEFAULT lang of site - regardless of allow_Languages
Using the non-MIN version of the ajax file fixed turning off languages ...
Assume this decimal point thing was supposed to be fixed?
You do not have the required permissions to view the files attached to this post.
- 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: CumulusMX and Cumulus1 UI style Multilingual Websites
That would be because ..Using the non-MIN version of the ajax file fixed turning off languages ...
footer.php includes: <script src="./ajaxCUmx.js"></script>
Comma vs point for thous delimiter ... Hmm
What does the value look like in your realtime-x.txt ?
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 9
- Joined: Fri 09 Apr 2021 11:26 am
- Weather Station: Ecowitt
- Operating System: Raspberry
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
12/04/21~18:59:12~6.8~37~-6.9~3.8~6.7~281~0.00~0.01~1000.6~W~2~mph~C~mb~in~38.3~0.2~0.14~0.14~0.04~22.2~37~5.8~0.0~9.6~17:00~-2.0~05:38~4.9~13:39~11.4~12:01~1000.9~18:27~995.3~00:03~3.10.5~3122~10.3~6.8~6.8~0.0~0.000~40~302~0.00~6~1~0~WNW~5605~ft~2.8~6.9~44~1~92~30~04:20~16:55~-1.1~-8.6~09:10~17:11~6.4~-4.7~17:00~05:50~-2.0~05:38~788~11:50~7.0~11:09~0.05~0.01~0.00~1456~Fairly fine, improving~06:14~20:03~06:47~20:29~1~0~0~Waxing Crescent~Steady~Rising~Light breeze~10.2~9.6~17:00~5.8~10.2~9.6~17:00~-2.0~-2.0~05:38~5.5~-1.5~12:57~06:24~2.6~-4.3~15:00~06:42~0.2~-5.6~18:36~12:40~99~48~00:00~12:40~995.6~988.6~23:28~02:22~6.1~-1.5~14:58~06:24~6.1~14:58~-1.5~06:24~NW~NNW~310~329~6.1~13:54~13.6~12:03~44.1~860~12:01~7.8~8.0~11:11~miles~°C~0.01~0.02~0.07~09:30~15:57~11.6~7.6~09:31~18:44~9.6~17:00~6.1~14:58~05:37~20:41~15:03~13:49~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~0~0~0.0~0.0~0.0~0.0~0.0~0.0beteljuice wrote: ↑Mon 12 Apr 2021 5:38 pmThat would be because ..Using the non-MIN version of the ajax file fixed turning off languages ...footer.php includes: <script src="./ajaxCUmx.js"></script>
Comma vs point for thous delimiter ... Hmm
What does the value look like in your realtime-x.txt ?
-
- Posts: 95
- Joined: Wed 18 Jan 2012 8:25 pm
- Weather Station: Davis Vantage PRO2
- Operating System: Windows 10
- Location: France / Orny
- Contact:
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
Hello,beteljuice wrote: ↑Sun 11 Apr 2021 7:26 pm Your (/1MX/) site seems to be running ajax 2-1-3 ?
... and those edits are not in that file.
my site, test site, which poses a problem with the translation is at the address: https://www.meteo-orny.fr/1MXnew/
I don't understand what you mean, nor where you see it.
Edit:
I just upgraded with the uncompressed version of ajaxCUmx.min.js, available in the "src" folder, and it works fine. No doubt a reduction problem.
PS: what's the point of compressing them?
Site : http://meteo-orny.fr
- 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: CumulusMX and Cumulus1 UI style Multilingual Websites
For Brian - re uktricky problem ..
realtime[44] = 0.000
Three dec places is making the thous separator check come out as 'period' found.
realtime[44] = 0.000
Three dec places is making the thous separator check come out as 'period' found.
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
Well ajax limits the output to 2 dec places.
If the source is more than that then realtime-xT.txt (and CUTagsT.php and reatlimetagsT.php) will need to have a dp modifier in the tag
eg <#ET dp=2>
Unless there is some other magic you can apply to ajax?
If the source is more than that then realtime-xT.txt (and CUTagsT.php and reatlimetagsT.php) will need to have a dp modifier in the tag
eg <#ET dp=2>
Unless there is some other magic you can apply to ajax?
- 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: CumulusMX and Cumulus1 UI style Multilingual Websites
... but why haven't we seen this before ?
Is this the only tag that gives 3 dec and / or is it only 3 dec because it's zero ?
... because the other problem is it gets modified to 0000
Can you even use a dp modifier on values that maybe comma dec ?
There are fiddles we can do if that is the only occurrence, but in the tangle of possible formats it could go back to being a nightmare
Is this the only tag that gives 3 dec and / or is it only 3 dec because it's zero ?
... because the other problem is it gets modified to 0000
Can you even use a dp modifier on values that maybe comma dec ?
There are fiddles we can do if that is the only occurrence, but in the tangle of possible formats it could go back to being a nightmare
......................Imagine, what you will KNOW tomorrow !
- HansR
- Posts: 5964
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
Ok. I look at the testsite given above and would like to make the remark it works perfectly meaning 1) it changes language correct and 2) I see the pressure without the thousends separator (point).
For me that would mean it is not a coding issue but a local(e) issue (the realtime file seems OK too). As javascript works in two lines of executions modes (the user line and the ajax line to simplify things) that would be where I would be looking. The assignment of the realtime value somewhere in another locale?
Sorry for the interruption as I really have no idea about this template. I apologize.
For me that would mean it is not a coding issue but a local(e) issue (the realtime file seems OK too). As javascript works in two lines of executions modes (the user line and the ajax line to simplify things) that would be where I would be looking. The assignment of the realtime value somewhere in another locale?
Sorry for the interruption as I really have no idea about this template. I apologize.
Hans
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: CumulusMX and Cumulus1 UI style Multilingual Websites
No idea ET has been in ajax since the beginning of the MXUI template and set to 2 decimal places.... but why haven't we seen this before
No idea - require input from UK users. - should be able to see it in a processed realtimetags.php.Is this the only tag that gives 3 dec and / or is it only 3 dec because it's zero ?
... because the other problem is it gets modified to 0000
Wind dir variants can be 3 digits (numeric or text) but no decimals.
Can't see any numeric vars that have 3 dec places by default.
Perhaps the site where you see it has modified their ET to show three decimals?
No idea, dp=1 (or 2) works fine on ET with dot dec, don't see why it shouldn't on comma dec but will need someone using comma dec to test.Can you even use a dp modifier on values that maybe comma dec ?