From ca86c172efe67a995d481e76d8845283140225b3 Mon Sep 17 00:00:00 2001 From: tpoitzsch Date: Tue, 18 Nov 2014 21:26:30 +0000 Subject: [PATCH] FritzFon: Docu git-svn-id: https://svn.fhem.de/fhem/trunk@7018 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/72_FRITZFON.pm | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/fhem/FHEM/72_FRITZFON.pm b/fhem/FHEM/72_FRITZFON.pm index 0e5d8965f..321a87fc5 100644 --- a/fhem/FHEM/72_FRITZFON.pm +++ b/fhem/FHEM/72_FRITZFON.pm @@ -207,9 +207,22 @@ FRITZFON_Set($$@) return "Missing parameters after command 'set $name $cmd'"; } } + elsif ( lc $cmd eq 'startradio') + { + if (int @val > 0) + { + # FRITZFON_Ring $hash, @val; # join("|", @val); + return undef; + } + else + { + return "Missing parameters after command 'set $name $cmd'"; + } + } my $list = "reinit:noArg" . " message" - . " ring"; + . " ring" + . " startradio"; return "Unknown argument $cmd, choose one of $list"; } # end FRITZFON_Set @@ -479,17 +492,22 @@ FRITZFON_Exec($$)
Reads in some information of the connected phone devices.
-
  • set <name> ring <internalNumber> [duration] [ringTone] -
    - Rings the internal number for duration (seconds) and (if possible) with the given ring tone. -
    -

  • set <name> message <text>
    Stores the text to show it later as 'caller' on the ringing phone. This is done by changing the name of the calling internal number. Maximal 30 characters are allowed.

  • +
  • set <name> ring <internalNumber> [duration] [ringTone] +
    + Rings the internal number for duration (seconds) and (if possible) with the given ring tone. +
    +

  • +
  • set <name> startradio <internalNumber> [name] +
    + not implemented yet. Start the internet radio on the given Fritz!Fon +
    +