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

Reworked default websites

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

Moderator: daj

SamiS
Posts: 383
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Reworked default websites

Post by SamiS »

NeilThomas wrote: Sun 31 Dec 2023 5:54 pm Actually, you can run both together as all pages in the supplied default website use the file extension ‘.htm’. The alternative uses the full .html extension. The only issue would be where you send the data. The supplied default website expects it in the same folder as the pages, whereas you can choose an alternative folder for my alternative site. You will need to edit page-manager.js to set the variable for the data source to the default location, I.i., the same folder as the pages.
Ah yes, I was thinking about where the json data is uploaded, and that can be only one location. But if your alternate website allows user to specify where the data is found, wouldn't it be possible to upload data and default pages to one folder (eg wwwroot/htm), and specify that as data file location for alternate site located to another folder (eg wwwroot/html)? Of course there are probably some server-side restrictions when moving path up towards root, so maybe the easiest would be something like placing default site to wwwroot and alternate site to wwwroot/new or something similar?

Or are all the pages and other files named so that there would be no conflicts if they are placed on the same folder? If it would be so, one could just place all in the same folder and access default site like www.example.com/index.htm and alternate site like www.example.com/index.html ?
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Reworked default websites

Post by flort »

Hi Tony,

It would appear you have not uploaded the contents of the js folder to your web server. If I search for page-manager.js, ws-extra.js, or my-menu.js they are nowhere to be found. These files are in addition to the ones that the default website uses.

Regards,
Trevor
bumpy
Posts: 105
Joined: Fri 24 Sep 2010 12:27 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Tiverton, Devon

Re: Reworked default websites

Post by bumpy »

Hello Trevor
I have checked the server and the three.js files (my-menu, ws-extra and page-manager) are indeed on the server. They are found in public_html folder which has 5 subfolders (css, images, js, lib and Reports). Below these subfolders are over 100 files which include my-menu.js,ws-extra.js and page-manager.js.
What I have discovered is that whilst these files are on the server I can only find 2 of them in my Cumulus Directory structure i.e. ws-extra.js and page-manager.js. The file my-menu.js is missing. I have tried to find it but without success. Obvisiously this file is needed but where do I find/download it?
Tony
bumpy
Posts: 105
Joined: Fri 24 Sep 2010 12:27 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Tiverton, Devon

Re: Reworked default websites

Post by bumpy »

Now managed to find and download the missing my-menu.js file.
Tony
User avatar
ConligWX
Posts: 1634
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04 LTS
Location: Bangor, NI
Contact:

Re: Reworked default websites

Post by ConligWX »

Neil

The Alternate Default Website from here: https://www.cumuluswiki.org/a/Default_W ... lt_Website

has an issue with displaying the wrong gauges.js version on the the gauges.html page. The latest gauges.js file (2.7.7 at time of writing and part of the CMX distribution)

gauges.html line 166 shows:

Code: Select all

<p class="w3-center w3-small">Scripts by Mark Crossley - version 2.7.6<br>Gauges drawn using Gerrit Grunwald's steelseries javascript library,<br> wind rose drawn using rgraph</p>
however CMX now uses ver 2.7.7

the line 166 should use this code to pull the correct version of gauges.js file.

Code: Select all

<p class="w3-center w3-small">Scripts by Mark Crossley - version <span id="scriptVer"></span><br>Gauges drawn using Gerrit Grunwald's steelseries javascript library,<br> wind rose drawn using rgraph</p>
the default gauges.htm within webfiles folder uses this code.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
NeilThomas
Posts: 276
Joined: Thu 11 Oct 2012 9:51 am
Weather Station: Davis Vantage Pro2
Operating System: Raspberry Pi 4
Location: Gloucester
Contact:

Re: Reworked default websites

Post by NeilThomas »

ConligWX wrote: Fri 05 Jan 2024 10:39 pm Neil

The Alternate Default Website from here: https://www.cumuluswiki.org/a/Default_W ... lt_Website

has an issue with displaying the wrong gauges.js version on the the gauges.html page. The latest gauges.js file (2.7.7 at time of writing and part of the CMX distribution)

gauges.html line 166 shows:

Code: Select all

<p class="w3-center w3-small">Scripts by Mark Crossley - version 2.7.6<br>Gauges drawn using Gerrit Grunwald's steelseries javascript library,<br> wind rose drawn using rgraph</p>
however CMX now uses ver 2.7.7

the line 166 should use this code to pull the correct version of gauges.js file.

Code: Select all

<p class="w3-center w3-small">Scripts by Mark Crossley - version <span id="scriptVer"></span><br>Gauges drawn using Gerrit Grunwald's steelseries javascript library,<br> wind rose drawn using rgraph</p>
the default gauges.htm within webfiles folder uses this code.
Hi

I have just downloaded the latest beta version of the software and the gauges version is stil 2.7.6 on the Interface but 2.7.7 on the default website. I have not used the webtag on the alternative default website. This will be corrected in later build.

Neil
Neil Thomas
website: oaktreewebs.co.uk | Davis Vantage Pro II | CumulusMX, Raspberry Pi 4 | MX V4 build 4019
bumpy
Posts: 105
Joined: Fri 24 Sep 2010 12:27 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Tiverton, Devon

Re: Reworked default websites

Post by bumpy »

Good morning
I am having continuing problems in getting the Noaa reports to load to my website: www.farleighmeadows.co.uk. The website is working OK with all pages, except Reports, updating regularly. I did have a problem with the Records page but resolved this and it's now working well.

I have checked that in the server folder public_html there is a sub-folder Reports. This contains individual Noaa files from 2010 until now. When I open the individual files, the tabular data is there for the individual months and years. I am assuming that the data path to access these files is simply /Reports/ and this is the path that is shown in the CumulusMX webfiles folder and also the js folder. I have also tried the paths Reports/ and /public_html/Reports but this makes no difference.

The Noaa reports pages can be accessed and are uptodate on the basic dashboard and the Alternative Interface dashboard pages. This being so I am puzzled why the Default website doesn't show the data. When I look at the default website page it clearly shows that it is trying to access the data because at the bottom of the page it shows that the page data was updated within the last few minutes.

I am obviously missing something - can anyone suggest how to get over this problem.

Many thanks,

Tony
NeilThomas
Posts: 276
Joined: Thu 11 Oct 2012 9:51 am
Weather Station: Davis Vantage Pro2
Operating System: Raspberry Pi 4
Location: Gloucester
Contact:

Re: Reworked default websites

Post by NeilThomas »

bumpy wrote: Tue 09 Jan 2024 11:21 am Good morning
I am having continuing problems in getting the Noaa reports to load to my website: www.farleighmeadows.co.uk. The website is working OK with all pages, except Reports, updating regularly. I did have a problem with the Records page but resolved this and it's now working well.

I have checked that in the server folder public_html there is a sub-folder Reports. This contains individual Noaa files from 2010 until now. When I open the individual files, the tabular data is there for the individual months and years. I am assuming that the data path to access these files is simply /Reports/ and this is the path that is shown in the CumulusMX webfiles folder and also the js folder. I have also tried the paths Reports/ and /public_html/Reports but this makes no difference.

The Noaa reports pages can be accessed and are uptodate on the basic dashboard and the Alternative Interface dashboard pages. This being so I am puzzled why the Default website doesn't show the data. When I look at the default website page it clearly shows that it is trying to access the data because at the bottom of the page it shows that the page data was updated within the last few minutes.

I am obviously missing something - can anyone suggest how to get over this problem.

Many thanks,

Tony
Hi Tony

The correct entry in your CumulusMX Report Settings for NOAA Reports should be something like: /public_html/data/Reports. This is because CumulusMX assumes that the Reports folder is a subfolder of the location for your data - not the root of the website.

Neil.
Neil Thomas
website: oaktreewebs.co.uk | Davis Vantage Pro II | CumulusMX, Raspberry Pi 4 | MX V4 build 4019
User avatar
ConligWX
Posts: 1634
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04 LTS
Location: Bangor, NI
Contact:

Re: Reworked default websites

Post by ConligWX »

bumpy wrote: Tue 09 Jan 2024 11:21 am Good morning
I am having continuing problems in getting the Noaa reports to load to my website: www.farleighmeadows.co.uk. The website is working OK with all pages, except Reports, updating regularly. I did have a problem with the Records page but resolved this and it's now working well.

your website is not ok.

when I type in https://www.farleighmeadows.co.uk it is redirected to https://www.farleighmeadows.co.uk/index.html this page is somehow totaly screwed up.
Screenshot 2024-01-09 212915.png
if you are using apache then possible you should have a httpd.conf file and the listing of the directory index is wrong.

mine is like so:

Code: Select all

<IfModule dir_module>
    DirectoryIndex index.php index.htm index.html
</IfModule>
this means my website conligwx.org directs firstly to index.php if that does not exist then loads index.htm and so on.

I am guessing yours is somehow directly loading index.html and not the correct 1st entry of index.htm
You do not have the required permissions to view the files attached to this post.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
User avatar
ConligWX
Posts: 1634
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04 LTS
Location: Bangor, NI
Contact:

Re: Reworked default websites

Post by ConligWX »

seems your missing https://www.farleighmeadows.co.uk/js/noaarpts.js also.

Screenshot 2024-01-09 213937.png


Did you upload ALL of the contents of "webfiles" folder in the CMX archive?
You do not have the required permissions to view the files attached to this post.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
bumpy
Posts: 105
Joined: Fri 24 Sep 2010 12:27 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Tiverton, Devon

Re: Reworked default websites

Post by bumpy »

Hello Neil
Apologies for further contact but the Default website Reports pages is still not loading data. The page itself is updating as evidenced by the line at the bottom of the page 'Page data updated 10/01/2024 15:16:00'.
I am confused by your comment that Cumulus 'assumes' that the Reports folder is a subfolder of the data folder. My Reports folder was one of several folders within CumulusMX. Yesterday, having seen Neil's comment I moved the Reports folder to the Data folder so that it became a subfolder of the Data folder. This morning I noticed that Cumulus has automatically generated a new Reports folder and an update file within it. On the basis that the Reports subfolder in the Data folder will now not update I have deleted the Reports subfolder and merged the contents with the new Reports folder created today. This folder now contains all the Noaa reports from the start of my Cumulus in 2010.
I have tried all combinations to create the data path but singularly failed. The Alternative Interface and 'normal' dashboards all upload and display correctly with the path public_html/Reports.
All Noaa reports are on the server in a sub folder Reports in the main public_html folder

Hello Simon you have suggested that the file js/noaareport/js is missing. I have checked the server and the file is there.
Here are the first few lines of text ' noaarpts.js ( ASCII text )
/* ----------------------------------------------------------
* noaarpts.js
* Last modified: 2021/07/10 13:19:42
* Populates the dropdown menus using the records began date
*
* Requires jQuery
* ----------------------------------------------------------*/

let rptPath = 'Reports/'; // Your path should have a trailing "/", eg. 'Reports/'
let startYear, endYear;
let startMonth, endMonth;
let rptAvail = {};

if (rptPath.length && rptPath.slice(-1) !== '/')
rptPath += '/';

In view of the suggestion that possibly not all files etc are on the server. I have reloaded the webfiles folder to the server but this has made no difference. The Default website continues to update correctly with the exception of the lack of data on the Reports tag. The page itself continues to load as shown in the first line above.

I am now at a loss what to do as I am clearly not IT conversant with progamming terms and suchlike!

Tony
User avatar
PaulMy
Posts: 3852
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: Reworked default websites

Post by PaulMy »

Hi,
URL https://www.farleighmeadows.co.uk/index.htm[/url] displays correctly, but not Reports.
URL https://www.farleighmeadows.co.uk/index.html and does not display correctly which usual ... YR2024.txt and https://www.farleighmeadows.co.uk/Repor ... MO0124.txt
URL https://www.farleighmeadows.co.uk/js/noaarpts.js shows file not found.

I suggest you do a new full upload of the CumulusMX/webfiles content to your website to have the index.htm page Reports display (CumulusMX default). Then onto the index.html.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
ConligWX
Posts: 1634
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04 LTS
Location: Bangor, NI
Contact:

Re: Reworked default websites

Post by ConligWX »

PaulMy wrote: Wed 10 Jan 2024 7:18 pm
URL https://www.farleighmeadows.co.uk/js/noaarpts.js shows file not found.

I suggest you do a new full upload of the CumulusMX/webfiles content to your website to have the index.htm page Reports display (CumulusMX default). Then onto the index.html.

Enjoy,
Paul
i think i'm having a deja vu moment :lol:
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
griffo42
Posts: 231
Joined: Thu 10 Dec 2015 6:41 am
Weather Station: Davis Vantage Pro2
Operating System: Win 11 Home
Location: Brisbane, Queensland, Australia
Contact:

Re: Reworked default websites

Post by griffo42 »

Could someone please tell me the javascript file that I have to edit to get the highlighted entry in the attachment which shows data for the Month of January 2024.
Screenshot 2024-01-11 161711.png
My Dashboard shows the data (highlighted) as:
Screenshot 2024-01-11 162749.png

Best wishes
You do not have the required permissions to view the files attached to this post.
Keith
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
Image
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Reworked default websites

Post by flort »

Hi Keith,

You have an error in your records.js file. On line 382 you have the following:

Code: Select all

$("[data-cmxdata='HourlylyRainHT']").html( ' at ' + cmxData.MonthHourlyRainHT + ' on ' + cmxData.MonthHourlyRainHD);
It should read:

Code: Select all

$("[data-cmxdata='HourlyRainHT']").html( ' at ' + cmxData.MonthHourlyRainHT + ' on ' + cmxData.MonthHourlyRainHD);
Regards,
Trevor
Post Reply