dev #70

Merged
marko merged 7 commits from dev into testing 2025-02-04 20:03:29 +00:00
3 changed files with 40 additions and 10 deletions
Showing only changes of commit 478c4a3159 - Show all commits

View File

@ -1,5 +1,5 @@
UPD 2024-10-11_12:02:22 25848 FHEM/59_Weather.pm
UPD 2024-10-11_11:59:21 34293 lib/FHEM/Core/Weather.pm
UPD 2024-10-11_19:46:40 25848 FHEM/59_Weather.pm
UPD 2025-02-04_20:50:25 34419 lib/FHEM/Core/Weather.pm
UPD 2023-01-29_16:14:48 50106 lib/FHEM/APIs/Weather/DarkSkyAPI.pm
UPD 2023-07-11_14:08:00 33779 lib/FHEM/APIs/Weather/OpenWeatherMapAPI.pm
UPD 2024-10-11_12:02:42 37627 lib/FHEM/APIs/Weather/wundergroundAPI.pm
UPD 2025-02-04_20:47:55 38751 lib/FHEM/APIs/Weather/wundergroundAPI.pm

File diff suppressed because one or more lines are too long

View File

@ -434,8 +434,13 @@ sub _Writereadings {
&& ref( $dataRef->{$r} ) ne 'ARRAY' );
}
::readingsBulkUpdate( $hash, 'icon',
$iconlist[ $dataRef->{current}->{code} ] );
if ( defined( $dataRef->{current}->{code} )
&& $dataRef->{current}->{code} )
{
::readingsBulkUpdate( $hash, 'icon',
$iconlist[ $dataRef->{current}->{code} ] );
}
if ( defined( $dataRef->{current}->{wind_direction} )
&& $dataRef->{current}->{wind_direction}
&& defined( $dataRef->{current}->{wind_speed} )