Weather-Station-Software / live-weather-station

Display on your WordPress site, in many elegant ways, the meteorological data collected by public or personal weather stations.
https://weather.station.software/
GNU General Public License v2.0
7 stars 2 forks source link

An error of type E_ERROR was caused in line 714 of the file DataUnitConversion.php #37

Open grego-b opened 12 months ago

grego-b commented 12 months ago

An error of type E_ERROR was caused in line 714 of the file /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/traits/DataUnitConversion.php. Error message: Uncaught ArgumentCountError: is_numeric() expects exactly 1 argument, 0 given in /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/traits/DataUnitConversion.php:714 Stack trace:

0 /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/traits/DataUnitConversion.php(714): is_numeric()

1 /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/traits/DataOutput.php(9321): WeatherStation\UI\Station\Handling->get_wind_angle()

2 /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/traits/DataOutput.php(13278): WeatherStation\UI\Station\Handling->output_value()

3 /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/classes/StationHelper.php(737): WeatherStation\UI\Station\Handling->get_all_formated_datas()

4 /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/classes/StationHelper.php(553): WeatherStation\UI\Station\Handling->add_metaboxes()

5 /home/gregobru/public_html/wp-includes/class-wp-hook.php(310): WeatherStation\UI\Station\Handling->station_add_options()

6 /home/gregobru/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()

7 /home/gregobru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

8 /home/gregobru/public_html/wp-admin/admin.php(237): do_action()

9 {main}

thrown

Using Wordpress 6.3 and local file realtime.txt created by weewx via weewx-crt Suspect the issue is that weather station is expecting an int but receiving a string but I'm unable to determine where this data is originating