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
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
Moderator: mcrossley
-
- 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
Hi, the index.htm page isn't automatically updating every 60s.
do i need to insert my own code to do this?
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
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
- 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
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...
It needs a change to setpagedata.js, the version below works for me if you'd like to try it...
- 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
lol, Mark we all have to keep you on your toes!
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 •
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •
- 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
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.
-
- 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
Is this affecting 3120 or 3121, or both?
Regards Jon
https://duncreggan.net/cumulusmx/index.htm
https://duncreggan.net/cumulusmx/index.htm
- 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
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 •
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •
-
- 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
Desford Weather (at parents)
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
- 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
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 •
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •
- 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
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.
"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 •
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •
- 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
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
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 •
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •
-
- 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
Yes it isConligWX wrote: ↑Mon 22 Mar 2021 8:38 pmrichard_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.
Desford Weather (at parents)
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
- 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
It happens 60 seconds after the first download, it isn't tied to any clock time
- 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
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
In my 13 minutes to type this it still hasn't changed
Enjoy,
Paul
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
In my 13 minutes to type this it still hasn't changed
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
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
- 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
try updating your setpagedata.js file!!!! your using an old file!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
In my 13 minutes to type this it still hasn't changed
Enjoy,
Paul
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
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •
- 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
Richard yours is not updating for me. maybe you have some caching going on your webserver.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?
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 •
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •