Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Ajaxed index-page

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

Moderator: daj

arthurhh
Posts: 63
Joined: Thu 18 Sep 2008 8:40 pm
Weather Station: Davis VP pro 2
Operating System: Win7
Location: Tokoroa South Waikato New Zealand
Contact:

Re: Ajaxed index-page

Post by arthurhh »

Its a short work week in NZ this week, and I lose another day to travel so I won't have much time to play this week.

Thanks for the tips, it saves me a bit of pulling it apart to find out how it works then adjusting to my pages.
http://tokoroa.dyndns.org/ Main Site

IT Fixer
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Ajaxed index-page

Post by Paul C »

Jozef.

Every time we update Cumulus with a new version will we have to reload the indexT file into the "web" folder of cumulus ?

Does the .js file need uploading aswell ?

tks
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster
Contact:

Re: Ajaxed index-page

Post by pinto »

Paul C wrote:Jozef.

Every time we update Cumulus with a new version will we have to reload the indexT file into the "web" folder of cumulus ?

Does the .js file need uploading aswell ?

tks
.js file upload is not needed

Now, for the easy way of doing this, steve created a place to do uploads of individual files

What you can do is
1. untick "include standart files in the internet setup of Cumulus
2. use the boxes on the same screen to upload all 6 files.
(number 1 your new indexT.htm file you have in a folder somewhere on your PC, not in the web-folder)
I put my templatefiles inside Cumulus/my_templates/
(number 2 to 6 the other files from inside your "web" folder of Cumulus)

Doing thing this way, you can safely update Cumulus without overwriting the IndexT.htm-file every time you do an upgrade
Jozef
Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Ajaxed index-page

Post by steve »

I've just done a change which will hopefully make this a bit easier.

Currently, Cumulus uploads the extra files, then the standard files, then the images. I've changed it so that it does the extra files last. This means that you can still upload the standard files, then over-write any that you have changed. It just saves putting the details in of all the unchanged ones, if you've only changed one or two.

Don't forget that with the 'extra files', the file names don't change, so you probably don't want to call your own file indexT.htm!

Steve
User avatar
Super-T
Posts: 906
Joined: Tue 09 Sep 2008 3:37 am
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Ajaxed index-page

Post by Super-T »

As a matter of interest, is there any way of forcing the creation of the htm files from the template files rather than wait for the programme every time I edit the htm templates?
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster
Contact:

Re: Ajaxed index-page

Post by pinto »

Click in the menu: File ~~>Web Update
Jozef
Image
User avatar
Super-T
Posts: 906
Joined: Tue 09 Sep 2008 3:37 am
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Ajaxed index-page

Post by Super-T »

Yes, I know about that but when I was uploading, it didn't appear to update the files as the time and date remained the same after refresh.
If I deleted the non-template files, then uploaded, the files were created correctly.
I have to do more research, when time allows, to see if there was a problem. :-)
Bob
Posts: 67
Joined: Thu 04 Sep 2008 12:03 pm
Weather Station: Watson W-8681
Location: Whixall, Shropshire.
Contact:

Re: Ajaxed index-page

Post by Bob »

This is a terrific improvement over the standard index page...well done.

I love the way it flashes red for 2 seconds if a value changes....Steve that would be a nice addition to the main Cumulus console (the flashing if change bit)

Cheers

Bob
Bob

Image
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: Ajaxed index-page

Post by gwheelo »

Pinto -

Your "Trend" page is terrific. I would very much like to incorporate your style for my "Trends" page. What is required to reproduce the graphs and their thumbnails. Does your script require any thing more than "AjaxCumulus.js" and "realtime.txt" to function.

GW
Image
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster
Contact:

Re: Ajaxed index-page

Post by pinto »

gwheelo wrote:Pinto -

Your "Trend" page is terrific. I would very much like to incorporate your style for my "Trends" page. What is required to reproduce the graphs and their thumbnails. Does your script require any thing more than "AjaxCumulus.js" and "realtime.txt" to function.

GW
"Trend" page needs no AjaxCumulus.js

You need Kevins TNETWeather jpgraphs package(donate), if you have that working, you have to find out how to make those tumbnails and graphs using a shell-script and ImageMagic(you need SSH login, first ask your ISP if you can use ImageMagic)
Then start a new topic, and I try to help you (it is not easy)
Jozef
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Ajaxed index-page

Post by Paul C »

Jozef.

I agree you have done a good job with the graphs incorporating them into Steve template. I particularly like the rainfall and Max/Min graph.
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster
Contact:

Re: Ajaxed index-page

Post by pinto »

Paul C wrote:Jozef.

I agree you have done a good job with the graphs incorporating them into Steve template. I particularly like the rainfall and Max/Min graph.
Thanks for the complements :)
For the day by day rain and the Max/Min graph I did setup a little script on my system to send the last 31 lines from dayfile.txt to the server(and create the graphs on the server)
Jozef
Image
User avatar
aadal
Posts: 168
Joined: Tue 04 Nov 2008 8:07 pm
Weather Station: WH 1080
Location: Skodje
Contact:

Re: Ajaxed index-page

Post by aadal »

pinto wrote:fact is, it is only some javascript that is calling the realtime.txt on the server every 5 seconds
and only updates the values without refreshing the page itself

This indexT.htm file is the original file, modified are only the tags used in the page

~~> I have not seen css in this file, thought it was in weatherstyle.css
this file uses the weatherstyle.css file you have on your server

BACKUP BACKUP BACKUP !!!!

Like to make link on banner how?
  • Windows Vista
Image

Image
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster
Contact:

Re: Ajaxed index-page

Post by pinto »

You want this ?

Image

Code: Select all

[url=http://www.aadal.biz/~weather/index.htm][img]http://www.aadal.biz/~weather/banner.php[/img][/url]
Jozef
Image
Fox_Of_The_Wind
Posts: 13
Joined: Sat 29 Nov 2008 1:50 pm
Weather Station: Davis Vantage Pro 2
Location: De Soto Wisconsin USA
Contact:

Re: Ajaxed index-page

Post by Fox_Of_The_Wind »

I just updated Cumulus and now my auto updateing index page is no longer updateing. Do I have to download the files from this thread again?

Looks like I did. It is auto updateing again. This is so neat!
Image
Post Reply