Author Topic: altdash6 Rain Display and Status Issues  (Read 478 times)

0 Members and 1 Guest are viewing this topic.

Offline vinesweather

  • Forecaster
  • *****
  • Posts: 304
    • The Vines Weather
altdash6 Rain Display and Status Issues
« on: March 12, 2024, 12:36:45 AM »
Hi All
I noticed yesterday that on the dashboard of my website the rain data has the following error:

Notice: Undefined offset: 1 in /home/mcdconcepts/public_html/ajax-dashboard6.php on line 2983

Notice: Undefined offset: 2 in /home/mcdconcepts/public_html/ajax-dashboard6.php on line 2986
-----
at

https://mcdconcepts.com.au/index.php

Also, I noticed on the Status page there are errors.

https://mcdconcepts.com.au/wxstatus.php

We did have a brief power outage in which I had to start up my weather PC and restore WD data from backups.

Any help would be very much appreciated.
Chris
« Last Edit: March 12, 2024, 12:40:43 AM by vinesweather »

Offline hcorrin

  • Contributor
  • ***
  • Posts: 128
    • Ballaugh Weather
Re: altdash6 Rain Display and Status Issues
« Reply #1 on: March 12, 2024, 06:21:23 AM »
Looking at your status pages suggests the format of the current date in the testtags.php is wrong ie it thinks it’s 3/12/2024 (m/d/y) instead of 12/3/2024 (d/m/y) and this will be the cause of the rain error on your main page
you will need to check the date format in WD is set correctly after you installed the backup

Offline vinesweather

  • Forecaster
  • *****
  • Posts: 304
    • The Vines Weather
Re: altdash6 Rain Display and Status Issues
« Reply #2 on: March 12, 2024, 09:42:39 AM »
Ah. Makes sense. However, where do I change date settings? Never had to do it from memory?
Many thanks
Chris

Offline vinesweather

  • Forecaster
  • *****
  • Posts: 304
    • The Vines Weather
Re: altdash6 Rain Display and Status Issues
« Reply #3 on: March 12, 2024, 10:05:08 AM »
WD manual is very out of date...

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: altdash6 Rain Display and Status Issues
« Reply #4 on: March 12, 2024, 10:43:30 AM »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline hcorrin

  • Contributor
  • ***
  • Posts: 128
    • Ballaugh Weather
Re: altdash6 Rain Display and Status Issues
« Reply #5 on: March 12, 2024, 12:27:10 PM »
The WD setting is in the attached

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: altdash6 Rain Display and Status Issues
« Reply #6 on: March 12, 2024, 03:41:06 PM »
Your Settings.php has
Quote
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year.  =false for day/month/year
But your testtags.php has
Quote
$time =  '03:38 AM';    // current time
$date =  '3/13/2024';    // current date
which is in m/d/y format.  Either reconfigure WD to use d/m/y (to match the Settings.php) or change Settings.php to
Quote
$SITE['WDdateMDY'] = true; // for weather software date format of month/day/year.  =false for day/month/year
to match what you're currently submitting in testtags.php.
It's the mismatch that's causing the wxstatus.php to display 'Not Current'
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline vinesweather

  • Forecaster
  • *****
  • Posts: 304
    • The Vines Weather
Re: altdash6 Rain Display and Status Issues
« Reply #7 on: March 14, 2024, 06:12:48 AM »
Thanks All
I've changed WD to display D/M/Y. Still no good though

Offline hcorrin

  • Contributor
  • ***
  • Posts: 128
    • Ballaugh Weather
Re: altdash6 Rain Display and Status Issues
« Reply #8 on: March 14, 2024, 06:50:04 AM »
You may need some rain to get that to change as the last rain is probably stored in WD with the wrong formatted date
Your current date in testtags look ok now but the dateoflastrainalways tag shows as - instead of a date so again that should correct when you get some rain and your status page only has a problem with the noaa file not updating is it updating in the webfiles folder on the computer running WD
« Last Edit: March 14, 2024, 07:06:02 AM by hcorrin »

Offline vinesweather

  • Forecaster
  • *****
  • Posts: 304
    • The Vines Weather
Re: altdash6 Rain Display and Status Issues
« Reply #9 on: March 14, 2024, 06:57:18 PM »
Makes sense. Many thanks!

 

anything