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

Not updating every 60s

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

User avatar
ConligWX
Posts: 1630
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Not updating every 60s

Post by ConligWX »

Also Richard

Your noaa reports years. from 2012-2015 dont seem to exist. I cannot load year or months from those dates
Regards Simon

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

Image
User avatar
PaulMy
Posts: 3848
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Not updating every 60s

Post by PaulMy »

try updating your setpagedata.js file!!!! your using an old file!
Hi Simon,
If it is still showing an old file then presume it is a cache issue.
I had updated this morning after I saw Mark's post:
* setpagedata.js v:0.1.0 d:Mar 2021 a:Neil Thomas
* Last modified: 2021/03/22 14:06:42
Should I be making a settings change as well?

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
ConligWX
Posts: 1630
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Not updating every 60s

Post by ConligWX »

PaulMy wrote: Mon 22 Mar 2021 10:43 pm
try updating your setpagedata.js file!!!! your using an old file!
Hi Simon,
If it is still showing an old file then presume it is a cache issue.
I had updated this morning after I saw Mark's post:
* setpagedata.js v:0.1.0 d:Mar 2021 a:Neil Thomas
* Last modified: 2021/03/22 14:06:42
Should I be making a settings change as well?

Enjoy,
Paul
http://www.komokaweather.com/cumulusmxt ... edata.json is dated "update":"21/03/21 6:30:00 AM", and not updating. is cumulusMX running against this website - http://www.komokaweather.com/cumulusmxtest/ ?
Regards Simon

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

Image
User avatar
ConligWX
Posts: 1630
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Not updating every 60s

Post by ConligWX »

http://www.komokaweather.com/cumulusmxt ... agedata.js still old file. are you updating the webserver /js/setpagedata.js or the CumulusMX install?
Regards Simon

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

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: Not updating every 60s

Post by beteljuice »

To see if the data from the JSON is being read every 60s, just <F12> console.
You should get an initial "Data success" message, then it should be repeated every 60s. ;)
Image
......................Imagine, what you will KNOW tomorrow !
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Not updating every 60s

Post by richard_newberry »

Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Not updating every 60s

Post by richard_newberry »

I might use <meta http-equiv="refresh" content="60"> on index.htm its annoying me now.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
User avatar
PaulMy
Posts: 3848
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Not updating every 60s

Post by PaulMy »

Hi Simon,
That is my test site for v3.10.3 and I haven't used that since Mark released b3120. Active sites are:
komokaweather.com/cumulusmx
komokaweather.com/cumulusmxwll

@beteljuice An F12 Console shows Data success setpagedata.js:144 on one and setpagedata.js:147 on the other.
Watching them, nothing has changed for about 20 minutes.
A page reload makes them more current, sometimes.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
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: Not updating every 60s

Post by beteljuice »

@Mark ...

I don't understand 'promises', but you still have references to getPageData() in the setTimeout(s)

I can't get the promise to re-fire - It says it isn't a function. (should it be a new promise ?)

If I remove the 'promise' and make it the function getPageData(), fired in $(document).ready(function() {
Then everything works as expected ...

Question ...
Isn't it false economy to do a page name check ? - what if they make them .php ??
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
ConligWX
Posts: 1630
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Not updating every 60s

Post by ConligWX »

PaulMy wrote: Tue 23 Mar 2021 12:08 am Hi Simon,
That is my test site for v3.10.3 and I haven't used that since Mark released b3120. Active sites are:
komokaweather.com/cumulusmx
komokaweather.com/cumulusmxwll

@beteljuice An F12 Console shows Data success setpagedata.js:144 on one and setpagedata.js:147 on the other.
Watching them, nothing has changed for about 20 minutes.
A page reload makes them more current, sometimes.

Enjoy,
Paul
sounds more like a Apache/PHP cache issue.

however whats your interval set at? your websitedata.json hasnt updated in at least 5 minutes on both folders. 08:15 here yet your json file says "update":"23/03/21 4:05:00 AM", so ten minutes have past and no update.
Regards Simon

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

Image
User avatar
mcrossley
Posts: 12763
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Not updating every 60s

Post by mcrossley »

beteljuice wrote: Tue 23 Mar 2021 2:10 am @Mark ...
I don't understand 'promises', but you still have references to getPageData() in the setTimeout(s)
That is the old script. The script I posted above (also - https://weather.wilmslowastro.com/test/ ... agedata.js), has been fixed. It extracts getPageData() to a separate function again with parameters that is included in the promise.

beteljuice wrote: Tue 23 Mar 2021 2:10 am Question ...
Isn't it false economy to do a page name check ? - what if they make them .php ??
I could argue that then it is no longer the default web site and buyer beware - fiddle and you fix!


Richards page is not updating because it does not have a page name. The href for the index page is just "http://desford-weather.co.uk/" so the test for index.htm fails :(
If you go to Today it does update, and back to Now, then the page href gets populated.

To get around that then the test at line 196 needs to change from...

Code: Select all

		if (pageName == 'index.htm' || pageName == 'today.htm') {
to

Code: Select all

		if (pageName == 'index.htm' || pageName == 'today.htm' || pageName == '') {
On the assumption that only the index.xxx page is ever loaded as the default page.
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: Not updating every 60s

Post by beteljuice »

That is the old script. The script I posted above ...
Doh ...
I saved that in a different place to the one I investigated :oops:

the beteljuice is overtired ;)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 3848
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Not updating every 60s

Post by PaulMy »

Hi Simon,
what's your interval set at? your websitedata.json hasn't updated in at least 5 minutes on both folders. 08:15 here yet your json file says "update":"23/03/21 4:05:00 AM", so ten minutes have past and no update.
My interval is 5 minutes, and I often check my remote files and that part works great. Then when I go to my page it may display with the most recent update time, but not always, but then won't update until I close it, clear browser cache, and then maybe get a current page again.
I must say the Brian's MXUI template usually shows current updated data.
sounds more like a Apache/PHP cache issue.
I really know nothing about Apache and very little about PHP. I contacted my host GoDaddy last week to see how I could turn of PHP caching but didn't get a good answer, just a link How to clear the LiteSpeed cache manully and with a plugin. Haven't figured that out yet...

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
mcrossley
Posts: 12763
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Not updating every 60s

Post by mcrossley »

Paul, your pages are suffering from the same issue as Richard - because the initial link does not have the page filename.

This version will fix that - and be HTML/PHP agnostic (@beteljuice)
You do not have the required permissions to view the files attached to this post.
freddie
Posts: 2475
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: Not updating every 60s

Post by freddie »

mcrossley wrote: Tue 23 Mar 2021 1:44 pmThis version will fix that
Confirmed - see https://www.hosiene.co.uk/weather-mx-test/
Freddie
Image
Post Reply