diff --git a/fhem/CHANGED b/fhem/CHANGED index 70e3fe8c3..0edb27b02 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: 59_WUup: remove prototypes and HTML entitities - bugfix: 73_AutoShuttersControl: change default value for rain and wind protection, add rain protection to commandref - change: 73_AutoShuttersControl: remove prototyp, add weekendholiday for diff --git a/fhem/FHEM/59_WUup.pm b/fhem/FHEM/59_WUup.pm index fc4031379..24d68ae90 100644 --- a/fhem/FHEM/59_WUup.pm +++ b/fhem/FHEM/59_WUup.pm @@ -33,17 +33,7 @@ use HttpUtils; use UConv; use FHEM::Meta; -my $version = "0.9.13"; - -# Declare functions -sub WUup_Initialize($); -sub WUup_Define($$$); -sub WUup_Undef($$); -sub WUup_Set($@); -sub WUup_Attr(@); -sub WUup_stateRequestTimer($); -sub WUup_send($); -sub WUup_receive($); +my $version = "0.9.14"; ################################################################################ # @@ -51,7 +41,7 @@ sub WUup_receive($); # ################################################################################ -sub WUup_Initialize($) { +sub WUup_Initialize { my ($hash) = @_; $hash->{DefFn} = "WUup_Define"; @@ -75,7 +65,7 @@ sub WUup_Initialize($) { return FHEM::Meta::InitMod( __FILE__, $hash ); } -sub WUup_Define($$$) { +sub WUup_Define { my ( $hash, $def ) = @_; return $@ unless ( FHEM::Meta::SetInternals($hash) ); @@ -121,13 +111,13 @@ sub WUup_Define($$$) { return undef; } -sub WUup_Undef($$) { +sub WUup_Undef { my ( $hash, $arg ) = @_; RemoveInternalTimer($hash); return undef; } -sub WUup_Set($@) { +sub WUup_Set { my ( $hash, $name, $cmd, @args ) = @_; return "\"set $name\" needs at least one argument" unless ( defined($cmd) ); @@ -140,7 +130,7 @@ sub WUup_Set($@) { } } -sub WUup_Attr(@) { +sub WUup_Attr { my ( $cmd, $name, $attrName, $attrVal ) = @_; my $hash = $defs{$name}; @@ -191,7 +181,7 @@ sub WUup_Attr(@) { return undef; } -sub WUup_stateRequestTimer($) { +sub WUup_stateRequestTimer { my ($hash) = @_; my $name = $hash->{NAME}; @@ -219,7 +209,7 @@ sub WUup_stateRequestTimer($) { "Sub WUup_stateRequestTimer ($name) - Request Timer is called"; } -sub WUup_send($) { +sub WUup_send { my ($hash) = @_; my $name = $hash->{NAME}; my $version = $hash->{VERSION}; @@ -312,9 +302,6 @@ sub WUup_send($) { Log3 $name, 5, "WUup ($name) - full URL: $url"; HttpUtils_NonblockingGet($param); - # my $response = GetFileFromURL($url); - # readingsBulkUpdate( $hash, "response", $response ); - # Log3 $name, 4, "WUup ($name) - server response: $response"; } else { CommandDeleteReading( undef, "$name data" ); @@ -328,7 +315,7 @@ sub WUup_send($) { return; } -sub WUup_receive($) { +sub WUup_receive { my ( $param, $err, $data ) = @_; my $hash = $param->{hash}; my $name = $hash->{NAME}; @@ -379,6 +366,7 @@ sub WUup_receive($) { # 2019-07-05 add Meta support # 2019-07-09 add WIKI to Meta data # 2020-03-12 use UConv to calculate solarradiation from lux to W/m² +# 2020-03-25 remove prototypes # ################################################################################ @@ -436,7 +424,7 @@ sub WUup_receive($) {
  • disable - disables the module
  • disabledForIntervals
  • unit_windspeed - change the units of your windspeed readings (m/s or km/h)
  • -
  • unit_solarradiation - change the units of your solarradiation readings (lux or W/m²)
  • +
  • unit_solarradiation - change the units of your solarradiation readings (lux or W/m²)
  • round - round values to this number of decimals for calculation (default 4)
  • wu.... - Attribute name corresponding to parameter name from api. @@ -448,29 +436,29 @@ sub WUup_receive($) { network as parameter "tempf" (which indicates current temperature)
    Units get converted to angloamerican system automatically - (°C -> °F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)

    + (°C -> °F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)

    The following information is supported:
  • @@ -541,40 +529,40 @@ sub WUup_receive($) {
  • unit_windspeed - gibt die Einheit der Readings für die Windgeschwindigkeiten an (m/s oder km/h)
  • unit_solarradiation - gibt die Einheit der Readings für die - Sonneneinstrahlung an (lux oder W/m²)
  • + Sonneneinstrahlung an (lux oder W/m²)
  • round - Anzahl der Nachkommastellen zur Berechnung (Standard 4)
  • wu.... - Attributname entsprechend dem Parameternamen aus der API.
    - Jedes dieser Attribute enthält Informationen über zu sendende Wetterdaten + Jedes dieser Attribute enthält Informationen über zu sendende Wetterdaten im Format sensorName:readingName.
    Beispiel: attr WUup wutempf outside:temperature definiert - das Attribut wutempf und sendet das Reading "temperature" vom Gerät "outside" als Parameter "tempf" + das Attribut wutempf und sendet das Reading "temperature" vom Gerät "outside" als Parameter "tempf" (welches die aktuelle Temperatur angibt).
    Einheiten werden automatisch ins anglo-amerikanische System umgerechnet. - (°C -> °F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)

    - Unterstützte Angaben + (°C -> °;F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)

    + Unterstützte Angaben
  • @@ -592,7 +580,7 @@ sub WUup_receive($) { @@ -612,7 +600,7 @@ sub WUup_receive($) { "license": [ "gpl_2" ], - "version": "v0.9.12", + "version": "v0.9.14", "release_status": "stable", "author": [ "Manfred Winter "