diff --git a/59_Weather.pm b/59_Weather.pm index 3de692a..e167789 100755 --- a/59_Weather.pm +++ b/59_Weather.pm @@ -669,7 +669,7 @@ sub Weather_Define($$) { readingsSingleUpdate( $hash, 'state', 'Initialized', 1 ); Weather_LanguageInitialize( $hash->{LANG} ); - my $apistring = 'FHEM::' . $api . '::Weather'; + my $apistring = $api . '::Weather'; $hash->{fhem}->{api} = $apistring->new( { devName => $hash->{NAME}, diff --git a/DarkSkyAPI.pm b/DarkSkyAPI.pm index cca8d17..715c40b 100644 --- a/DarkSkyAPI.pm +++ b/DarkSkyAPI.pm @@ -28,7 +28,7 @@ # ############################################################################### -package FHEM::DarkSkyAPI::Weather; +package DarkSkyAPI::Weather; use strict; use warnings; diff --git a/OpenWeatherMapAPI.pm b/OpenWeatherMapAPI.pm index a3c1640..44fa6b8 100644 --- a/OpenWeatherMapAPI.pm +++ b/OpenWeatherMapAPI.pm @@ -32,7 +32,7 @@ # https://api.openweathermap.org/data/2.5/forecast?lat=[lat]&lon=[long]&APPID=[API] Forecast # https://openweathermap.org/weather-conditions Icons und Conditions ID's -package FHEM::OpenWeatherMapAPI::Weather; +package OpenWeatherMapAPI::Weather; use strict; use warnings;