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

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 »

Trevor

Thanks very much for your prompt reply to my request. I will have a look at it tomorrow at the earliest when, hopefully, I have a little more time available to do it.

I appreciate your help. I will let you know how I get on. I am a self-taught rank amateur when it comes to programming: I am an accountant by profession!

Best wishes,
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
NeilThomas
Posts: 275
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 »

griffo42 wrote: Sun 03 Dec 2023 11:38 pm @NeilThomas

There is an extra "on" in the rainfall area: see below circled in blue.

Screenshot 2023-12-04 092817.png

It looks to me that records.html is in need of an edit to fix.

Keep up the good work. :D :D
Hi all

The extra 'on's are on lines 171, 179 and 220 of the records.html file. Just remove them but leave a space at the end of the line otherwise there will be no gap between data and time & date.

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 »

Hello

I've encountered a problem! I downloaded the Cumulus Public Dashboard using Neil Thomas' recent zip but I am left with a Dashboard empty of data. I realise that I need to make an adjustment to one line in the ws-extra.js file. So far so good but when I attempt to open the ws-extra file using notepad I get the response that there is an error in the file programme and I am denied access. If I cant amend the file because I am not able to access it, how can I alter the text line that is causing the problem.
Can anyone suggest a solution please?

Tony
www.farleighmeadows.co.uk
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 »

@NeilThomas
In further checking, I have found that the words "in", "on" and "at" are missing at the appropriate places in both the Records for this Year and Records for this Month pages as shown:
Screenshot 2023-12-05 110746.png
Screenshot 2023-12-05 110721.png
As a test and learning exercise for me, I have edited the lines 335 and 338 in records.js (as below) and these seem to achieve the desired result as can be seen in the above Records for this month (December) page above.
Screenshot 2023-12-05 110957.png
There may be a more professional or better way to achieve the looked for result: could you take it from there, please? :D :D

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 Neil,

I just had Developer Tools open and noticed it is throwing up an error on line 94 of ws-extra.js. I haven't seen it cause any issues but you might like to take a look at it.
ws-extra error.jpg
Regards,
Trevor
You do not have the required permissions to view the files attached to this post.
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 »

Help please.
Yet again I need to contact the forum for assistance.
I need to amend the ws-extra.js file with this amendment viz let dataPath = '';
Having accessed the file from Notepad and found Line 13 that needs amending adjusting, I am totally lost whether the amendment is an addition to the original text, a replacement for the whole line or possibly something else. I have tried several combinations but the CumulusMX Public Dashboard remains resolutely empty of any data.
I am obviously going wrong! Can someone enlighten me or perhaps copy me the correct and full text for Line 13?
Many thanks.
Tony
www.farleighmeadows.co.uk
NeilThomas
Posts: 275
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: Wed 06 Dec 2023 11:24 am Help please.
Yet again I need to contact the forum for assistance.
I need to amend the ws-extra.js file with this amendment viz let dataPath = '';
Having accessed the file from Notepad and found Line 13 that needs amending adjusting, I am totally lost whether the amendment is an addition to the original text, a replacement for the whole line or possibly something else. I have tried several combinations but the CumulusMX Public Dashboard remains resolutely empty of any data.
I am obviously going wrong! Can someone enlighten me or perhaps copy me the correct and full text for Line 13?
Many thanks.
Tony
www.farleighmeadows.co.uk
Hi Tony.

Just change the variable to read as shown below:

Code: Select all

let dataPath=''
Note that that is two single quotes not just a double quote. The above then expects to find your data in the same place as your html files.

Neil.
Neil Thomas
website: oaktreewebs.co.uk | Davis Vantage Pro II | CumulusMX, Raspberry Pi 4 | MX V4 build 4019
NeilThomas
Posts: 275
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 »

flort wrote: Wed 06 Dec 2023 11:12 am Hi Neil,

I just had Developer Tools open and noticed it is throwing up an error on line 94 of ws-extra.js. I haven't seen it cause any issues but you might like to take a look at it.

ws-extra error.jpg

Regards,
Trevor
Hi Trevor

I am aware of this but I believe I get it on the default Interface as well. I am not able to access the Interface at the moment so cannot confirm but I believe it its the case. I certainly doesn't seem to cause any issues for me. I'll check later in the week.

Neil
Neil Thomas
website: oaktreewebs.co.uk | Davis Vantage Pro II | CumulusMX, Raspberry Pi 4 | MX V4 build 4019
NeilThomas
Posts: 275
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 »

griffo42 wrote: Tue 05 Dec 2023 1:59 am @NeilThomas
In further checking, I have found that the words "in", "on" and "at" are missing at the appropriate places in both the Records for this Year and Records for this Month pages as shown:

Screenshot 2023-12-05 110746.png
Screenshot 2023-12-05 110721.png

As a test and learning exercise for me, I have edited the lines 335 and 338 in records.js (as below) and these seem to achieve the desired result as can be seen in the above Records for this month (December) page above.
Screenshot 2023-12-05 110957.png

There may be a more professional or better way to achieve the looked for result: could you take it from there, please? :D :D

best wishes
Hi

That is exactly how I resolve this situation as the table is used for all variations of the records and some web tags return the 'at' characters and others don't. It's a hangover from a much earlier version of CumulusMX.

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 »

Hello
Help please before I finally give up the ghost!
I have been trying, unsuccessfully to populate the Alternative Interface website, but unfortunately, all I get are blank template pages with the exception of the gauges.html which updates and displays without problem. This is all the more frustrating as the Cumulus Default website: www.farleighmeadows.co.uk/htm is working perfectly. The two default dashboards, connected via local host and i.p. are updating without problem and the Alternative Interface dashboard is also flawless. When I try to access www.farleighmeadows.co.uk/html, the pages can be found but are empty of data with the exception of gauges which are working.
I believe I have followed the instructions - readme - etc carefully and downloaded the necessary files. I have adjusted the ws-extra.js at line 13 as advised. I have checked the websitedata.json file on the server and this is uploading regularly.
Having spent considerable time trying to resolve this unsuccessfully, I really don't know what to do know.
Can someone offer a possible solution please?
My website is www.farleighmeadows.co.uk
I have tried to attach the latest Mdiags file in case that can throw light on the problem but when I do a message appears HTTP error and the file won't attach.
Any help would be much appreciated.
Tony
freddie
Posts: 2480
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Reworked default websites

Post by freddie »

The alternative interface shouldn't be used on a server that doesn't have MX running on it. It isn't designed to be used on a publicly accessible web server. This is because your station configuration (including usernames, passwords etc.) can then be accessed by anybody.
Freddie
Image
SamiS
Posts: 382
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 »

There is some mixup in the last two messages… So to clarify:

”Alternative Interface” is a replacement for CMX Dashboard, and it is meant to run only in the computer that is running CMX.

”Alternative Website” or ”Reworked website” (that is the discussion in this thread) is a new version of the default website, and it is designed to run on a public webserver just as the original default website.

So @bumpy which one are you actually tring to do?
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
I was rather confused by Freddie's response but it seems I didn't explain correctly and used the wrong terminology. My apologies for the confusion.
What I want to do is to retain the website as it is now ie. the default website run with CMX and also have via the same server the Alternative/Reworked website. The CMX default website works well and I have the pages for the Alternative website but I cannot get data to show on these pages although the gauges pages displays fine.

All I wanted was to have the option of, what from my view, was the choice of a more attractive website. Hopefully this explains things a little more clearly.

Can you offer some advice please?

Tony
SamiS
Posts: 382
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 »

I haven’t setup the alternate website myself, but if I have understood correctly, it is a drop in replacement for the default website, so you cannot run it in parallel with the default one without some tricks. So basically you make a choice which one do you keep feeding data to.

If your old default website uploads go to htm folder, you just change all upload paths on CMX settings to point to the html folder where you have put the alternate website files, and it should start working. But as said before, I have not setup it myself, so I don’t know if it needs some editing of the files regarding reports path etc.

Hopefully someone corrects me if I have wrong info above.
NeilThomas
Posts: 275
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 »

SamiS wrote: Sun 31 Dec 2023 5:06 pm I haven’t setup the alternate website myself, but if I have understood correctly, it is a drop in replacement for the default website, so you cannot run it in parallel with the default one without some tricks. So basically you make a choice which one do you keep feeding data to.

If your old default website uploads go to htm folder, you just change all upload paths on CMX settings to point to the html folder where you have put the alternate website files, and it should start working. But as said before, I have not setup it myself, so I don’t know if it needs some editing of the files regarding reports path etc.

Hopefully someone corrects me if I have wrong info above.
Hi
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.

You can test that both work simply by using either index.htm, for the default site or index.html for the alternative.

Neil.
Neil Thomas
website: oaktreewebs.co.uk | Davis Vantage Pro II | CumulusMX, Raspberry Pi 4 | MX V4 build 4019
Post Reply