mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 20:06:18 +00:00
57_CALVIEW: commandref improved and improved def check (for mode-parameter)
git-svn-id: https://svn.fhem.de/fhem/trunk@8224 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
72a5ea8f61
commit
4523804834
@ -1,4 +1,4 @@
|
||||
# $Id: 57_CALVIEW.pm 7010 2015-03-06 17:15:00Z chris1284 $
|
||||
# $Id: 57_CALVIEW.pm 7011 2015-03-016 18:30:00Z chris1284 $
|
||||
###########################
|
||||
# CALVIEW
|
||||
#
|
||||
@ -44,6 +44,7 @@ sub CALVIEW_Define($$){
|
||||
if($modes == 1) {$hash->{MODES} = "modeAlarm;modeStart;modeStarted;modeUpcoming"; }
|
||||
elsif($modes == 0){$hash->{MODES} = "modeAlarm;modeStart;modeStarted";}
|
||||
elsif($modes == 2){$hash->{MODES} = "all"; }
|
||||
else {return "invalid mode \"$modes\", use 0,1 or 2!"}
|
||||
InternalTimer(gettimeofday()+2, "CALVIEW_GetUpdate", $hash, 0);
|
||||
return undef;
|
||||
}
|
||||
@ -196,7 +197,7 @@ sub getsummery($)
|
||||
<h3>CALVIEW</h3>
|
||||
<ul>This module creates a device with deadlines based on calendar-devices of the 57_Calendar.pm module.</ul>
|
||||
<b>Define</b>
|
||||
<ul><code>define <Name> CALVIEW <calendarname(s) separate with ','> <0 for modeStarted Termine; 1 for modeStarted;modeUpcoming Termine> <updateintervall in sec (default 43200)></code></ul><br>
|
||||
<ul><code>define <Name> CALVIEW <calendarname(s) separate with ','> <0 for modeAlarm;modeStart;modeStarted; 1 for modeAlarm;modeStart;modeStarted;modeUpcoming; 2 for all (reading all)> <updateintervall in sec (default 43200)></code></ul><br>
|
||||
<ul><code>define myView CALVIEW Googlecalendar 1</code></ul><br>
|
||||
<ul><code>define myView CALVIEW Googlecalendar,holiday 1 900</code></ul><br>
|
||||
<a name="CALVIEW set"></a>
|
||||
@ -220,7 +221,7 @@ sub getsummery($)
|
||||
<h3>CALVIEW</h3>
|
||||
<ul>Dieses Modul erstellt ein Device welches als Readings Termine eines oder mehrere Kalender(s), basierend auf dem 57_Calendar.pm Modul, besitzt.</ul>
|
||||
<b>Define</b>
|
||||
<ul><code>define <Name> CALVIEW <Kalendername(n) getrennt durch ','> <0 für modeStarted Termine; 1 für modeStarted;modeUpcoming Termine> <updateintervall in sek (default 43200)></code></ul><br>
|
||||
<ul><code>define <Name> CALVIEW <Kalendername(n) getrennt durch ','> <0 für modeAlarm;modeStart;modeStarted; 1 für modeAlarm;modeStart;modeStarted;modeUpcoming; 2 für alle (reading all)> <updateintervall in sek (default 43200)></code></ul><br>
|
||||
<ul><code>define myView CALVIEW Googlekalender 1</code></ul><br>
|
||||
<ul><code>define myView CALVIEW Googlekalender,holiday 1 900</code></ul><br>
|
||||
<a name="CALVIEW set"></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user