Hi
After having a small moment yesterday with erroneous rain data... I have managed to fix all the faulty data except in the wxindex / ajax dashboard.
I am trying to find where the days since last rain is generated from... because it would appear I have an error in my data
www.jointworks.co.nz/weather/wxindex.php
Currently showing 17507, should be around 24
Thank you
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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 V4 release 4.0.1 (build 4023) - 16 May 2024
(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
Ajax Dashboard - days since rain
Moderator: saratogaWX
-
- Posts: 13
- Joined: Wed 17 Dec 2014 6:44 am
- Weather Station: Fine Offset
- Operating System: Win 7
- Location: Tasman
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Ajax Dashboard - days since rain
As far as I can see from a quick look;
This is based on the LastRrainTipISO value from Cumulus and calculated by the Saratoga template file CU-defs.php which creates the $dayswithnorain variable used in ajax-dashboard.php
Search for $dayswithnorain in CU-defs.php
This is based on the LastRrainTipISO value from Cumulus and calculated by the Saratoga template file CU-defs.php which creates the $dayswithnorain variable used in ajax-dashboard.php
Search for $dayswithnorain in CU-defs.php
-
- Posts: 13
- Joined: Wed 17 Dec 2014 6:44 am
- Weather Station: Fine Offset
- Operating System: Win 7
- Location: Tasman
Re: Ajax Dashboard - days since rain
Hi
Thanks for this. Yes it is in the CU-Defs file
So CU-Defs.php reads from CU_tags.php
However cant find where that lasttipdate is set within Cumulus in order to set it in the CU_tags file. Manually corrected it with Cumulus shutdown, but Cumulus overwrote it once it restarted
Thanks in advance
tc
Thanks for this. Yes it is in the CU-Defs file
So CU-Defs.php reads from CU_tags.php
However cant find where that lasttipdate is set within Cumulus in order to set it in the CU_tags file. Manually corrected it with Cumulus shutdown, but Cumulus overwrote it once it restarted
Thanks in advance
tc
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Ajax Dashboard - days since rain
The starting point is this entry;
$LastRainTipISO = '<#LastRainTipISO>';
in the CUtagsT.txt template file in the C:\cumulus\web folder
If you look at this value in either;
CUtagsT.txttmp in C:\cumulus\web folder
or
the CUtags.php file on the webserver you should see the value Cumulus is delivering.
If this is not correct then there is still an error somewhere that needs to be fixed in the cumulus data.
$LastRainTipISO = '<#LastRainTipISO>';
in the CUtagsT.txt template file in the C:\cumulus\web folder
If you look at this value in either;
CUtagsT.txttmp in C:\cumulus\web folder
or
the CUtags.php file on the webserver you should see the value Cumulus is delivering.
If this is not correct then there is still an error somewhere that needs to be fixed in the cumulus data.
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Ajax Dashboard - days since rain
The last rain tip time is held in today.ini and you can change it by stopping Cumulus and editing that file.
Steve
-
- Posts: 13
- Joined: Wed 17 Dec 2014 6:44 am
- Weather Station: Fine Offset
- Operating System: Win 7
- Location: Tasman
Re: Ajax Dashboard - days since rain
Hi
Thanks to you both. That solved it... learnt a fair bit about the file son the way through as well
thx
Thanks to you both. That solved it... learnt a fair bit about the file son the way through as well
thx