Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.11.4 (build 3133) - 25 May 2021 (please see announcement regarding releases since 3.5.0)
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

How to add a new page in CumulusWeb?

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

Moderator: daj

Post Reply
User avatar
kocher
Posts: 224
Joined: Sat 19 Apr 2014 7:57 pm
Weather Station: Davis Vantage Pro2+
Operating System: Windows 10
Location: San Sebastian - Spain
Contact:

How to add a new page in CumulusWeb?

Post by kocher »

Greetings to all.
Although I was afraid to update to the latest version of cumulusMX, finally, today I have encouraged myself and I have done it,

The question is:

I have created a new page in \webfiles, called: "webcam.htm"
I have uploaded it to my server:

http://kocher.es/cumulusMX/webcam.htm

I have edited 2 lines of the file: \js\"setpagedata.js" m in which I have added the link to the page webcam.htm:

Code: Select all

<a href="webcam.htm" data-cmx-webcamlink class="w3-bar-item w3-btn w3-theme-hvr at-slim w3-hide-small w3-hide-medium w3-hide webcamlink"> Webcam </a> '+'


Well, when I press the "webcam" tab in the main menu, I get the image in a new browser tab when, what I want is to integrate the image on the same page.


This means that I am doing something wrong :groan:
Last edited by kocher on Tue 09 Mar 2021 6:27 am, edited 2 times in total.
Image

User avatar
ConligWX
Posts: 1266
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2 Plus w/DFARS
Operating System: Ubuntu 20.04.2 LTS - NUC
Location: Bangor, NI
Contact:

Re: How to add a new page in CumulusWeb?

Post by ConligWX »

change:

Code: Select all

	'<a href="webcam.htm" data-cmx-webcamlink class="w3-bar-item w3-btn w3-theme-hvr at-slim w3-hide-small w3-hide-medium w3-hide webcamlink">Webcam</a>' +
to this:

Code: Select all

	'<a href="webcam.htm" class="w3-bar-item w3-btn w3-theme-hvr at-slim w3-hide-small w3-hide-medium">Webcam</a>' +
the URL needs to be similar as to the gauges/today/index.htm code. its a web page you are calling not the webcamlink
Regards Simon

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

User avatar
kocher
Posts: 224
Joined: Sat 19 Apr 2014 7:57 pm
Weather Station: Davis Vantage Pro2+
Operating System: Windows 10
Location: San Sebastian - Spain
Contact:

Re: How to add a new page in CumulusWeb?

Post by kocher »

Greetings Simon

Thanks to you, now it works perfectly

Many thanks :clap:

Javier
Image

User avatar
ConligWX
Posts: 1266
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2 Plus w/DFARS
Operating System: Ubuntu 20.04.2 LTS - NUC
Location: Bangor, NI
Contact:

Re: How to add a new page in CumulusWeb?

Post by ConligWX »

glad it worked. had done this for my site a few days ago.
Regards Simon

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

User avatar
kocher
Posts: 224
Joined: Sat 19 Apr 2014 7:57 pm
Weather Station: Davis Vantage Pro2+
Operating System: Windows 10
Location: San Sebastian - Spain
Contact:

Re: How to add a new page in CumulusWeb?

Post by kocher »

Indeed, the code for the webcam.htm page was taken from an example that you had published.

I am doubly grateful :D

Javier
Image

User avatar
beteljuice
Posts: 3212
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: How to add a new page in CumulusWeb?

Post by beteljuice »

@Javier

Now you are fiddling with menu code you may like viewtopic.php?f=14&t=19158 ;)

I know you like my playthings ....
Image
......................Imagine, what you will KNOW tomorrow !

Post Reply