Page 15 of 47

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Fri 04 Sep 2020 10:38 am
by mcrossley
The problem is in the script ajaxCUmx.js - this calls changeLang() after the buttons have been removed during the SS code initialisation.
changeLang() calls SetLang() in gauges.js, that queries the buttons values to see which updated language strings to use. As the buttons no longer exist they default to false which is the indoor values.

In order to change the language after an SS initialisation that involves removing the indoor values the SS code would have to be changed to test the presence of the buttons.

I have updated the SS code to 2.7.5 to cope with this situation.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Fri 04 Sep 2020 10:42 am
by ConligWX
OK, thanks for the update Mark.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Tue 15 Sep 2020 8:54 pm
by BCJKiwi
The template sets for the CumulusMX and Cumulus1 UI style Multilingual Websites have been upgraded to version 2.1.1

Many thanks to the testers and to the language providers. :clap: :clap: :clap:

Full details and files available in the first post of this thread.

This upgrade has taken a long time to develop, enhance, and test.
Hopefully it is bug free. ;) ;)


OK,

A couple of the C1 files have been tweaked since the initial upload of the main C1 files.
trends.php and todayyest.php
When trying to upload the one revised .zip file the order of the files got messed up requiring the removal and reloading of all the .zip files :bash: :bash:

Enjoy

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Wed 16 Sep 2020 11:07 am
by BCJKiwi
It seems I have left a reference to a share folder in the file at
./js/cumuluscharts.js :bash: :bash:

line 9 is

Code: Select all

        url: "../wxshare/graphconfig.json",
where it should be

Code: Select all

        url: "./graphconfig.json",
So please edit the file, or, download the updated MXUIwebsite_2.1.1.zip file again and replace the ./js/cumuluscharts.js with the correct file from the updated .zip file.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Wed 16 Sep 2020 8:49 pm
by BCJKiwi
OK.
Another updated file that did not make it into the initial posted files.
So, here are .zip files with the files that were not correct in the initial version 2.1.1. posts.

The main distribution files in the the first post of this thread have also been updated

MX
cumuluscharts.js
footer.php
MXUI_errors-omissions_1.zip

C1
trends.php
todayyest.php
footer.php
C1UI_errors-omissions_1.zip

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Wed 16 Sep 2020 9:04 pm
by BCJKiwi
MXUI website version 2.1.1
Gauges Temperature and Humidity Inside removal.

Pending the next update of the SS gauges to ver 2.7.5,
have tweaked
lib\steelseries\scripts\gaugesjs.php
so that the inside radio button and text can be removed from the Temperature and Humidity gauges when changing
showIndoorTempHum : true, ( line 66 )
to
showIndoorTempHum : false,

While this does remove the inside radio button and text, the outside radio button and text remains.
This was achieved by remarking out ( // ) lines
651, 652, 655, and 656

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Thu 17 Sep 2020 12:22 am
by BeaumarisWX
Hi Brian,
Thank you greatly for all the long hours and hard work you have put into the original and this latest version, well done.
https://beaumaris-weather.com/MXUI/
Kind Regards,

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Thu 17 Sep 2020 12:55 am
by PaulMy
@Tony,
I echo your comment to Brian.

I also have updated to v2
www.komokaweather.com/cumulusmx/index.php

Enjoy,
Paul

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Thu 17 Sep 2020 6:45 am
by billy
Brian,
Thanks - some nice enhancements https://tillyspaws.com/vp2cmxui/index.php. :clap:

Changing language throws an error (Uncaught Error loading language packlanglib/de.json) - seems to be looking in the wrong place but I haven't been able to find the spot to correct this.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Thu 17 Sep 2020 8:44 am
by billy
Scratch the language selection problem - it has decided to work. A miracle of nature - or more likely my ignorance :?

I also notice that the drop-down language selection box in the header does not appear when the VP2 Console menu item is selected. Has this been experienced by anyone else?

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Thu 17 Sep 2020 2:12 pm
by ConligWX
BCJKiwi I ran into a problem some time ago with the graphs never bein dislayed.

I would get a JPGraph Error 25092

example:
There is either a configuration problem with TrueType or a problem reading the font file
"/var/www/html/jpgraph/src/fonts/DejaVuSans.ttf"
Make sure file exists and is in a readable place for the HTTP process.

I know it is my settings in php/Apache that is probably at fault and had tried for numerous hours trying to get a fix.

since you new MX template has the charts on the main page i though I best find a solution.

I came across a post here which had found an issue.

https://groups.google.com/g/jpgraph/c/OJ58zFMFNeI?pli=1

Code: Select all

gdImageStringFT() fails for empty strings as of libgd 2.3.0.

https://github.com/libgd/libgd/issues/615
https://bugs.php.net/bug.php?id=79415

All you need to do is add blank string checks around ImageTTFText like as I've done in my fork of the codebase.

https://github.com/rulin132/JpGraph/pull/3/commits/2e5a177a260be0876f47a0a16297cdfbff9cca19

Surely this will be patched really soon.
I then applied the fix (short term) to the gd_image.inc.php file as shown here.

https://github.com/rulin132/JpGraph/pul ... fbff9cca19

line numbers are slightly out of sync but got the fix appplied.44jpgraphs now works as planned.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Thu 17 Sep 2020 9:34 pm
by BCJKiwi
MX/C1UI_errors-omissions_2.zip

Another file with an error ! :groan: :bash: :bash:

First Post this thread main files updated but this is the file that has been changed
Same file for both MX and C1
indxblk_apptemp.php

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Thu 17 Sep 2020 9:38 pm
by beteljuice
@Simon

Unable to get a response from your site - 'tis broken :o

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Thu 17 Sep 2020 10:03 pm
by ConligWX
beteljuice wrote: Thu 17 Sep 2020 9:38 pm @Simon

Unable to get a response from your site - 'tis broken :o
Having serious outages. Virgin Media Hub playing up. Second router in a week! Can't get an engineer out until Monday!

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Posted: Fri 18 Sep 2020 9:11 pm
by Gregorean
Dear BCJKiwi, thank you for this new version UIMX 2.1.1, this looks very nice, :)
This must have cost you a lot of work if I look at the various pages, and I am very grateful that you want to share this with us. :clap:

I started a clean installation (of course I did make a backup first) and then I removed all traces of UIMX 1.02.
But now the following there are still some things that still don't work for me.
For example, I did not see Latitude and Longitude on my Dashboard, only Altitude.

Now I compared my old 1.02 nav_menu.php with the 2.1.1 nav_menu.php and I saw several differences.

In my 1.02 nav_menu.php it says:

Code: Select all

<span lang="en">Latitude</span>&nbsp;&nbsp;<?php echo $latitude;?>&nbsp;&nbsp;&nbsp;
<span lang="en">Longitude</span>&nbsp;&nbsp;<?php echo $longitude;?>&nbsp;&nbsp;&nbsp;
And at 2.1.1 nav_menu.php it says

Code: Select all

<span lang="en">Latitude</span>:&nbsp;<span lang="en"><?php echo $ns; ?></span><?php echo $lat;?>&nbsp;&nbsp;&nbsp;
<span lang="en">Longitude</span>:&nbsp;<span lang="en"><?php echo $ew; ?></span><?php echo $lon;?>&nbsp;&nbsp;&nbsp;
And then I don't see any Longitude and Latitude values, if I adjust these 2 lines now like in 1.02 nav_menu.php all suddenly works fine and see my Latitude and Longitude appear nicely. :D

I solved that problem myself by adjusting these 2 lines, but now there are some things that don't work either.
On the ''Temperauur'' and ''Pressure'', ''Humidity'' and ''Dew Point'' gauges I see no indication ( only NaN undefined) on ''Yesterday'' High and Low.

Also in the Today/Yesterday.php overview I don't see any values for Yesterday.
But having to adjust all of these is a lot of work and the web structure of UIMX 2.1.1 is clearly different from UIMX 1.02 in several respects.
Maybe I'm overlooking something, but I don't see it that easily, I'd like some help.

One last thing, I can't switch to Dutch either, then I don't see the forecast going to Dutch, but if I choose German or English everything will be translated neatly.
I know yet everything has been translated into Dutch, but the translation of the forecast in Dutch was in version 1.02 ok.


Greetings Sjaak.