FHEM Forum

FHEM - Hausautomations-Systeme => Unterstützende Dienste => Wettermodule => Thema gestartet von: Rampler am 24 Juni 2025, 07:56:36

Titel: Weather Installations Problem
Beitrag von: Rampler am 24 Juni 2025, 07:56:36
Leider komme ich mit der Installation nicht wirklich weiter.

Beim Versuch mein Wetter Device mit:

define MeinWetter Weather API=OpenWeatherMapAPI,version:3.0,cachemaxage:600 apikey=xxxx interval=3600 lang=de
anzulegen, kommt es zu dieser Fehlermeldung:

2025.06.24 07:48:17 1: reload: Error:Modul 59_Weather deactivated:
 Can't locate Readonly.pm in @INC (you may need to install the Readonly module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at lib/FHEM/Core/Weather.pm line 41.
BEGIN failed--compilation aborted at lib/FHEM/Core/Weather.pm line 41.
Compilation failed in require at ./FHEM/59_Weather.pm line 36.

2025.06.24 07:48:17 0: Can't locate Readonly.pm in @INC (you may need to install the Readonly module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at lib/FHEM/Core/Weather.pm line 41.
BEGIN failed--compilation aborted at lib/FHEM/Core/Weather.pm line 41.
Compilation failed in require at ./FHEM/59_Weather.pm line 36.


Weiß jemand, was da zu tun ist ?

Titel: Aw: Weather Installations Problem
Beitrag von: softwear am 24 Juni 2025, 08:02:03
Zitat von: Rampler am 24 Juni 2025, 07:56:36you may need to install the Readonly module

Das ist eindeutig!

Liebe Grüße
softwear
Titel: Aw: Weather Installations Problem
Beitrag von: Rampler am 24 Juni 2025, 08:08:33
War mir nur nicht sicher wie .. (CPAN oder apt)
Habe es jetzt so lösen können:

apt install libreadonly-perl
Titel: Aw: Weather Installations Problem
Beitrag von: betateilchen am 24 Juni 2025, 09:02:35
Zitat von: Rampler am 24 Juni 2025, 08:08:33War mir nur nicht sicher wie .. (CPAN oder apt)

Diese Frage ist doch leicht zu entscheiden:
CPAN nur dann, wenn es für apt kein passendes Paket gibt (das ist höchst selten der Fall)