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

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

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:

Not updating every 60s

Post by richard_newberry »

Hi, the index.htm page isn't automatically updating every 60s.

do i need to insert my own code to do this?
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
User avatar
mcrossley
Posts: 12695
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 »

All that testing and nobody (including me picked this up) :(

It needs a change to setpagedata.js, the version below works for me if you'd like to try it...
User avatar
ConligWX
Posts: 1573
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 »

mcrossley wrote: Mon 22 Mar 2021 2:20 pm All that testing and nobody (including me picked this up) :(

It needs a change to setpagedata.js, the version below works for me if you'd like to try it...
lol, Mark we all have to keep you on your toes! :lol:


Personally I thought this only worked due to the interval being set at 60 Seconds, maybe I was wrong.
Regards Simon

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

Image
User avatar
mcrossley
Posts: 12695
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 »

The script is supposed to update from the JSON every 60 seconds, but obviously the data will only update as frequently as your upload interval.
jon_iz
Posts: 86
Joined: Sat 02 Jan 2016 10:10 pm
Weather Station: Davis VP2+, WLL & Airlink
Operating System: Win 10 64bit / RPi Buster
Location: Nantwich, UK
Contact:

Re: Not updating every 60s

Post by jon_iz »

Is this affecting 3120 or 3121, or both?
User avatar
ConligWX
Posts: 1573
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 »

jon_iz wrote: Mon 22 Mar 2021 7:23 pm Is this affecting 3120 or 3121, or both?
not sure though auto update was added to: Release 3.10.2 - build 3117 though it appears it was somehow broken.

Code: Select all

New: Default web site now auto updates the index.htm and today.htm pages every minute
Regards Simon

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

Image
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 »

Nope it doesn't work.

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

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
User avatar
ConligWX
Posts: 1573
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 »

richard_newberry wrote: Mon 22 Mar 2021 8:03 pm Nope it doesn't work.

http://desford-weather.co.uk/

And your interval is set to 60 seconds as well? otherwise the websitedata.json file which carries the data to the webserver is the same after 60 seconds and you wont notice any change.
Regards Simon

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

Image
User avatar
ConligWX
Posts: 1573
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 »

my index.htm did update just now whilst I was on the site I went to website at 20:38 waited until 20:40 and the index.htm had updated itself and showed

"Conditions at local time 20:40 on 22 March 2021"

also make sure your webserver has the correct time.

just checked again it seems to update at 20:45:59 seconds and not 20:45:00

i'm guessing it does update at 20:45, but the json file has not updates as yet and did not show until 20:46 its just a matter of slight timing.
Regards Simon

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

Image
User avatar
ConligWX
Posts: 1573
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 »

Yes I watched the time on the cumulus admin console. checking ftp logs too. the json file is sent dead on the 5:00 mins, but by then the 60 second refresh has already happened, and thus you dont see then next json change until the next refresh - 1 minute after.

Mark could the refresh be done 5 seconds past the minute? this will allow the json file to be uploaded and then refreshed. I dont know if that is possible
Regards Simon

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

Image
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 »

ConligWX wrote: Mon 22 Mar 2021 8:38 pm
richard_newberry wrote: Mon 22 Mar 2021 8:03 pm Nope it doesn't work.

http://desford-weather.co.uk/

And your interval is set to 60 seconds as well? otherwise the websitedata.json file which carries the data to the webserver is the same after 60 seconds and you wont notice any change.
Yes it is
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
User avatar
mcrossley
Posts: 12695
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 »

ConligWX wrote: Mon 22 Mar 2021 8:53 pm Mark could the refresh be done 5 seconds past the minute? this will allow the json file to be uploaded and then refreshed. I dont know if that is possible
It happens 60 seconds after the first download, it isn't tied to any clock time
User avatar
PaulMy
Posts: 3777
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 »

Are you saying that the index.htm Now page should auto update every minute?
That is the:
Conditions at local time 17:25 on 22 March 2021
Page updated 22/03/21 5:25:00 PM.

Heck, if I can get mine updated within the same hour I am happy. I delete browser cache, go to another computer, try it on a tablet and then drop it to see if it to update... and still 5:25 PM :lol:
In my 13 minutes to type this it still hasn't changed :bash:

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
User avatar
ConligWX
Posts: 1573
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 9:39 pm Are you saying that the index.htm Now page should auto update every minute?
That is the:
Conditions at local time 17:25 on 22 March 2021
Page updated 22/03/21 5:25:00 PM.

Heck, if I can get mine updated within the same hour I am happy. I delete browser cache, go to another computer, try it on a tablet and then drop it to see if it to update... and still 5:25 PM :lol:
In my 13 minutes to type this it still hasn't changed :bash:

Enjoy,
Paul
try updating your setpagedata.js file!!!! your using an old file!

http://www.komokaweather.com/cumulusmxt ... agedata.js

Code: Select all

/*	----------------------------------------------------------
 * 	setpagedata.js		v:0.1.0		d:Mar 2021		a:Neil  Thomas
 *  Last modified: 2021/03/19 09:21:06
 * 	Basic scripts for all new at-xxxx.html template pages.
 *  Incorporating changes suggested by beteljuice
 * 	Requires jQuery
viewtopic.php?p=152564#p152564
Regards Simon

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

Image
User avatar
ConligWX
Posts: 1573
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 »

richard_newberry wrote: Mon 22 Mar 2021 1:38 pm Hi, the index.htm page isn't automatically updating every 60s.

do i need to insert my own code to do this?
Richard yours is not updating for me. maybe you have some caching going on your webserver.


if you have try adding this to your .htaccess just for a test.

Code: Select all

# DISABLE CACHING
<IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires 0
</IfModule>
<FilesMatch "\.(css|flv|gif|htm|html|ico|jpe|jpeg|jpg|js|mp3|mp4|png|pdf|swf|txt)$">
    <IfModule mod_expires.c>
        ExpiresActive Off
    </IfModule>
    <IfModule mod_headers.c>
        FileETag None
        Header unset ETag
        Header unset Pragma
        Header unset Cache-Control
        Header unset Last-Modified
        Header set Pragma "no-cache"
        Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
        Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
    </IfModule>
</FilesMatch>
Regards Simon

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

Image
Post Reply