Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3044 7 December 2018. See the Wiki for download

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 » Thu 07 Dec 2017 6:08 pm

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: 874
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Ajax Dashboard - days since rain

Post by BCJKiwi » Thu 07 Dec 2017 7:45 pm

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 » Fri 08 Dec 2017 6:21 pm

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: 874
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Ajax Dashboard - days since rain

Post by BCJKiwi » Fri 08 Dec 2017 7:26 pm

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: 26714
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 » Fri 08 Dec 2017 7:48 pm

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 » Sat 09 Dec 2017 6:26 am

Hi

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

thx

Post Reply