mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 11:01:59 +00:00
57_Calendar: new attribute timeout
git-svn-id: https://svn.fhem.de/fhem/trunk@24875 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9a2bec0568
commit
a0f0db2695
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature: 57_Calendar: new attribute timeout
|
||||||
- change: 10_KNX: major rewrite of the module. pls. check forum
|
- change: 10_KNX: major rewrite of the module. pls. check forum
|
||||||
https://forum.fhem.de/index.php/topic,122582.0.html
|
https://forum.fhem.de/index.php/topic,122582.0.html
|
||||||
before shutdown/restart!
|
before shutdown/restart!
|
||||||
|
@ -1736,6 +1736,7 @@ sub Calendar_Initialize($) {
|
|||||||
$hash->{AttrList}= "update:none,onUrlChanged ".
|
$hash->{AttrList}= "update:none,onUrlChanged ".
|
||||||
"synchronousUpdate:0,1 ".
|
"synchronousUpdate:0,1 ".
|
||||||
"delay " .
|
"delay " .
|
||||||
|
"timeout " .
|
||||||
"removevcalendar:0,1 " .
|
"removevcalendar:0,1 " .
|
||||||
"ignoreCancelled:0,1 ".
|
"ignoreCancelled:0,1 ".
|
||||||
"SSLVerify:0,1 ".
|
"SSLVerify:0,1 ".
|
||||||
@ -2619,12 +2620,13 @@ sub Calendar_GetUpdate($$$;$) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $timeout= AttrVal($name, "timeout", 30);
|
||||||
HttpUtils_NonblockingGet({
|
HttpUtils_NonblockingGet({
|
||||||
url => $url,
|
url => $url,
|
||||||
hideurl => 1,
|
hideurl => 1,
|
||||||
noshutdown => 1,
|
noshutdown => 1,
|
||||||
hash => $hash,
|
hash => $hash,
|
||||||
timeout => 30,
|
timeout => $timeout,
|
||||||
type => 'caldata',
|
type => 'caldata',
|
||||||
removeall => $removeall,
|
removeall => $removeall,
|
||||||
sslargs => $SSLArgs,
|
sslargs => $SSLArgs,
|
||||||
@ -3739,6 +3741,12 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
load error rates.
|
load error rates.
|
||||||
</li><p>
|
</li><p>
|
||||||
|
|
||||||
|
<li><code>timeout <time></code><br>
|
||||||
|
The timeout in seconds for retrieving the calendar from its source. The default is 30.
|
||||||
|
Increase for very large calendars that take time to be assembled and retrieved from
|
||||||
|
their sources.
|
||||||
|
</li><p>
|
||||||
|
|
||||||
<li><code>removevcalendar 0|1</code><br>
|
<li><code>removevcalendar 0|1</code><br>
|
||||||
If this attribute is set to 1, the vCalendar will be discarded after the processing to reduce the memory consumption of the module.
|
If this attribute is set to 1, the vCalendar will be discarded after the processing to reduce the memory consumption of the module.
|
||||||
A retrieval via <code>get <name> vcalendar</code> is then no longer possible.
|
A retrieval via <code>get <name> vcalendar</code> is then no longer possible.
|
||||||
@ -4395,13 +4403,19 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
URL seit dem letzten Aufruf verändert hat, insbesondere nach der Auswertung von wildcards im define.<br/>
|
URL seit dem letzten Aufruf verändert hat, insbesondere nach der Auswertung von wildcards im define.<br/>
|
||||||
</li><p>
|
</li><p>
|
||||||
|
|
||||||
<li><code>delay <time></code><br>
|
<li><code>delay <time></code><br>
|
||||||
Wartezeit in Sekunden nach der Initialisierung von FHEM oder einer Konfigurationsänderung bevor
|
Wartezeit in Sekunden nach der Initialisierung von FHEM oder einer Konfigurationsänderung bevor
|
||||||
der Kalender tatsächlich von der Quelle geladen wird. Wenn nicht gesetzt wird eine
|
der Kalender tatsächlich von der Quelle geladen wird. Wenn nicht gesetzt wird eine
|
||||||
Zufallszeit zwischen 10 und 29 Sekunden gewählt. Wenn mehrere Kalender definiert sind, führen
|
Zufallszeit zwischen 10 und 29 Sekunden gewählt. Wenn mehrere Kalender definiert sind, führen
|
||||||
gestaffelte Wartezeiten zu einer Verminderung der Ladefehleranfälligkeit.
|
gestaffelte Wartezeiten zu einer Verminderung der Ladefehleranfälligkeit.
|
||||||
</li><p>
|
</li><p>
|
||||||
|
|
||||||
|
<li><code>timeout <time></code><br>
|
||||||
|
Der Timeout in Sekunden um einen Kalender von seiner Quelle zu holen. Standard ist 30.
|
||||||
|
Erhöhen für sehr große Kalender, bei denen es eine Weile dauert,
|
||||||
|
sie an der Quelle zusammenzustellen und herunterzuladen.
|
||||||
|
</li><p>
|
||||||
|
|
||||||
<li><code>removevcalendar 0|1</code><br>
|
<li><code>removevcalendar 0|1</code><br>
|
||||||
Wenn dieses Attribut auf 1 gesetzt ist, wird der vCalendar nach der Verarbeitung verworfen,
|
Wenn dieses Attribut auf 1 gesetzt ist, wird der vCalendar nach der Verarbeitung verworfen,
|
||||||
gleichzeitig reduziert sich der Speicherverbrauch des Moduls.
|
gleichzeitig reduziert sich der Speicherverbrauch des Moduls.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user