Page 8 of 48

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 05 May 2020 7:01 am
by sutne
In my views the legends inside the graphs are in english:
Image 05.05.2020 at 08.53 2.jpeg

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 05 May 2020 8:33 am
by sfws
BCJKiwi wrote: Mon 04 May 2020 8:29 pm @ sutne
When I view your site the gauges pop up graph legends are in the language selected.
Not for me.
sutne wrote: Tue 05 May 2020 7:01 am n my views the legends inside the graphs are in english:
Same in my views of your page. The headings outside the graph box change language, but the graph title and legend (identifying which coloured line is what) stays in English. In other words the language module is not adjusting items within the graph.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 05 May 2020 11:19 pm
by BCJKiwi
graph title and legend (identifying which coloured line is what) stays in English.
OK always been like that. Have not considered if they could be changed - will put it on the end of the "nice to have" list.
No part of the pop up graphs is handled by the main language system.
The top part is handled by gauges, the graph content is handled by jpgraph
checking on jpGraph's site they only mention language in relation to error messages - any jpgraph guru like to take a look at that?

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Wed 06 May 2020 12:08 am
by beteljuice
the beteljuice suggests that what you want may be in the .php files ?

Code: Select all

//  CumulusMX Only
        // These are the MX charts graphs
                    ['graphTempHum.php', 'graphTempIn.php'],            // Temperature: outdoor, indoor
      // Temperature: dewpoint,           apparent,           windChill,          heatIndex,          humidex
                    ['graphTempHum.php', 'graphTempHum.php', 'graphTempHum.php', 'graphTempHum.php', 'graphTempHum.php'],
                    'graphRain.php',                                    // Rainfall
                    'graphRain.php',                                    // Rainfall rate
                    ['graphHumOut.php', 'graphHumIn.php'],              // Humidity: outdoor, indoor
                    'graphPress.php',                                   // Pressure
                    'graphWind.php',                                    // Wind speed
                    'graphWdir.php',                                    // Wind direction
                    (config.showUvGauge    ? 'graphUV.php' : null),     // UV graph if UV sensor is present | =null if no UV sensor
                    (config.showSolarGauge ? 'graphSolar.php' : null),  // Solar rad graph if Solar sensor is present | Solar =null if no Solar sensor
                    (config.showRoseGauge  ? 'graphWindRose.php' : null),   // Wind direction if Rose is enabled | =null if Rose is disabled
                    (config.showCloudGauge ? 'graphPress.php' : null)   // Pressure for cloud height | =null if Cloud Height is disabled

                ];

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Wed 13 May 2020 8:47 pm
by malkie
I was a bit late to this particular party, but Lockdown has given me the chance to play...

Just a test site so far but I have it working eventually.

http://elm30net.ddns.net/test/

Running on a Pi2 from home. I intend to move it out of test status to be my main site which has been running from home since late last year. I really like the MX Interface, and getting NOAA working plus all the other add-ons are a bonus.

I’m sure there are settings I need to fine tune, but I’m pleased with the result.

The Scripts are a long way from “plug and play”, but I got there slowly.

One error I remember, the C:\CumulusMX\Cumulus.ini file has an upper case C, for those of us using Linux on a Pi, it matters!

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Wed 13 May 2020 9:00 pm
by BCJKiwi
Thanks will update the howto files in the next release.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 19 May 2020 12:28 pm
by Gregorean
Hello everyone, this is my first post on this forum. I've got CumulusMX 3076 running on a Beaglebone Black 3c, with Debian 10 Buster and NGINX and PHP7.3.
I host my own website locally and here you can see http://element14.serverthuis.nl which is off line now because I am working on the new UIwebsiteMX.

Did everything exactly as described in the how-to, it worked once but for some inexplicable reason not anymore.
Therefore I started ''clean'' again to prevent any possible mistakes.

In the how-to it says:
Each .php page file utilises 'includes' to link in the following:-
settings.php, style sheets required for this page.
JavaScript files required for this page.
css files required for this page.
nav_menu.php the navigation menu or menu bar
the page itself - dashboard, now, gauges etc... footer.php

This above does not work for me, if I enter these files manually in index.php I will see my new website.
I used the website of our esteemed BJCKiwi as an example, which made this all possible. :) But manual editing apart from a lot of work can of course not be the intention. A few more questions about this, do I just have to upload the 4 files ''realtime-x.txt'' and ''realtimetags.php'' and ''CUtags.php'' and ''records.js'' that are in the web folder via Extra Webfiles to my domain, or do I have to upload all files that are already in the root of my BBB (beagle bone black) server by default.
I hope someone from the specialists can help me with this, I am not a specialist in this field.

Greetings Sjaak.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 19 May 2020 1:35 pm
by sfws
content deleted

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 19 May 2020 1:37 pm
by PaulMy
Hi Sjaak,
Brian will be best to guide you. However this is how I have my current installation, which is slightly different to the HowTo:
1. Leave the initial CumulusMX \web and \webfiles intact and uploading to website.
Looks like you have that but with some modification to the xxxT.htm files and that should be ok.

2. I created a new \web-additions and also \webfiles-UIwebsiteMX \webfiles\UIwebsiteMX-options
In the new \web-additions folder I have added the 6 files from the zip \webMX for extra FTP with 2 at realtime and the others at the normal 5-min interval and added these in the Settings Extra web files
In the new \webfiles-UIwebsiteMX folder I have copied the \webfilesMX files from the zip and then FTP (one time) to my website to the same level as the original \webfiles upload

The original yourwebsite.xx/index.htm will still work and the new yourwebsite.xx/index.php should get you the new UIMX dashboard page.

3. I then created a new \webfiles-UIwebsiteMX-options folder for the UIMX option pages and then FTP to my website

I created the new \web-additions folder to better manage any new files for processing CumulusMX processing so not to interfere with the original xxxxT.htm template files (I have other pages that CumulusMX processes and updates).
And also the new \webfiles-UIwebsiteMX and \webfiles-UIwebsiteMX-options also for easier management of the UIMX addition and changes, especially if there are updates to the template

4. Of course you would need to follow the instructions on editing the files such as ajaxCUmx.js nav_menu.php settings.php etc.

www.komokaweather.com/cumulusmx
www.komokaweather.com/cumulusmx/index.php

Enjoy,
Paul

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 19 May 2020 3:48 pm
by Gregorean
Hello Paul and don't forget @sfws, thanks for your reactions, I have to get used to it first, because English is not really my mother's language. ;)

The point is that ''includes'' doesn't work.
My web structure looks like this in WinScp my favorite editor. I also use Notepad++ sometimes, so you can compare multiple sessions.
root structure.JPG
As you can see my old CumulusMX working website is in www/html/ and my UIMX site is in www/html/cumulusmx a sub folder cumulusmx, with all the files in the local folder webfilesmx left side.
So everything is separated to rule out mistakes when experimenting, later on I can change that as Paul writes, but first it has to work properly.

My old CumulusMX website can be reached at http://element14.serverthuis.nl and my new uimx site can be found here http://element14.serverthuis.nl/cumulusmx/infophp.php (this is a php test file to see that my ''cumulusmx'' sub site does work).

Greetings Sjaak.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 19 May 2020 4:36 pm
by PaulMy
Hi,
I am on PC Windows and have no knowledge of Beaglebone Black 3c, with Debian 10 Buster and NGINX

A bit like you, I didn't want the current working setup (which also had some minor modifications) to be disturbed until the new was running ok, so I did a new CumulusMX install on the PC C:\CumulusMX-UI and copy in the working CumulusMX \data and \Reports folders and Cumulus.ini (edited the [FTP Site} Directory=public_html/cumulusmx in Cumulus.ini so that the FTP would go to the new website subfolder).
Also added that new subfolder on website public_html/cumulusmx
I then did the webfiles FTP to that website folder and run the new C:\CumulusMX-UI\CumulusMX.exe
I now had a clean CumulusMX install and updating to website with the original Cumulus template.

After this was working correctly, then began to do the UIMX changes. This way I could test without concern on the previous working site, just had to stop one CumulusMX.exe before running the other.

When all was done I had both www.komokaweather.com/cumulusmx/index.htm and www.komokaweather.com/cumulusmx/index.php working all from the same website location and maybe this is why I don't have any "include" issue.

Unless there are other more significant modifications you've made, I would expect that it would work correctly with modified xxxxT.htm files like you appear to be using.

Enjoy,
Paul

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 19 May 2020 7:31 pm
by sfws
content deleted

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 19 May 2020 8:42 pm
by Gregorean
Hello @sfws, your suspicion was right about ''include'', in the php.ini I saw that ''allow_url_fopen'' is On'' but ''allow_url_include'' is Off. I set and saved that On and restarted NGINX/PHP but no result. :cry:
I haven't figured out how to activate it yet, even the now deactivated ;include_path = ".:/usr/share/php"; path I need to specify is not quite clear to me yet.
I'm not very familiar with this matter as I already pointed out.

But thanks anyway for your help so far,

Sjaak.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Tue 19 May 2020 10:17 pm
by BCJKiwi
Hi,

Need a CLEAR picture of the entire path structure and files, not just small parts.

Without this clear picture am unable to assist.

All the files need to be in place, not just a test file.
Also need a link to this path so can see what is happening in the site.

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Posted: Wed 20 May 2020 6:49 am
by sfws
content deleted