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

Merging today/yesterday and this month/year webpages

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

Moderator: daj

Matt.j5b
Posts: 512
Joined: Mon 28 Nov 2011 2:13 am
Weather Station: Davis VP2/ WLL with DFARS
Operating System: RPi Raspbian (Buster)
Location: Ferny Grove, Brisbane, Australia
Contact:

Merging today/yesterday and this month/year webpages

Post by Matt.j5b »

I wish to merge the data on the today and yesterday pages into one page as today/yesterday and also with this month and this year. I have seen a few here have done that. While I should be fine creating the file, I just wondering should I edit the today file for example and remove the link for the yesterday, or should I just add the file under the files tab of the internet settings like I have donw with the about the manual data pages. How should this work. I would appreciate advice regarding this.
Regards, Matt of Brisbane, Australia
Ferny Grove Weather
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: Merging today/yesterday and this month/year webpages

Post by beteljuice »

You could modify one of the existing xxxxT.htm files incorporating the content of the others, OR you could create a new template file altogether !

If you modify an existing one then you won't need to 'declare' it as a file to process and upload ;)

As long as you have 'include standard files' checked, ALL the default files MUST be present and will be uploaded - even if you don't want them all, so make sure you remove all the menu links to the pages you don't want seen.

Next time you update the Cumulus PROGRAM, make sure that you DON'T overwrite your modified file. (Any new templates will still be available in another folder)
Image
......................Imagine, what you will KNOW tomorrow !
Matt.j5b
Posts: 512
Joined: Mon 28 Nov 2011 2:13 am
Weather Station: Davis VP2/ WLL with DFARS
Operating System: RPi Raspbian (Buster)
Location: Ferny Grove, Brisbane, Australia
Contact:

Re: Merging today/yesterday and this month/year webpages

Post by Matt.j5b »

Understand most of that.
beteljuice wrote:If you modify an existing one then you won't need to 'declare' it as a file to process and upload
This bit I don't quite understand.

So with the standard files they all have to be uploaded whether or not I want them all. I can't just delelte the xxxT.hml from the web folder for the ones I don't want. is that right.
Regards, Matt of Brisbane, Australia
Ferny Grove Weather
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: Merging today/yesterday and this month/year webpages

Post by beteljuice »

Correct :clap:
Image
......................Imagine, what you will KNOW tomorrow !
Matt.j5b
Posts: 512
Joined: Mon 28 Nov 2011 2:13 am
Weather Station: Davis VP2/ WLL with DFARS
Operating System: RPi Raspbian (Buster)
Location: Ferny Grove, Brisbane, Australia
Contact:

Re: Merging today/yesterday and this month/year webpages

Post by Matt.j5b »

beteljuice wrote:If you modify an existing one then you won't need to 'declare' it as a file to process and upload
What do you mean by this.
Regards, Matt of Brisbane, Australia
Ferny Grove Weather
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: Merging today/yesterday and this month/year webpages

Post by beteljuice »

If you modify one of the 'standard' file names ie. don't change the name !
Then it will continue to be processed and uploaded as a 'standard' file (with the same name).

No need to put it the include files list.
Image
......................Imagine, what you will KNOW tomorrow !
Matt.j5b
Posts: 512
Joined: Mon 28 Nov 2011 2:13 am
Weather Station: Davis VP2/ WLL with DFARS
Operating System: RPi Raspbian (Buster)
Location: Ferny Grove, Brisbane, Australia
Contact:

Re: Merging today/yesterday and this month/year webpages

Post by Matt.j5b »

OK, thanks very much, I will see how I will go.
Regards, Matt of Brisbane, Australia
Ferny Grove Weather
Image
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Merging today/yesterday and this month/year webpages

Post by steve »

You can stop any of the standard files being processed and uploaded by deleting them from the web folder, yes. Cumulus will just log an error to the diags files saying that it can't find the file(s).
Steve
Matt.j5b
Posts: 512
Joined: Mon 28 Nov 2011 2:13 am
Weather Station: Davis VP2/ WLL with DFARS
Operating System: RPi Raspbian (Buster)
Location: Ferny Grove, Brisbane, Australia
Contact:

Re: Merging today/yesterday and this month/year webpages

Post by Matt.j5b »

Thanks again Steve. That sounds good because if I don't want it on the site, there not point uploading. I will it give thought and I was also thinking of instead by of that, I could untick the standard files and list the ones I want. Another way could to use the unwanted files for a different page than what is intended, for example I use the today for today and yesterday and use yesterday for a new page. Or I blank out the page so it stills uploads, but remove the link on the menu.
Regards, Matt of Brisbane, Australia
Ferny Grove Weather
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: Merging today/yesterday and this month/year webpages

Post by beteljuice »

@ Steve
You can stop any of the standard files being processed and uploaded by deleting them from the web folder, yes
Is that a change I missed ?

I thought it used to 'fold' if a 'standard' template were not available ?
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Merging today/yesterday and this month/year webpages

Post by steve »

beteljuice wrote:I thought it used to 'fold' if a 'standard' template were not available ?
Not that I'm aware of, although I might have forgotten that I changed it to cope!
Steve
Matt.j5b
Posts: 512
Joined: Mon 28 Nov 2011 2:13 am
Weather Station: Davis VP2/ WLL with DFARS
Operating System: RPi Raspbian (Buster)
Location: Ferny Grove, Brisbane, Australia
Contact:

Re: Merging today/yesterday and this month/year webpages

Post by Matt.j5b »

I decided in the end to leave the standard files as they are and still upload the surplus yesterday page but remove the link to this unrequired page as the today and yesterday is now on the today page and I will leave the extra files for pages that are not part of the standard pages. I just got to do the same with this month and year some other day.
Regards, Matt of Brisbane, Australia
Ferny Grove Weather
Image
radelrama
Posts: 12
Joined: Fri 09 Mar 2012 10:42 am
Weather Station: Ws-0101
Operating System: Windows 7 x64
Location: Sierre

Re: Merging today/yesterday and this month/year webpages

Post by radelrama »

arrrg, I was awaiting a download link.... Well, did the job and started good old Notepad.exe :-)

todayT.htm = merged today and yesterday
thismonthT.htm = merged month and year

didn't change the links for the pages; if you apply this mod, you'll anyway have to change them in all template files...

enjoy!
You do not have the required permissions to view the files attached to this post.
Matt.j5b
Posts: 512
Joined: Mon 28 Nov 2011 2:13 am
Weather Station: Davis VP2/ WLL with DFARS
Operating System: RPi Raspbian (Buster)
Location: Ferny Grove, Brisbane, Australia
Contact:

Re: Merging today/yesterday and this month/year webpages

Post by Matt.j5b »

I done this a few days ago, and it is easy to do. I like to take longer and do this properly by changing the link to reflect the changes

eg today becomes today/yesterday
yesterday link removed
this month becomes this month/year
this year link removed

I use Notepad++ so I copy and paste the link code onto all pages very easily

I didn't know you were waiting but its not hard.
Regards, Matt of Brisbane, Australia
Ferny Grove Weather
Image
apple8
Posts: 129
Joined: Sun 21 Aug 2011 2:26 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Sydney. Australia
Contact:

Re: Merging today/yesterday and this month/year webpages

Post by apple8 »

To help keep me off the streets I've been updating my website and found this thread about merging Today and Yesterday pages that I have been thinking about for a while.

I used the file attachment in the thread and although it work quite well Page Link I would like to change the column spacings so columns 2 and 3 and 4 and 5 are closer together and 3 and 4 further apart.

How can I do this in a reasonably straight forward way?
Post Reply