Alternative ajax-dashboard6 6.95c released

For users of the alternative dashboard for Weather-Display, V6.95c of ajax-dashboard6.php and ajaxWDwx3.js are available with moon phase data extended to year 2030 (old versions stopped at year 2020 end)

Download from: https://saratoga-weather.org/scripts-legacy.php#scott

Only the two scripts are updated from V6.95b

Hi Ken. I’d like to install this new dashboard, but it says “Version 6.95 and greater require the NEW Weather
Display 10.37R Build 307 or greater!”.
Going to the WD site, the most recent version is 10th June 2020 10.37S Build 113.
Will this still work?

Yes… 10.37S version is more recent than 10.37R, so it will work just fine.

Ahhh, thank you. I guess I got caught up in the build version over the letter on the end. Please excuse my oversight. #-o Thank you!!

Hi all,

I am getting fed up with PHP changing there rules constantly. I just downloaded the most rcent version of the script and this is what i get, i have been searching for hours and hours on stackoverflow and PHP-checkers but to no avail. Can somebody help me out here?

Just take a look at my site: it’s on the start page: https://www.akker.be/

Marc AKA staccermaccer,

Hi Marc,
Looks like you’re running an older version of testtags.php (V1.06) … you need V1.07 to make the V6+ alt-ajax-dashboard work correctly.

Download https://saratoga-weather.org/wxtemplates/WD-plugin.zip and use testtags.txt from the WXtags-template-files/ directory in the zip
as c:\wdisplay\testtags.txt for your testtags.php upload.

Or use the attached current version.


testtags.txt (47.2 KB)

I see WD (as of build 114) still has an old version of testtags.txt headed V1.06 from 2010. Can I just replace that with the latest version?

Yes, use the 1.07 version.

Hi, Ken

Replaced the testtags but the PHP-faults are just the same. I can’t figure this one out myself…

Marc,

Looking at https://www.akker.be/testtags.php?sce=view shows the V1.06 is still the version on your website.

I’d suggest checking where the new testtags.txt was put on your WD system. Maybe it goes in c:\wdisplay\webfiles instead? (and I may have lead you wrong in the above post… sorry).

next update of WD will have the latest testtags.txt

:D/ =D> Thanks, Brian!

testtags.txt lives in c:\wdisplay until you want to use it (i.e. upload it as testtags.php), when you put it in c:\wdisplay\webfiles.

My testtags.txt file there has only 3 tags, and I had to define 2 of those myself. . . but then I’m not running a template :slight_smile:

i was under the impression that there is more than 1 version of testtags dependant on the template used

Version 1.07 of testtags.txt can be used with all the WD-based Saratoga templates. It incorporated additions made by Scott/MChallis/etc for their add-on scripts (like the alternative dashboard).

Hi, Ken

You were right, was a little confused…

Newest version is now in place, but still the same PHP-errors… :frowning: :x

Marc aka Staccermaccer,

I see https://www.akker.be/testtags.php?sce=view is uploading V1.08 of testtags.php which should be fine.
The main page at http://www.akker.be/ is showing

Notice: Undefined offset: 1 in /customers/b/c/b/akker.be/httpd.www/ajax-dashboard6.php on line 239
Notice: Undefined offset: 2 in /customers/b/c/b/akker.be/httpd.www/ajax-dashboard6.php on line 240
Notice: Undefined offset: 1 in /customers/b/c/b/akker.be/httpd.www/ajax-dashboard6.php on line 240
Notice: Undefined variable: MMM in /customers/b/c/b/akker.be/httpd.www/ajax-dashboard6.php on line 2574
Notice: Undefined variable: firstsnowseason in /customers/b/c/b/akker.be/httpd.www/ajax-dashboard6.php on line 288
Notice: Undefined variable: snowtoday in /customers/b/c/b/akker.be/httpd.www/ajax-dashboard6.php on line 319
Notice: Undefined variable: snowtoday in /customers/b/c/b/akker.be/httpd.www/ajax-dashboard6.php on line 319
Notice: Undefined variable: avgmonthrain1 in /customers/b/c/b/akker.be/httpd.www/ajax-dashboard6.php on line 325

The errata for line 239-240 are from code

$lastlightningstrikedate = rdate($RecDateF,$llsd[2],$llsd[1],$llsd[0]);

where the $llsd array is done from prior lines

$llst = explode(' ',$lighteningcountlasttime);
$lastlightningstriketime = $llst[0];
$llsd = explode('/',trim($llst[1]));

Your testtags.php has

lighteningcountlasttime = ''; 

so Scott’s code doesn’t handle a null string there.

Likewise, all the other Notice: Undefined errata seem to be due to the original code not handling null data.

I suggest that instead of going down a fairly deep rathole to tease out all the old code with issues, you simply turn off Notice errata and let it be.

Add to ajax-dashboard6.php at the beginning of the file:

error_reporting(E_ALL & ~E_NOTICE);

and let it run quietly. I’m not sure I have the stamina to root through this legacy script to squeeze out all the Notice errata.

Now that a few of us are receiving the new Davis AQ monitor, and Brian has built the ability to use it in WD, how can we use the data in the dashboard?

Stupid users (me) are curious.

Still looking for info on replacing the AQI data with the new Davis AQ monitor data. Nobody done it yet?