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

Problem with date and time for update

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
perl
Posts: 52
Joined: Wed 24 Jun 2015 7:02 pm
Weather Station: Davis Vantage Pro2
Operating System: Buster Lite rPi
Location: Taasinge, Denmark
Contact:

Problem with date and time for update

Post by perl »

Hi,
I have a PI with CumulusMX and and Davis running, which works perfect.

Now I am trying to get another station with fineoffset, PI and CumulusMX up running.

The status is ok
ScreenShot430.jpg
But I have troubles with the index.php. When the page loads, date and time is ok, but less than 1 second it fall bach to show an old time :
ScreenShot429.jpg
Can anyone explain to me why?

Where does this wrong date and time come from.

The realtime file shows: 15/10/17 12:11:46 14.6 99 14.4 1.0 2.7
You do not have the required permissions to view the files attached to this post.
User avatar
ConligWX
Posts: 1570
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: Problem with date and time for update

Post by ConligWX »

not sure where the issues is as when i looked at your site it is behaving correctly.

though you do need to update some templates.

http://vejr.perlaustsen.dk/check-fetch- ... w=versions
Regards Simon

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

Image
perl
Posts: 52
Joined: Wed 24 Jun 2015 7:02 pm
Weather Station: Davis Vantage Pro2
Operating System: Buster Lite rPi
Location: Taasinge, Denmark
Contact:

Re: Problem with date and time for update

Post by perl »

Thanks for the reply, but the site is all about is https://ljm.brugergruppen.dk/vejr2:
ScreenShot434.jpg
ScreenShot435.jpg
Suddenly yesterday evening everything was all right, but now at 03:40 AM the time is wrong.
You do not have the required permissions to view the files attached to this post.
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Problem with date and time for update

Post by saratogaWX »

Looking at https://ljm.brugergruppen.dk/vejr2/chec ... w=settings shows the PHP pages are getting the tags and realtime from the ./vejr2/ directory (same directory as the vejr2 site is located).

the ./vejr2/ajaxCUwx.js script shows

Code: Select all

var realtimeFile = '/realtime.txt'; //  URL location of realtime.txt relative to document root of website
so it is picking up the realtime.txt file from the document root of ljm.brugergruppen.dk
Change that to

Code: Select all

var realtimeFile = 'realtime.txt'; //  URL location of realtime.txt relative to document root of website
to have it get the realtime.txt file from the same directory (./vejr2/) as the template pages.

That's why the date/time is odd when the AJAX JavaScript does a partial page update.
perl
Posts: 52
Joined: Wed 24 Jun 2015 7:02 pm
Weather Station: Davis Vantage Pro2
Operating System: Buster Lite rPi
Location: Taasinge, Denmark
Contact:

Re: Problem with date and time for update

Post by perl »

Now it works perfect. Thanks for the help Ken.
Best regards
Per
Post Reply