Page 1 of 1

Error livedata.php

Posted: Tue 20 Nov 2018 7:48 pm
by Steepleian
Simon,

There is an error in the livedata.php file within the final update (19 November). Its related to the addition of 'Last Hour' in the 'Almanac' section of the rainfall module. I spotted it whilst I was updating the weeWX version which also uses realtime.txt for live data.

Line 111 reads: -

$weather["rain_lasthour"] = $cumulus[49];

It should be: -

$weather["rain_lasthour"] = $cumulus[47];

Updated file is attached: -
livedata.php.zip
Ian

Re: Error livedata.php

Posted: Wed 21 Nov 2018 8:05 am
by weatherist34
hello Ian

thanks fixed and updated download ...many thanks brian

Re: Error livedata.php

Posted: Wed 21 Nov 2018 6:59 pm
by ConligWX
Thanks for pointing that out Ian.

Cheers Brian for the update.