mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
57_CALVIEW.pm: -added readings to today/tomorrow_
-added helptext for HideOlderThan git-svn-id: https://svn.fhem.de/fhem/trunk@17605 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ff14b9045e
commit
dcb4e46f9f
@ -271,6 +271,8 @@ sub CALVIEW_GetUpdate($){
|
|||||||
readingsBulkUpdate($hash, "today_".sprintf ('%03d', $todaycounter)."_etime", $termin->{etime});
|
readingsBulkUpdate($hash, "today_".sprintf ('%03d', $todaycounter)."_etime", $termin->{etime});
|
||||||
readingsBulkUpdate($hash, "today_".sprintf ('%03d', $todaycounter)."_mode", $termin->{mode});
|
readingsBulkUpdate($hash, "today_".sprintf ('%03d', $todaycounter)."_mode", $termin->{mode});
|
||||||
readingsBulkUpdate($hash, "today_".sprintf ('%03d', $todaycounter)."_timeshort", $timeshort );
|
readingsBulkUpdate($hash, "today_".sprintf ('%03d', $todaycounter)."_timeshort", $timeshort );
|
||||||
|
readingsBulkUpdate($hash, "today_".sprintf ('%03d', $todaycounter)."_weekday", $termin->{weekday} );
|
||||||
|
readingsBulkUpdate($hash, "today_".sprintf ('%03d', $todaycounter)."_weekdayname", $termin->{weekdayname} );
|
||||||
readingsBulkUpdate($hash, "today_".sprintf ('%03d', $todaycounter)."_duration", $termin->{duration});
|
readingsBulkUpdate($hash, "today_".sprintf ('%03d', $todaycounter)."_duration", $termin->{duration});
|
||||||
$todaycounter ++;
|
$todaycounter ++;
|
||||||
}
|
}
|
||||||
@ -292,6 +294,8 @@ sub CALVIEW_GetUpdate($){
|
|||||||
readingsBulkUpdate($hash, "tomorrow_".sprintf ('%03d', $tomorrowcounter)."_etime", $termin->{etime});
|
readingsBulkUpdate($hash, "tomorrow_".sprintf ('%03d', $tomorrowcounter)."_etime", $termin->{etime});
|
||||||
readingsBulkUpdate($hash, "tomorrow_".sprintf ('%03d', $tomorrowcounter)."_mode", $termin->{mode});
|
readingsBulkUpdate($hash, "tomorrow_".sprintf ('%03d', $tomorrowcounter)."_mode", $termin->{mode});
|
||||||
readingsBulkUpdate($hash, "tomorrow_".sprintf ('%03d', $tomorrowcounter)."_timeshort", $timeshort );
|
readingsBulkUpdate($hash, "tomorrow_".sprintf ('%03d', $tomorrowcounter)."_timeshort", $timeshort );
|
||||||
|
readingsBulkUpdate($hash, "tomorrow_".sprintf ('%03d', $tomorrowcounter)."_weekday", $termin->{weekday} );
|
||||||
|
readingsBulkUpdate($hash, "tomorrow_".sprintf ('%03d', $tomorrowcounter)."_weekdayname", $termin->{weekdayname} );
|
||||||
readingsBulkUpdate($hash, "tomorrow_".sprintf ('%03d', $tomorrowcounter)."_duration", $termin->{duration});
|
readingsBulkUpdate($hash, "tomorrow_".sprintf ('%03d', $tomorrowcounter)."_duration", $termin->{duration});
|
||||||
$tomorrowcounter++;
|
$tomorrowcounter++;
|
||||||
}
|
}
|
||||||
@ -388,7 +392,7 @@ sub CALVIEW_Notify($$)
|
|||||||
<a name="CALVIEW"></a>
|
<a name="CALVIEW"></a>
|
||||||
<h3>CALVIEW</h3>
|
<h3>CALVIEW</h3>
|
||||||
<ul>This module creates a device with deadlines based on calendar-devices of the 57_Calendar.pm module. You need to install the perl-modul Date::Parse!</ul>
|
<ul>This module creates a device with deadlines based on calendar-devices of the 57_Calendar.pm module. You need to install the perl-modul Date::Parse!</ul>
|
||||||
<ul>Actually the module supports only the "get <> next" function of the CALENDAR-Modul.</ul>
|
<ul>Please configure the attribut HideOlderThen in your CALENDAR-Device, that controls if old events from past are shown!</ul>
|
||||||
<b>Define</b>
|
<b>Define</b>
|
||||||
<ul><code>define <Name> CALVIEW <calendarname(s) separate with ','> <next> <updateintervall in sec (default 43200)></code></ul>
|
<ul><code>define <Name> CALVIEW <calendarname(s) separate with ','> <next> <updateintervall in sec (default 43200)></code></ul>
|
||||||
<ul><code>define myView CALVIEW Googlecalendar next</code></ul>
|
<ul><code>define myView CALVIEW Googlecalendar next</code></ul>
|
||||||
@ -457,7 +461,7 @@ sub CALVIEW_Notify($$)
|
|||||||
<a name="CALVIEW"></a>
|
<a name="CALVIEW"></a>
|
||||||
<h3>CALVIEW</h3>
|
<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. Ihr müsst das Perl-Modul Date::Parse installieren!</ul>
|
<ul>Dieses Modul erstellt ein Device welches als Readings Termine eines oder mehrere Kalender(s), basierend auf dem 57_Calendar.pm Modul, besitzt. Ihr müsst das Perl-Modul Date::Parse installieren!</ul>
|
||||||
<ul>Aktuell wird nur die "get <> next" Funktion vom CALENDAR untertstützt.</ul>
|
<ul>Bitte setzt das Attribut HideOlderThen in eurem CALENDAR_Device, da sonst auch vergangene Termine gezeigt werden.</ul>
|
||||||
<b>Define</b>
|
<b>Define</b>
|
||||||
<ul><code>define <Name> CALVIEW <Kalendername(n) getrennt durch ','> <next> <updateintervall in sek (default 43200)></code></ul>
|
<ul><code>define <Name> CALVIEW <Kalendername(n) getrennt durch ','> <next> <updateintervall in sek (default 43200)></code></ul>
|
||||||
<ul><code>define myView CALVIEW Googlekalender next</code></ul>
|
<ul><code>define myView CALVIEW Googlekalender next</code></ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user