From 71f061486913d416b3427fb67aa43ef2bfbe0ac5 Mon Sep 17 00:00:00 2001 From: betateilchen Date: Mon, 29 Jul 2013 08:50:29 +0000 Subject: [PATCH] - fixed: some typos in documentation - added command: "set send" git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3527 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_openweathermap.pm | 36 ++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/98_openweathermap.pm b/fhem/FHEM/98_openweathermap.pm index fc9c696db..571708720 100644 --- a/fhem/FHEM/98_openweathermap.pm +++ b/fhem/FHEM/98_openweathermap.pm @@ -33,6 +33,10 @@ # ############################################################################## # Changelog: +# 2013-07-28 initial release +# 2013-07-29 fixed some typos +# added "set send" +# package main; @@ -94,6 +98,11 @@ OWO_Set($@){ given($cmd){ when("?") { return $usage; } + when("send"){ + OWO_GetStatus($hash,1); + return; + } + when("stationByName"){ $urlString = $urlString."?q="; my $count; @@ -293,7 +302,7 @@ OWO_Define($$){ readingsEndUpdate($hash, 1); InternalTimer(gettimeofday()+$hash->{helper}{INTERVAL}, "OWO_GetStatus", $hash, 0); - Log 3, "openweather: $name created"; + Log 3, "openweather $name created"; return; } @@ -464,6 +473,7 @@ OWO_isday($$){
  • you can use all task alone, in any combination or all together

  • +
  • 1. providing your own weather data to owo network

    • @@ -474,6 +484,7 @@ OWO_isday($$){ attr myWeather owoSrc00 temp:sensorname:temperature

    +
  • 2. set a weather station from owo network as data source for your fhem installation

    • @@ -492,6 +503,7 @@ OWO_isday($$){

    +
  • 3. get weather data from a selected weather station once (e.g. to do own presentations)

    • @@ -517,17 +529,33 @@ OWO_isday($$){ Set-Commands

        + set <name> send
        +
        +
          start an update cycle manually: +
            +
          • send own data
          • +
          • update c_* readings from "set" station (if defined)
          • +
            +
          • does not affect or re-trigger running timer cycles!
          • +
          • main purpose: for debugging and testing
          • +
          +
        +

        set <name> <stationById stationId>|<stationByName stationName>|<stationByGeo> [lat lon]>

        + +



      Get-Commands

        - set <name> <stationById stationId>|<stationByName stationName>|<stationByGeo> [lat lon]> + get <name> <stationById stationId>|<stationByName stationName>|<stationByGeo> [lat lon]>

        - Used exactly as the "Set" command, but with two differences:

        + +
        + Used exactly as the "set" command, but with two differences:

        • all generated readings use prefix "g_" instead of "c_"
        • readings will not be updated automatically
        • @@ -562,7 +590,7 @@ OWO_isday($$){
        • owoSrc00 ... owoSrc19
        • Each of this attributes contains information about weather data to be sent in format owoParam:sensorName:readingName:offset
          Example: attr owo owoSrc00 temp:outside:temperature will define an attribut owoSrc00, and
          - reading "temperature" from device "outside" will be sent to owo network als paramater "temp" (which indicates current temperature)
          + reading "temperature" from device "outside" will be sent to owo network als paramater "temp" (which indicates current temperature)
          Parameter "offset" will be added to the read value (e.g. necessary to send dewpoint - use offset 273.15 to send correct value)