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

Ajax Dashboard - days since rain

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
tcsplinters
Posts: 13
Joined: Wed 17 Dec 2014 6:44 am
Weather Station: Fine Offset
Operating System: Win 7
Location: Tasman

Ajax Dashboard - days since rain

Post by tcsplinters »

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
BCJKiwi
Posts: 1255
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

Post by BCJKiwi »

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
tcsplinters
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

Post by tcsplinters »

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
BCJKiwi
Posts: 1255
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

Post by BCJKiwi »

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.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Ajax Dashboard - days since rain

Post by steve »

The last rain tip time is held in today.ini and you can change it by stopping Cumulus and editing that file.
Steve
tcsplinters
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

Post by tcsplinters »

Hi

Thanks to you both. That solved it... learnt a fair bit about the file son the way through as well

thx
Post Reply