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 4018) - 28 March 2024

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

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Post by Gregorean »

Hi Brian and @sfws, first my screenshot was too small to get my whole tree structure on 1 page, but if you look left and right at the top there is the local and server path, thought I was clear but apparently will not try to clarify it yet.
@Brian, the infophp.php test file was meant to indicate that my cumulusmx UIMX subdirectory works, only not yet with the current CumulusMX PHP php files.
That's the problem that ''Include'' apparently doesn't work yet and therefore the uploaded php files are not visible.

I will try to indicate the structure I have in the Extra Web Files then the structure might be clear.

The 4 files I upload to the root of my webserver are set this way:

…………………………... Local cumulusmx…………………………………………………………………………………….server root...………………….
/home/debian/CumulusMX/web/realtime-xMXT.txt………. >>>ftp upload to >>> /var/www/html/cumulusmx/realtime-xMX.txt
/home/debian/CumulusMX/web/realtimetagsMXT.php……. >>> ftp upload to >>> /var/www/html/cumulusmx/realtimetagsMX.php
/home/debian/CumulusMX/web/CUtagsMXT.php………….. >>>ftp upload to>>> /var/www/html/cumulusmx/CUtagsMX.php
/home/debian/CumulusMX/web/recordsMXT.js ……. >>>ftp upload to>>> /var/www/html/cumulusmx/recordsMX.js

I also put all other files in 2 folders (webmx and webfilesmx) exactly as you described in the how to.

Furthermore I don't manage to switch ''allow_url_include= Off'' to On in the php.ini, no matter what I do, I probably have to specify the path ''include_path = / "
I myself thought that ''include_path = /var/www/html/cumulus/ '' should be filled in there because all the UIMX files are in the cumulusmx directory, is my reasoning correct?

One more question, @sfws suggested that in index.php, require_once('CUtags.php'); and require_once('realtimetags.php'); be renamed to
require_once('cumulusmx/CUtags.php'); and require_once('cumulusmx/realtimetags.php'); would that ''include'' the relevant files or is this not an option?
If there are any more questions, I will hear them.

Thank you in advance,

Sjaak.
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
User avatar
PaulMy
Posts: 3777
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Post by PaulMy »

This is likely not your most important issue but from your post:

The 4 files I upload to the root of my webserver are set this way:
…………………………... Local cumulusmx…………………………………………………………………………………….server root...………………….
/home/debian/CumulusMX/web/realtime-xMXT.txt………. >>>ftp upload to >>> /var/www/html/cumulusmx/realtime-xMX.txt
/home/debian/CumulusMX/web/realtimetagsMXT.php……. >>> ftp upload to >>> /var/www/html/cumulusmx/realtimetagsMX.php
/home/debian/CumulusMX/web/CUtagsMXT.php………….. >>>ftp upload to>>> /var/www/html/cumulusmx/CUtagsMX.php
/home/debian/CumulusMX/web/recordsMXT.js ……. >>>ftp upload to>>> /var/www/html/cumulusmx/recordsMX.js


However from the HowTo:
Settings
Extra web files
must be used to send the additional data files required.

Note:- /httpdocs/ may be different for your web hoster - use what you use now, or, what your hoster advises.
The settings required are; ! Check your website path details !
LOCAL FILENAME ---> REMOTE FILENAME PROCESS REALTIME FTP UTF8 BINARY END OF DAY
C:\CumulusMX\web\realtime-xMXT.txt ---> httpdocs/mxtest/realtime-x.txt tick tick tick tick notick notick
C:\CumulusMX\web\realtimetagsMXT.php ---> httpdocs/mxtest/realtimetags.php tick tick tick tick notick notick
C:\Cumulusmx\web\CUtagsMXT.php ---> httpdocs/mxtest/CUtags.php tick notick tick tick notick notick
C:\CumulusMX\web\recordsMXT.js ---> httpdocs/mxtest/records.js tick notick tick tick notick notick


Note the difference in remote file rename.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Post by sfws »

Contents deleted
Last edited by sfws on Fri 18 Mar 2022 6:05 pm, edited 1 time in total.
Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Post by Gregorean »

Hi Paul and @sfws thanks for your advice, what Paul writes I've done but ''don't include'' my índex.php websites. I'm getting a bit sad I'm going to manually put in all these include references, it's not the right way but I have to do something anyway. I don't have the knowledge to dig deeper into it, sorry for that.
Either Brian has to be able to do something or the end project will be the end project and I'll keep using the normal CumulusMX even though I really like Brian's layout. I still use his Davis Console on the old site and it works well. :clap:

Greetings Sjaak.
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
BCJKiwi
Posts: 1255
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

Post by BCJKiwi »

As PaulMy has stated,
These need to be set correctly BEFORE you do anything else.

LOCAL FILENAME ---> REMOTE FILENAME PROCESS REALTIME FTP UTF8 BINARY END OF DAY
C:\CumulusMX\web\realtime-xMXT.txt ---> httpdocs/mxtest/realtime-x.txt tick tick tick tick notick notick
C:\CumulusMX\web\realtimetagsMXT.php ---> httpdocs/mxtest/realtimetags.php tick tick tick tick notick notick
C:\Cumulusmx\web\CUtagsMXT.php ---> httpdocs/mxtest/CUtags.php tick notick tick tick notick notick
C:\CumulusMX\web\recordsMXT.js ---> httpdocs/mxtest/records.js tick notick tick tick notick notick

Are these files (with the correct names) actually arriving in the same folder as the one you placed all the "webfiles" files in?

If so, the "includes" should not have to be changed at all.

As previously requested:-
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.
This URL
http://element14.serverthuis.nl/cumulusmx/
delivers a blank page with no error message which is very strange.

This URL
http://element14.serverthuis.nl/cumulus ... time-x.txt
delivers a 404 not found

So it is clear that the files are NOT in the right place
So can you do this please. Help us to help you.
User avatar
PaulMy
Posts: 3777
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Post by PaulMy »

Don't get discouraged...
http://element14.serverthuis.nl/cumulus ... me-xMX.txt exists as does http://element14.serverthuis.nl/cumulusmx/recordsMX.js but seem to be outdated. Whatever upload got them there is therefor the correct path. You also need to set the remote site info in Internet Web/FTP site settings and Web/FTP settings to Auto update Include graph data files, etc.
I also put all other files in 2 folders (webmx and webfilesmx) exactly as you described in the how to.
It looks like the content from \webfilesMX have not yet been FTP to the remote /cumulusmx folder, and that includes index.php. Was that done, and if so perhaps to the wrong folder?

I presume that when the \webfilesMX content has been uploaded then some results would show for http://element14.serverthuis.nl/cumulusmx and then any editing can begin.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
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: CumulusMX and Cumulus1 UI style Multilingual Websites

Post by beteljuice »

Brian wrote:This URL
http://element14.serverthuis.nl/cumulusmx/
delivers a blank page with no error message which is very strange.
Actually, if you view-source you will see just the 'header' content ;)

So something is being partly built.
Image
......................Imagine, what you will KNOW tomorrow !
BCJKiwi
Posts: 1255
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

Post by BCJKiwi »

OK,
That confirms that settings.php exists
settings.php is loaded by index.php
nav_menu.php is there as well
So, presumably the remaining webfiles folder files are also there.

So, when the correctly named data files are delivered to the same folder, everything should work PROVIDED they have NOT been modified!
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: CumulusMX and Cumulus1 UI style Multilingual Websites

Post by beteljuice »

I can see no evidence of ANY <body> type content (nav menu etc), and the <head> is incomplete ...

Code: Select all

<!DOCTYPE HTML>
<html lang="en">
<!-- silveracorn.nz UIMXwebsite Version 1.0.1 -->
<head>
<meta charset="UTF-8">
<meta name="description" content="My weather data" />
<meta name="keywords" content="Cumulus, weather, data, weather station" />
<meta name="robots" content="noindex, noarchive, nofollow, noimageindex, noimageclick" />
<link rel= "shortcut icon" href="./images/favicon.ico" type="image/x-icon"/>
<meta name="theme-color" content="#ffffff"/>
<title>Amersfoort-Nieuwland</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
That's all folks :(
Image
......................Imagine, what you will KNOW tomorrow !
BCJKiwi
Posts: 1255
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

Post by BCJKiwi »

Yes
I can see no evidence of ANY <body> type content (nav menu etc), and the <head> is incomplete
That is what happens when the data files are not loaded - i.e. either not there, or the include has been modified to point to the wrong place.
A blank screen is the result.
Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Post by Gregorean »

Hello everyone, first for Brian my local webserver NGINX uses a much more powerful webserver like Apache, it is the second most used webserver.
I use a BeagleBone black (Texas instruments chipset) linux mini computer, which is similar to the Raspberry Pi 3b, but has the big advantage of a 4 Gb eMMC flash memory in which I have almost my entire operating system including CumulusMX without having to use an extra micro SD card as with the RPI.
The advantage is that I can use almost 1 on 1 the configuration for an RPI, with the only difference that as a user I use 'debian' instead of 'pi'. In all CumulusMX scripts I only changed the paths from ''pi'' to ''debian'' and everything works.

The advantage of using a mini computer is that it can stay on 24/7 due to its very low power consumption, unlike a Windows PC or laptop with a web server.
But apart from that NGINX uses a slightly different configuration than Apache2 which is far too heavy an application to run properly on a mini pc.

Most web hosters use ''httpdocs'' as web root, where you can upload all your files to, but NGINX uses this as webroot:
/var/www/html is the configured location for the default server's document root as configured in /etc/nginx/sites-available/default.

@Brian I understand your confusion about my paths used to upload my files, don't forget I run a local web server and don't depend on a hoster, I have a very fast fiber optic internet connection at home, have a symetric up and download of 1000/1000mbps and can stream as much as I want.
The Netherlands is a leader in terms of cable density, but we live very close together. :?

Having said that, the only difference is that you use ''mxtest'' in the how-to as server folder for me is that ''cumulusmx'' .
The problem is that you see white pages, because there are no html references in the top because include apparently doesn't work here.

If I copy this part as a test from the ''settings.php''

<!DOCTYPE HTML>
<html long="and">
<!-- silveracorn.nz UIMX website Version 1.0.1 -->
<head>
<meta charset="UTF-8">
<meta name="description" content="My weather data" />
<meta name="keywords" content="Cumulus, weather, data, weather station" />
<meta name="robots" content="noindex, noarchive, nofollow, noimageindex, noimageclick" />
<link rel= "shortcut icon" href="./images/favicon.ico" type="image/x-icon"/>
<meta name="theme-color" content="#ffffff"/>
<title>Amersfoort-Nieuwland</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

......... and in the <head> of index.php put you will be able to see my index.php now look:
http://element14.serverthuis.nl/cumulusmx/index.php

Of course there are still some (php included) errors without the php navigation bar the php timezone and the php footer of course, and no data yet but it is now visible. :D
If this would work I could test the files further, now I don't see anything locally and don't really get any further.
I think it's too much fun to give up now.

Sjaak.
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
BCJKiwi
Posts: 1255
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

Post by BCJKiwi »

Well it appears you still do not have any of the Cumulus/web/ data files appearing in the cumulusmx folder.

As it appears you are able to load the webfiles/ files to the webserver, I do not understand why you are unable to get cumulus to load the /web data files Cumulus is processing to the same location.

While I use windows, many others use various forms of 'nix systems and are able to have Cumulus process and upload files as supplied i.e. unmodified (with the correct destination file names as described in the HowTo to the same place the static /webfiles files were uploaded to.

I am sure that once you have these files processed and sent to the right place you will have a working website.
Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Post by Gregorean »

@Brian, that's right I do see data in the web folder he generates so data but only in the 4 files with xxxtmp behind it.
Will take a screenshot of what's in the Cumulus web map, somehow he won't upload it to my webserver.
web.JPG
You do not have the required permissions to view the files attached to this post.
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
BCJKiwi
Posts: 1255
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

Post by BCJKiwi »

OK, progress.

ALL the files with MX and/or T and/or tmp should NOT be there

The source data files xxxxMXT.php/txt are the source files that cumulus processes.
The xxxxMXT.phptmp / txttmp are temporary files after cumulus has processed them awaiting the upload process. These are temporary files and should be ignored. They are not to be sent to the webserver.

The HowTo instructions clearly show the naming conventions to be followed to have cumulus upload the processed files to the webserver.
The destination files should be named as detailed in the HowTo file.

Please carefully study the How To file and follow the upload naming process detailed there exactly.
Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites

Post by Gregorean »

Hello Brian, I'm a little surprised at this answer you wrote
ALL the files with MX and/or T and/or tmp should NOT be there
with emphasis on NOT .

Furthermore wrote you,
'Please carefully study the How To file and follow the upload naming process detailed there exactly
I certainly did, but if I read the how-to correctly (several times) these 4 MXT files have to be in the CumulusMX/web directory to be able to upload them to my webserver or I didn't understand that correctly. :?:
C:\CumulusMX\web\realtime-xMXT.txt ---> httpdocs/mxtest/realtime-x.txt
C:\CumulusMX\web\realtimetagsMXT.php ---> httpdocs/mxtest/realtimetags.php
C:\Cumulusmx\web\CUtagsMXT.php ---> httpdocs/mxtest/CUtags.php
C:\CumulusMX\web\recordsMXT.js ---> httpdocs/mxtest/records.js
For the sake of clarity I also put the 4 MXT files above in a separate folder webmx as you wrote in the how-to.

And copied the rest in a folder webfilesmx in which I can make the necessary changes before I upload them.

I only have 1 web folder where all kinds of .json files are generated, the web folder I first emptied (and made a backup of the old files) before restarting CumulusMX.
Can you tell me where the 4 above mentioned MXT files should be :?:
Maybe I didn't quite get it right after all, hence my question.

I also found something else during the testing which wasn't right that I didn't look at it before :oops: :oops: , I ftp in the normal way in mode ''0. FTP (plain old FTP)'' local and with Extra Web Files that normally goes well and I didn't notice that ftp didn't work. :bash:

I put Fillezilla in position for a moment and to my great surprise I saw that with ''normal'' ftp he couldn't connect to my webserver.
I'm now using ''2. SSH for FTP (SFTP)'' and that works well he is already uploading more files than before but not all of them I need to take a look at.
You wrote
OK progress
indeed I am getting further and further thanks for all kinds of advice.

Greetings Sjaak.
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
Post Reply