2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 01:14:19 +00:00

contrib/98_openweathermap: #32426

git-svn-id: https://svn.fhem.de/fhem/trunk@7637 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2015-01-20 13:03:37 +00:00
parent 8326b4c7d1
commit ab95bcd7f7

View File

@ -14,6 +14,7 @@
# #
# All tasks can be accessed single or in any desired combination. # All tasks can be accessed single or in any desired combination.
# Copyright: betateilchen ® # Copyright: betateilchen ®
# e-mail : fhem.development@betateilchen.de
# #
# This file is part of fhem. # This file is part of fhem.
# #
@ -63,8 +64,6 @@
# #
# 2014-03-22 added: added set command 'clear' # 2014-03-22 added: added set command 'clear'
# #
# 2014-07-11 modi: readingsFnAttr removed
#
package main; package main;
@ -102,9 +101,11 @@ sub openweathermap_Initialize($) {
"owoSrc00 owoSrc01 owoSrc02 owoSrc03 owoSrc04 ". "owoSrc00 owoSrc01 owoSrc02 owoSrc03 owoSrc04 ".
"owoSrc05 owoSrc06 owoSrc07 owoSrc08 owoSrc09 ". "owoSrc05 owoSrc06 owoSrc07 owoSrc08 owoSrc09 ".
"owoSrc10 owoSrc11 owoSrc12 owoSrc13 owoSrc14 ". "owoSrc10 owoSrc11 owoSrc12 owoSrc13 owoSrc14 ".
"owoSrc15 owoSrc16 owoSrc17 owoSrc18 owoSrc19 "; "owoSrc15 owoSrc16 owoSrc17 owoSrc18 owoSrc19 ".
$readingFnAttributes;
} }
sub OWO_Shutdown($) { sub OWO_Shutdown($) {
my ($hash) = @_; my ($hash) = @_;
my $name = $hash->{NAME}; my $name = $hash->{NAME};
@ -115,7 +116,7 @@ sub OWO_Shutdown($) {
sub OWO_Set($@){ sub OWO_Set($@){
my ($hash, @a) = @_; my ($hash, @a) = @_;
my $name = $hash->{NAME}; my $name = $hash->{NAME};
my $usage = "Unknown argument, choose one of clear:noArg stationById stationByGeo stationByName send:noArg"; my $usage = "Unknown argument, choose one of clear:readings stationById stationByGeo stationByName send:noArg";
my $response; my $response;
return "No Argument given" if(!defined($a[1])); return "No Argument given" if(!defined($a[1]));