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

Website Refresh issues

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

Moderator: daj

Post Reply
M1DUL
Posts: 347
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: Vantage Pro2 Plus Daytime FARS
Operating System: Windows 11 Pro Version
Location: Poole, Dorset UK
Contact:

Website Refresh issues

Post by M1DUL »

Yesterday I have started, to build a Weather website using Cumulus I have noticed that the weather information is not being refreshed automatically.

I have to hit the refresh button. I have noticed that the two wind gauges on the bottom of the gauges tab are being updated automatically.

But not the others Please can you have a look at the website at
http://pooleweather.t35.com/weather/index.htm and see what is wrong?

Here is the ftplog and the realtimeftplog for any errors that you can see for me?

Many Thanks.
You do not have the required permissions to view the files attached to this post.
Mike

OS : Windows 11 Professional
Weather Station : Davis Vantage PRO2 Plus Daytime Far's
Cumulus MX v.3.28.6 build 3283
https://branksomeweather.co.uk/index.htm
User avatar
Jonsey
Posts: 112
Joined: Mon 05 Jan 2009 2:25 am
Weather Station: Fine Offset WH1081
Operating System: Shuttle Xpc SK41, XP Pro SP3
Location: Worsley, Manchester
Contact:

Re: Website Refresh issues

Post by Jonsey »

Hi Michael

There is nothing wrong with your page set-up, found the below info on the net

To make the page reload or refresh itself, we have to use the following code inside the head tag


<meta http-equiv="refresh" content="5" >


The attribute http-equiv="refresh" calls for refresh of the page.

The attribute content="5" sets the time for refresh.

The time after which the page has to reload is set using the content attribute.
Say if you want the page to refresh after 10 seconds interval, set content value to 10.

We would recommend the time of refresh [reloading interval] be above 5 seconds. This is because you have to consider the page loading time.
Dave
Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Website Refresh issues

Post by steve »

Think hard before doing this. Auto-refreshing pages are annoying and very bad for accessibility. W3C guidelines say to avoid if at all possible, and if you decide you must, then don't use "HTTP-EQUIV=refresh", and make sure that what do you allows the user to turn it off.

Steve
User avatar
Jonsey
Posts: 112
Joined: Mon 05 Jan 2009 2:25 am
Weather Station: Fine Offset WH1081
Operating System: Shuttle Xpc SK41, XP Pro SP3
Location: Worsley, Manchester
Contact:

Re: Website Refresh issues

Post by Jonsey »

steve wrote:Think hard before doing this. Auto-refreshing pages are annoying and very bad for accessibility. W3C guidelines say to avoid if at all possible, and if you decide you must, then don't use "HTTP-EQUIV=refresh", and make sure that what do you allows the user to turn it off.

Steve

How else can you do it, I did see something about Java but don't know what you need to do it?

Dave
Image
M1DUL
Posts: 347
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: Vantage Pro2 Plus Daytime FARS
Operating System: Windows 11 Pro Version
Location: Poole, Dorset UK
Contact:

Re: Website Refresh issues

Post by M1DUL »

Thank you Dave & Steve, for the information, at the moment I might just leave it as it is for the time being.
Mike

OS : Windows 11 Professional
Weather Station : Davis Vantage PRO2 Plus Daytime Far's
Cumulus MX v.3.28.6 build 3283
https://branksomeweather.co.uk/index.htm
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Website Refresh issues

Post by steve »

I think techniques like the Ajax solutions are preferable, but it's presumably possible using javascript. I'm afraid I'm not an expert in either!

Steve
ritchie
Posts: 42
Joined: Mon 02 Feb 2009 10:25 pm
Weather Station: WS 1081
Operating System: windows 10
Location: Rieti Italy

Re: Website Refresh issues

Post by ritchie »

You can do it with javascript, but you will need to wrap divs around all of the components that you want to refresh and you will have to read the data from the realtime.txt file - hey that looks like AJAX ;)

Take a look at my posts elsewhere in this forum and see if that method is suitable for you, it is still in early realease stages, and you need to have some experience of web development. But it isn't rocket science. :P
Image
M1DUL
Posts: 347
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: Vantage Pro2 Plus Daytime FARS
Operating System: Windows 11 Pro Version
Location: Poole, Dorset UK
Contact:

Re: Website Refresh issues

Post by M1DUL »

ritchie wrote:You can do it with javascript, but you will need to wrap divs around all of the components that you want to refresh and you will have to read the data from the realtime.txt file - hey that looks like AJAX ;)

Take a look at my posts elsewhere in this forum and see if that method is suitable for you, it is still in early realease stages, and you need to have some experience of web development. But it isn't rocket science. :P
Hi Ritchie, Thank you for the Information I will have a look at your post elsewhere in this forum. & decide what to do.
Mike

OS : Windows 11 Professional
Weather Station : Davis Vantage PRO2 Plus Daytime Far's
Cumulus MX v.3.28.6 build 3283
https://branksomeweather.co.uk/index.htm
Post Reply