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
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 :
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
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
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
Problem with date and time for update
Moderator: saratogaWX
-
- 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
You do not have the required permissions to view the files attached to this post.
- 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: Problem with date and time for update
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
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 • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- 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
Thanks for the reply, but the site is all about is https://ljm.brugergruppen.dk/vejr2:
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.
- saratogaWX
- Posts: 1196
- 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
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 so it is picking up the realtime.txt file from the document root of ljm.brugergruppen.dk
Change that to 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.
the ./vejr2/ajaxCUwx.js script shows
Code: Select all
var realtimeFile = '/realtime.txt'; // URL location of realtime.txt relative to document root of website
Change that to
Code: Select all
var realtimeFile = 'realtime.txt'; // URL location of realtime.txt relative to document root of website
That's why the date/time is odd when the AJAX JavaScript does a partial page update.
-
- 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
Now it works perfect. Thanks for the help Ken.
Best regards
Per
Best regards
Per