From 9b1f69228f86609a3696b6daba1d454dd4187350 Mon Sep 17 00:00:00 2001 From: mahowi <> Date: Fri, 5 Jul 2019 07:55:58 +0000 Subject: [PATCH] 59_WUup: add Meta support git-svn-id: https://svn.fhem.de/fhem/trunk@19781 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/59_WUup.pm | 86 ++++++++++++++++++++++++++++++++++++++------ 2 files changed, 77 insertions(+), 10 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 1e7638c6d..f1a2d7cc1 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. + - feature: 59_WUup: add Meta support - new: 10_FS10: New module for controling FS10 devices - change: 59_WUup: replaced link to API documentation - feature: 77_UWZ: change to packages, add Meta Support diff --git a/fhem/FHEM/59_WUup.pm b/fhem/FHEM/59_WUup.pm index d3f85d2ed..051249650 100644 --- a/fhem/FHEM/59_WUup.pm +++ b/fhem/FHEM/59_WUup.pm @@ -31,6 +31,7 @@ use warnings; use Time::HiRes qw(gettimeofday); use HttpUtils; use UConv; +use FHEM::Meta; my $version = "0.9.10"; @@ -70,10 +71,15 @@ sub WUup_Initialize($) { . "wuwindspdmph_avg2m wuwindspeedmph wuAqPM2.5 wuAqPM10 " . $readingFnAttributes; $hash->{VERSION} = $version; + + return FHEM::Meta::InitMod( __FILE__, $hash ); } sub WUup_Define($$$) { my ( $hash, $def ) = @_; + + return $@ unless ( FHEM::Meta::SetInternals($hash) ); + my @a = split( "[ \t][ \t]*", $def ); return "syntax: define WUup " @@ -370,20 +376,25 @@ sub WUup_receive($) { # 2018-04-13 added AqPM2.5 and AqPM10 # 2018-08-15 added attribute unit_solarradiation # 2019-07-04 replaced link to API documentation +# 2019-07-05 add Meta support # ################################################################################ =pod + +=encoding utf8 + =item helper =item summary sends weather data to Weather Underground =item summary_DE sendet Wetterdaten zu Weather Underground + =begin html - +

WUup

    - + Define
      @@ -397,14 +408,14 @@ sub WUup_receive($) {


    - + Set-Commands
    • update - send data to Weather Underground


    - + Get-Commands

      @@ -412,7 +423,7 @@ sub WUup_receive($) {


    - + Attributes

    =end html + =begin html_DE - +

    WUup

      - + Define
        @@ -500,14 +512,14 @@ sub WUup_receive($) {


      - + Set-Befehle
      • update - sende Daten an Weather Underground


      - + Get-Befehle

        @@ -515,7 +527,7 @@ sub WUup_receive($) {


      - + Attribute

      =end html_DE + +=for :application/json;q=META.json 59_WUup.pm +{ + "abstract": "sends weather data to Weather Underground", + "description": "This module provides connection to Weather Underground to send data from your own weather station.", + "x_lang": { + "de": { + "abstract": "sendet Wetterdaten zu Weather Underground", + "description": "Dieses Modul stellt eine Verbindung zu Weather Underground her, um Daten einer eigenen Wetterstation zu versenden" + } + }, + "license": [ + "gpl_2" + ], + "version": "v0.9.11", + "release_status": "stable", + "author": [ + "Manfred Winter " + ], + "x_fhem_maintainer": [ + "mahowi" + ], + "x_fhem_maintainer_github": [ + "mahowi" + ], + "keywords": [ + "fhem-mod", + "wunderground", + "pws", + "weather" + ], + "prereqs": { + "runtime": { + "requires": { + "FHEM": 0, + "FHEM::Meta": 0, + "HttpUtils": 0, + "UConv": 0, + "Time::HiRes": 0, + "perl": 5.014 + }, + "recommends": { + }, + "suggests": { + } + } + }, + "resources": { + "x_wiki" : { + } + } +} +=end :application/json;q=META.json + =cut