Author Topic: Cloud Level Issue  (Read 854 times)

0 Members and 1 Guest are viewing this topic.

Offline scottct1

  • Senior Member
  • **
  • Posts: 80
    • Newington, CT Weather
Cloud Level Issue
« on: January 21, 2025, 11:17:58 AM »
The server I was on had a hardware failure, so I moved to a new VPS.

Everything is working except for the Cloud Level

If I right click on the image, these are the errors shown.

Deprecated: Implicit conversion from float 60.5 to int loses precision in /home/weather/public_html/cloud-base.php on line 987

Warning: Cannot modify header information - headers already sent by (output started at /home/weather/public_html/cloud-base.php:987) in /home/weather/public_html/cloud-base.php on line 1014

PHP is 8.3.15
https://newingtonweather.com/php.php

Any ideas?

Thanks in advance!
Scott - NewingtonWeather.COM - Newington, Connecticut's Weather Source!
Davis Vantage Pro 2 Plus - WeatherFlow Tempest for Lightning - Weather-Display Software

Offline Vasco

  • Forecaster
  • *****
  • Posts: 634
    • PWS
Re: Cloud Level Issue
« Reply #1 on: January 21, 2025, 11:23:58 AM »
See here for line 987. That might sort the warning too. . .
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline scottct1

  • Senior Member
  • **
  • Posts: 80
    • Newington, CT Weather
Re: Cloud Level Issue
« Reply #2 on: January 21, 2025, 02:18:18 PM »
Well... I didn't touch anything and it is working again.   Strange, but its working. :D
Scott - NewingtonWeather.COM - Newington, Connecticut's Weather Source!
Davis Vantage Pro 2 Plus - WeatherFlow Tempest for Lightning - Weather-Display Software

Offline Vasco

  • Forecaster
  • *****
  • Posts: 634
    • PWS
Re: Cloud Level Issue
« Reply #3 on: January 21, 2025, 02:24:46 PM »
Maybe the float doesn't need conversion to int at the moment  :grin:
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

 

anything