2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@3537 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2013-07-29 19:15:27 +00:00
parent 51cc2e8339
commit 94f817709f

View File

@ -85,7 +85,7 @@ sub
OWO_Set($@){ OWO_Set($@){
my ($hash, @a) = @_; my ($hash, @a) = @_;
my $name = $hash->{NAME}; my $name = $hash->{NAME};
my $usage = "Unknown argument, choose one of stationById stationByGeo stationByName"; my $usage = "Unknown argument, choose one of stationById stationByGeo stationByName send";
my $response; my $response;
return "No Argument given" if(!defined($a[1])); return "No Argument given" if(!defined($a[1]));
@ -359,7 +359,7 @@ UpdateReadings($$$){
readingsBulkUpdate($hash, $prefix."pressureAbs", $jsonWeather->{main}{pressure}); readingsBulkUpdate($hash, $prefix."pressureAbs", $jsonWeather->{main}{pressure});
readingsBulkUpdate($hash, $prefix."pressureRel", $jsonWeather->{main}{sea_level}); readingsBulkUpdate($hash, $prefix."pressureRel", $jsonWeather->{main}{sea_level});
readingsBulkUpdate($hash, $prefix."windSpeed", $jsonWeather->{wind}{speed}); readingsBulkUpdate($hash, $prefix."windSpeed", $jsonWeather->{wind}{speed});
readingsBulkUpdate($hash, $prefix."windDir", int($jsonWeather->{wind}{deg})); readingsBulkUpdate($hash, $prefix."windDir", $jsonWeather->{wind}{deg});
readingsBulkUpdate($hash, $prefix."clouds", $jsonWeather->{clouds}{all}); readingsBulkUpdate($hash, $prefix."clouds", $jsonWeather->{clouds}{all});
readingsBulkUpdate($hash, $prefix."rain3h", $jsonWeather->{rain}{"3h"}); readingsBulkUpdate($hash, $prefix."rain3h", $jsonWeather->{rain}{"3h"});
readingsBulkUpdate($hash, $prefix."snow3h", $jsonWeather->{snow}{"3h"}); readingsBulkUpdate($hash, $prefix."snow3h", $jsonWeather->{snow}{"3h"});