Tide graphic not displaying in AltDashboard

Hi, all!

When my provider switched to PHP8 i had to fix a lot of errors but with my limited skills of scripting i still have some issues. So my tide graphic is not appearing…When i call it on my website it appears like here:https://www.akker.be/tides/high_105.jpg. So if there is someone outthere who can give me a few pointers to resolve this you are very welcome! I will include a copy of my AltDashBoard so everyone can take a look at it.

Thanks in advance for any help…

Marc AKA Staccermaccer ,


ajax-dashboard6.php.txt (200 KB)

If you have access to the web server (incl PHP) logs then it would be worth looking there to see if you’re getting any unreported errors that might point to what needs to be fixed.

Your running version “e” the latest is “f” so the first job is to get the latest files which are set for php8
While looking at your website I did notice the noaarecords was all error, suggest you do a search on the wxforum for answers to sorting

Actually, 6.95g is out today with additional fixes (like wind update, rain update, PHP 8.2 compatibility). Update the auxiliary scripts at the same time for PHP 8.2 compatibility.

Hi, all

I have updated the AltAjaxDash but still no luck. I have been looking in the forum for a solution to the graphic not displaying and the wxnoaarecords-page too but can’t seem to find a solution. Been looking on stackoverflow for an answer but there are many answers and when i try to change line 82 in wxnoaarecords the page goes blank.

Marc AKA Staccermaccer,

I’m doing a update to 6.95h to fix several problems. Try the attached ajax-dashboard6.php, ajaxWDwx3.js (fixes the tides errata, and all ${variable} instances, rain display and windrose updating)


ajax-dashboard6-V6.95h.zip (74.6 KB)

Hi Ken
put version h on Ballaugh Weather - Home and tide is ok now

staccermaccer
try the attached it does not have the snow on it


wxnoaarecords.zip (14.7 KB)

In PST?

Records not showing. . .

Super-wide display?

Records not showing due to units being included in testtags.php variables (so some calculations fail with ‘Not Numeric’).

Records and width OK now but PST problem still there, as described on WXForum.

Hi, all

Udated to H-version but to no avail…

Staccermaccer AKA Marc,

Hi, Ballaugh Weather!

Your wxnoaarecords-files worked like a charm, thank you for that! =D>
I see your dashboard is showing the tide-graphic, did you add any code to ajax-dashboard6?

Because i have this page https://www.akker.be/wxtides.php and this https://www.akker.be/wxtidegraph.phppage working here…Another strange thing i noticed is when you look at the graphic the arrow points always the same and the tide difference is 17 (!) hours. So i think there is a script somewhere that does not work like it should be because the tables are correct…

The search goes on…

Thank you very much for the help!

Marc AKA Staccermaccer,

Yep… still an issue with tides (and PHP grumblings) with 6.95h too… I’m working on it…

copy the tides folder with the images in to the folder with your dashboard in

Hi, hcorrin (what is your first name if i may ask)

My tides folder is in my root and it always worked like that but i remember that i always had to put some code in to let it work!

Marc AKA Staccermaccer,

Hi Marc
I think you need to point your setting-weather.php line 39 to the correct .js it should have 3 on the end before the.js
In the altdashboardconfig6.php file how have you set it up for the tides in particular lines 62-68 and line 216

Harold

You’ve spoiled the illusion now. I was convinced hcorrin was Old Manx for ‘Chief Weatherman’.

Hail to the Chief-Weatherman!

Goodmorning Harold,

Well, i have made some progress, my graphic is showing but it gives an error and is not updating (hence the error). Yoy can see that it is working here https://www.akker.be/wxtidegraph.php The hours and minutes are correct but the hand does not follow…Somewhere a script is doing weird things to it because my tidestable does upload correctly as you can see here: https://www.akker.be/wxtides.php. So i have to investigate a little more…Thanks so far everyone for bearing with me!

Marc AKA Staccermaccer,

Hi Marc
The error on your main web page tells me you need to change line 217 in the altAjaxdashboardconfig6.php from $yearDate = “yes” to $yearDate = “no”

Goodmorning, Harold!

I have changed that setting from NO to YES in my case and it worked. I still need to figure out why it jumps from 14 hours to 5 hours tll next tide, perhaps in ajaxwdwx…

Thanks many times!

Marc AKA Staccermacccer,