add more logout, code stype, add LICENSE

This commit is contained in:
Marko Oldenburg
2019-06-15 09:36:11 +02:00
parent 249ba18414
commit e1d10a7b4d
4 changed files with 637 additions and 151 deletions

View File

@ -576,6 +576,7 @@ sub Weather_Set($@) {
sub Weather_RearmTimer($$) {
my ( $hash, $t ) = @_;
Log3( $hash, 3, "Weather $hash->{NAME}: Rearm new Timer" );
InternalTimer( $t, "Weather_GetUpdate", $hash, 0 );
}
@ -913,10 +914,11 @@ sub WeatherCheckOptions($@) {
if ( !$defs{$d} || $defs{$d}->{TYPE} ne "Weather" );
if ( AttrVal( $d, 'forecast', 'none' ) ne 'none' ) {
$f =
( AttrVal( $d, 'forecast', 'none' ) eq 'daily'
$f = (
AttrVal( $d, 'forecast', 'none' ) eq 'daily'
? 'd'
: ( AttrVal( $d, 'forecast', 'none' ) eq 'every' ? $f : 'h' ) );
: ( AttrVal( $d, 'forecast', 'none' ) eq 'every' ? $f : 'h' )
);
}
$f = 'h' if ( !$f || length($f) > 1 );