From 7a9abe2f87d6608a055449c93e5c20b0f54c7b41 Mon Sep 17 00:00:00 2001 From: borisneubert <> Date: Tue, 19 Aug 2014 20:33:22 +0000 Subject: [PATCH] avoid updating weather information on get (59_Weather.pm) git-svn-id: https://svn.fhem.de/fhem/trunk@6424 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/59_Weather.pm | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 02ac02dad..943d4063a 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: avoid updating weather information on get (59_Weather.pm) - change: removed noshutdown=0 for HTTP connections made in 57_Calendar.pm and 59_Weather.pm to address issues when FHEM is behind a web proxy diff --git a/fhem/FHEM/59_Weather.pm b/fhem/FHEM/59_Weather.pm index 9002eea25..c14bfbadd 100755 --- a/fhem/FHEM/59_Weather.pm +++ b/fhem/FHEM/59_Weather.pm @@ -423,15 +423,14 @@ sub Weather_Get($@) { return "argument is missing" if(int(@a) != 2); - Weather_GetUpdateLocal($hash); - my $reading= $a[1]; my $value; if(defined($hash->{READINGS}{$reading})) { $value= $hash->{READINGS}{$reading}{VAL}; } else { - return "no such reading: $reading"; + return "Unknown reading $reading, choose one of " . + join(" ", sort keys($hash->{READINGS})); } return "$a[0] $reading => $value";