WXforum.net

Web Weather => Weather Web Site Help => Topic started by: yamiacaveman on February 14, 2024, 08:42:22 AM

Title: Cloud Level
Post by: yamiacaveman on February 14, 2024, 08:42:22 AM
Hi,

I'm missing the image for my Cloud Display  -- pennlake.us,  weather display and USA version

Any suggestions?
Title: Re: Cloud Level
Post by: saratogaWX on February 14, 2024, 01:58:07 PM
Do you mean the marker for the cloud height or some other image?
Title: Re: Cloud Level
Post by: Vasco on February 14, 2024, 02:03:13 PM
Strange, the whole graphic was missing but now it's back - without the marker  :?

Title: Re: Cloud Level
Post by: yamiacaveman on February 14, 2024, 02:16:47 PM
The graphic was missing but it is back. No apparent reason

thanks for the responses!
Title: Re: Cloud Level
Post by: saratogaWX on February 14, 2024, 02:44:43 PM
Ah.. gone again.  See the message with image at http://www.pennlake.us/cloud-base.php?html=1

Error message of
Code: [Select]
Deprecated: Implicit conversion from float 60.5 to int loses precision in /home/hogan2/pennlake.us/cloud-base.php on line 987 spoils the image.

that is the line
Code: [Select]
      imagestring ( $slate, $font, 36+($z), min(162,$y)-10, $txtC, $color);
At the top of the script, change
Code: [Select]
error_reporting(E_ALL ^ E_NOTICE);
error_reporting(E_ALL);
ini_set('display_errors','1');
to
Code: [Select]
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
# error_reporting(E_ALL);
ini_set('display_errors','1');
Title: Re: Cloud Level
Post by: yamiacaveman on February 14, 2024, 03:52:04 PM
Thanks Ken, I will get on that soon.