mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
57_Calendar: new feature get ...events include:... returnType:...
git-svn-id: https://svn.fhem.de/fhem/trunk@19937 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
00b036721e
commit
9a0081a2e5
55
fhem/CHANGED
55
fhem/CHANGED
@ -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: get ...events include:... returnType:...
|
||||||
- feature: 44_TEK603: ser2net support
|
- feature: 44_TEK603: ser2net support
|
||||||
- feature: 73_AutoShuttersControl: add new Dev TYPE in %posSetCmds,
|
- feature: 73_AutoShuttersControl: add new Dev TYPE in %posSetCmds,
|
||||||
remove old commandref text
|
remove old commandref text
|
||||||
@ -9,13 +10,13 @@
|
|||||||
- feature: 73_AutoShuttersControl: fix little commandref typo,
|
- feature: 73_AutoShuttersControl: fix little commandref typo,
|
||||||
expand ascAPIget Fn
|
expand ascAPIget Fn
|
||||||
- bugfix: 93_Log2Syslog: fix warning uninitialized value in numeric (>=)
|
- bugfix: 93_Log2Syslog: fix warning uninitialized value in numeric (>=)
|
||||||
- feature: 93_Log2Syslog: V5.8.1, new attributes and further developments
|
- feature: 93_Log2Syslog: V5.8.1, new attributes and further developments
|
||||||
regarding to Forum: topic,75426.msg958836.html#msg958836,
|
regarding to Forum: topic,75426.msg958836.html#msg958836,
|
||||||
use "get <device> versionNotes" for further informations
|
use "get <device> versionNotes" for further informations
|
||||||
- change: 77_UWZ: remove last InternalTimer Fn parameter
|
- change: 77_UWZ: remove last InternalTimer Fn parameter
|
||||||
- feature: 14_SD_WS.pm: crc calculation fixes and
|
- feature: 14_SD_WS.pm: crc calculation fixes and
|
||||||
new protocol for Atech wireless weather station
|
new protocol for Atech wireless weather station
|
||||||
added new sensor TECVANCE TV-4848
|
added new sensor TECVANCE TV-4848
|
||||||
- change: 14_SD_RSL.pm: changed loglevel from 4 to 3 and improved readability
|
- change: 14_SD_RSL.pm: changed loglevel from 4 to 3 and improved readability
|
||||||
- feature: 14_SD_WS07.pm: new sensor / station Auriol AFW 2 A1, IAN: 297514
|
- feature: 14_SD_WS07.pm: new sensor / station Auriol AFW 2 A1, IAN: 297514
|
||||||
- feature: 90_SIGNALduino_un.pm: support tracing geiger rohrmotor signals
|
- feature: 90_SIGNALduino_un.pm: support tracing geiger rohrmotor signals
|
||||||
@ -23,13 +24,13 @@
|
|||||||
Option to reconstruct last bit of transmission in MU and MS signals
|
Option to reconstruct last bit of transmission in MU and MS signals
|
||||||
if there is enough data to detect it.
|
if there is enough data to detect it.
|
||||||
Moved protocol hash into a separate perl module instead of loading
|
Moved protocol hash into a separate perl module instead of loading
|
||||||
a simple textfile into a variable.
|
a simple textfile into a variable.
|
||||||
Added standard deviceOverview output in detail page #545
|
Added standard deviceOverview output in detail page #545
|
||||||
new internal (Protocol_ID), which will provide the protocolID in
|
new internal (Protocol_ID), which will provide the protocolID in
|
||||||
logcial modules.
|
logcial modules.
|
||||||
Drop-down list for set command config CC1101 (#589)
|
Drop-down list for set command config CC1101 (#589)
|
||||||
add drop-down list for cc1101_bWidth, cc1101_rAmpl and cc1101_sens
|
add drop-down list for cc1101_bWidth, cc1101_rAmpl and cc1101_sens
|
||||||
- change: 49_SSCam: PTZ panel internal code changed
|
- change: 49_SSCam: PTZ panel internal code changed
|
||||||
- bugfix: 49_SSCam: fix warnings
|
- bugfix: 49_SSCam: fix warnings
|
||||||
- feature: 49_SSCam: support of FTUI Widget with SSCamSTRM, new attributes
|
- feature: 49_SSCam: support of FTUI Widget with SSCamSTRM, new attributes
|
||||||
in SSCamSTRM, some fixes
|
in SSCamSTRM, some fixes
|
||||||
@ -41,11 +42,11 @@
|
|||||||
- feature: 71_YAMAHA_NP: New commands 'checkForNewFirmware' and 'friendlyName'
|
- feature: 71_YAMAHA_NP: New commands 'checkForNewFirmware' and 'friendlyName'
|
||||||
- feature: 95_Astro: v2.1.0: add alternative global functions
|
- feature: 95_Astro: v2.1.0: add alternative global functions
|
||||||
to replace SUNRISE_EL
|
to replace SUNRISE_EL
|
||||||
- feature: 98_WeekdayTimer now supports holiday2we entries
|
- feature: 98_WeekdayTimer now supports holiday2we entries
|
||||||
weekEnd and noWeekEnd
|
weekEnd and noWeekEnd
|
||||||
- bugfix: 71_YAMAHA_NP: fixed 'timerRepeat'
|
- bugfix: 71_YAMAHA_NP: fixed 'timerRepeat'
|
||||||
- new: 76_SMAPortal: new module to integrate the SMA Sunny Portal
|
- new: 76_SMAPortal: new module to integrate the SMA Sunny Portal
|
||||||
(comes with 76_SMAPortalSPG graphic device and a
|
(comes with 76_SMAPortalSPG graphic device and a
|
||||||
widget for FTUI), special thanks to Wzut and Xguide !
|
widget for FTUI), special thanks to Wzut and Xguide !
|
||||||
- bugfix: 95_Astro: v2.0.3: improved Windows POSIX compatibility for
|
- bugfix: 95_Astro: v2.0.3: improved Windows POSIX compatibility for
|
||||||
timezone support
|
timezone support
|
||||||
@ -60,8 +61,8 @@
|
|||||||
- feature: 82_LGTV_WebOS: add wakeupCmd attribut to be executed when turning
|
- feature: 82_LGTV_WebOS: add wakeupCmd attribut to be executed when turning
|
||||||
on an absent device. Can be an FHEM command or Perl command
|
on an absent device. Can be an FHEM command or Perl command
|
||||||
- bugfix: 32_withings: handle duplicate pwv values
|
- bugfix: 32_withings: handle duplicate pwv values
|
||||||
- change: 49_SSCam: increase get SID timeout to at least 60 s to avoid
|
- change: 49_SSCam: increase get SID timeout to at least 60 s to avoid
|
||||||
potential auth.cgi problem, set compatibility to SVS
|
potential auth.cgi problem, set compatibility to SVS
|
||||||
version 8.2.4, improve disable/enable behavior
|
version 8.2.4, improve disable/enable behavior
|
||||||
- bugfix: 71_YAMAHA_NP: Fixed 'timerVolume'
|
- bugfix: 71_YAMAHA_NP: Fixed 'timerVolume'
|
||||||
- new: huedevice.template: New template for HUEDevice
|
- new: huedevice.template: New template for HUEDevice
|
||||||
@ -111,7 +112,7 @@
|
|||||||
addcmd lock_remote
|
addcmd lock_remote
|
||||||
change devstateicon/cmd
|
change devstateicon/cmd
|
||||||
- change: 55_PIFACE: now WiringPI V >= 2.46 supported
|
- change: 55_PIFACE: now WiringPI V >= 2.46 supported
|
||||||
- feature: 73_AutoShuttersControl: add new attribut
|
- feature: 73_AutoShuttersControl: add new attribut
|
||||||
ASC_Sgading_MinMax_Elevation, many bug fixes
|
ASC_Sgading_MinMax_Elevation, many bug fixes
|
||||||
- bugfix: 88_HMCCU: Fixed noInitialUpdate bug
|
- bugfix: 88_HMCCU: Fixed noInitialUpdate bug
|
||||||
- bugfix: 70_BOTVAC: set robotSounds filter
|
- bugfix: 70_BOTVAC: set robotSounds filter
|
||||||
@ -121,7 +122,7 @@
|
|||||||
remove style element from cleaning statistics
|
remove style element from cleaning statistics
|
||||||
- bugfix: 73_AutoShuttersControl: fix litte bugs and change manual drive
|
- bugfix: 73_AutoShuttersControl: fix litte bugs and change manual drive
|
||||||
detection
|
detection
|
||||||
- feature: 49_SSCam: In detailview are buttons provided to open the camera
|
- feature: 49_SSCam: In detailview are buttons provided to open the camera
|
||||||
native setup screen or Synology Surveillance Station and
|
native setup screen or Synology Surveillance Station and
|
||||||
the Synology Surveillance Station online help
|
the Synology Surveillance Station online help
|
||||||
- bugfix: 73_DoorBird: bugfix for timing between History-Image + event
|
- bugfix: 73_DoorBird: bugfix for timing between History-Image + event
|
||||||
@ -146,7 +147,7 @@
|
|||||||
- change: 49_SSCam: attributes rec/snapemailtxt, rec/snaptelegramtxt may
|
- change: 49_SSCam: attributes rec/snapemailtxt, rec/snaptelegramtxt may
|
||||||
contain ":", StmKey quoted depending on attribute
|
contain ":", StmKey quoted depending on attribute
|
||||||
noQuotesForSID (Forum: #45671.msg938236.html#msg938236)
|
noQuotesForSID (Forum: #45671.msg938236.html#msg938236)
|
||||||
- change: 77_SMAEM: set reset to delete and reinitialize cacheFile,
|
- change: 77_SMAEM: set reset to delete and reinitialize cacheFile,
|
||||||
support of Installer.pm/Meta.pm added
|
support of Installer.pm/Meta.pm added
|
||||||
- change: 73_GardenaSmartBridge: change loglevel
|
- change: 73_GardenaSmartBridge: change loglevel
|
||||||
- change: 50_TelegramBot: allow \s, addtl silenCmds, fixes
|
- change: 50_TelegramBot: allow \s, addtl silenCmds, fixes
|
||||||
@ -170,7 +171,7 @@
|
|||||||
reads Client-Insights to update blocked reading
|
reads Client-Insights to update blocked reading
|
||||||
- bugfix: 59_Weather: fix little bug then create weblink
|
- bugfix: 59_Weather: fix little bug then create weblink
|
||||||
- bugfix: 88_HMCCU: Flag for disabling initial device update
|
- bugfix: 88_HMCCU: Flag for disabling initial device update
|
||||||
- bugfix: 10_MYSENSORS_DEVICE: prevent fhem crashing by ack timeout
|
- bugfix: 10_MYSENSORS_DEVICE: prevent fhem crashing by ack timeout
|
||||||
at higher verobse levels
|
at higher verobse levels
|
||||||
- change: 98_Heating_Control.pm will be removed soon. Users will need to
|
- change: 98_Heating_Control.pm will be removed soon. Users will need to
|
||||||
change their device definitions to 98_WeekdayTimer; supporting
|
change their device definitions to 98_WeekdayTimer; supporting
|
||||||
@ -195,7 +196,7 @@
|
|||||||
separate readings for heatrbeat, smartSleep & NACK
|
separate readings for heatrbeat, smartSleep & NACK
|
||||||
- bugfix: 73_GardenaSmartBridge: fix undefined_value Error
|
- bugfix: 73_GardenaSmartBridge: fix undefined_value Error
|
||||||
- feature: 98_Text2Speech: add Amazon Polly as new suggested TTS-Engine
|
- feature: 98_Text2Speech: add Amazon Polly as new suggested TTS-Engine
|
||||||
due best quality
|
due best quality
|
||||||
- bugfix: 73_AutoShuttersControl: fix shading absent and coming home, fix
|
- bugfix: 73_AutoShuttersControl: fix shading absent and coming home, fix
|
||||||
Reading ASC_Time_PrivacyDriveDown, fix blocking shutter then
|
Reading ASC_Time_PrivacyDriveDown, fix blocking shutter then
|
||||||
shading drive and terrace door open
|
shading drive and terrace door open
|
||||||
@ -212,7 +213,7 @@
|
|||||||
- change: 50_MOBILEALERTSGW: Checksum check added
|
- change: 50_MOBILEALERTSGW: Checksum check added
|
||||||
- change: 93_DbRep: check index "Report_Idx" during first DB connect
|
- change: 93_DbRep: check index "Report_Idx" during first DB connect
|
||||||
- change: 98_RandomTimer: remove 59_Twilight dependency
|
- change: 98_RandomTimer: remove 59_Twilight dependency
|
||||||
- feature: 93_DbRep: new set "index" command to manage needed indexe for
|
- feature: 93_DbRep: new set "index" command to manage needed indexe for
|
||||||
DbLog and DbRep, minor code changes
|
DbLog and DbRep, minor code changes
|
||||||
- change: 98_WeekdayTimer: remove 59_Twilight dependency
|
- change: 98_WeekdayTimer: remove 59_Twilight dependency
|
||||||
- feature: 73_AutoShuttersControl: new major release 0.6, add wind support,
|
- feature: 73_AutoShuttersControl: new major release 0.6, add wind support,
|
||||||
@ -236,9 +237,9 @@
|
|||||||
!!! NOTE !!! attr shutdownWait will be deleted it set and
|
!!! NOTE !!! attr shutdownWait will be deleted it set and
|
||||||
an appropriated log message appears.
|
an appropriated log message appears.
|
||||||
- bugfix: 70_BRAVIA: fix channel presets
|
- bugfix: 70_BRAVIA: fix channel presets
|
||||||
- bugfix: 49_SSCam: fix perl warnings, Forum: 45671.msg927912.html#msg927912
|
- bugfix: 49_SSCam: fix perl warnings, Forum: 45671.msg927912.html#msg927912
|
||||||
- new: 10_WS980: new module to control the WS980Wifi weather station
|
- new: 10_WS980: new module to control the WS980Wifi weather station
|
||||||
- feature: 93_DbRep: the "explain" SQL-command is possible now in sqlCmd
|
- feature: 93_DbRep: the "explain" SQL-command is possible now in sqlCmd
|
||||||
- feature: 10_MYSENSORS_DEVICE: add attrTemplate support
|
- feature: 10_MYSENSORS_DEVICE: add attrTemplate support
|
||||||
- change: 00_MYSENSORS: enhance support for node functions
|
- change: 00_MYSENSORS: enhance support for node functions
|
||||||
when using multiple GW's
|
when using multiple GW's
|
||||||
@ -251,7 +252,7 @@
|
|||||||
Support
|
Support
|
||||||
- change: 73_AMADCommBridge: change to perl packages, add Meta and Installer
|
- change: 73_AMADCommBridge: change to perl packages, add Meta and Installer
|
||||||
Support
|
Support
|
||||||
- change: 49_SSCam: delay FHEM shutdown as long as sessions are not
|
- change: 49_SSCam: delay FHEM shutdown as long as sessions are not
|
||||||
terminated, add Meta.pm support
|
terminated, add Meta.pm support
|
||||||
- feature: 30_HUEBridge: added schedules (by PPP01)
|
- feature: 30_HUEBridge: added schedules (by PPP01)
|
||||||
- change: 74_GardenaSmartDevice: change on-for-timer time format
|
- change: 74_GardenaSmartDevice: change on-for-timer time format
|
||||||
@ -298,7 +299,7 @@
|
|||||||
a optional given device, fix deldoublets in SQLite
|
a optional given device, fix deldoublets in SQLite
|
||||||
- bugfix: 49_SSCam: V8.11.3, fhem hang in loop while restart or get snapinfo
|
- bugfix: 49_SSCam: V8.11.3, fhem hang in loop while restart or get snapinfo
|
||||||
Forum: #45671.msg915546.html#msg915546
|
Forum: #45671.msg915546.html#msg915546
|
||||||
- feature: mqtt2.template: A_00_MQTT2_CLIENT_general_bridge revised for better
|
- feature: mqtt2.template: A_00_MQTT2_CLIENT_general_bridge revised for better
|
||||||
compability with popular devices
|
compability with popular devices
|
||||||
- bugfix: 49_SSCam: back to V8.11.0 due to some problems with 8.11.2
|
- bugfix: 49_SSCam: back to V8.11.0 due to some problems with 8.11.2
|
||||||
- feature: 70_ENIGMA2: add remotecontrolChannel attribute to customize
|
- feature: 70_ENIGMA2: add remotecontrolChannel attribute to customize
|
||||||
@ -316,7 +317,7 @@
|
|||||||
- changed: 93_DbLog: minor change of Log entry
|
- changed: 93_DbLog: minor change of Log entry
|
||||||
- changed: 70_Pushover: attribute 'storage' was renamed to 'storagePath'
|
- changed: 70_Pushover: attribute 'storage' was renamed to 'storagePath'
|
||||||
and is now visible in FHEMWEB
|
and is now visible in FHEMWEB
|
||||||
- changed: 98_weekprofile: use topic name from reading 'active_topic'
|
- changed: 98_weekprofile: use topic name from reading 'active_topic'
|
||||||
if topic name isn't given
|
if topic name isn't given
|
||||||
- changed: 98_STOCKQUOTES: moved to contrib since not maintained and broken
|
- changed: 98_STOCKQUOTES: moved to contrib since not maintained and broken
|
||||||
due to termination of Yahoo Finance API
|
due to termination of Yahoo Finance API
|
||||||
@ -337,7 +338,7 @@
|
|||||||
- bugfix: 74_UnififSwitch: fixed poe restart
|
- bugfix: 74_UnififSwitch: fixed poe restart
|
||||||
- feature: 57_Calendar.pm: new features and attributes
|
- feature: 57_Calendar.pm: new features and attributes
|
||||||
german commandref added
|
german commandref added
|
||||||
- bugfix: 00_SIGNALduino: Load protocolHash from web if file is
|
- bugfix: 00_SIGNALduino: Load protocolHash from web if file is
|
||||||
missing on fs
|
missing on fs
|
||||||
- bugfix: 49_SSCam: some warnings, Forum:#97706
|
- bugfix: 49_SSCam: some warnings, Forum:#97706
|
||||||
- bugfix: 88_HMCCU: Fixed minor bugs.
|
- bugfix: 88_HMCCU: Fixed minor bugs.
|
||||||
@ -345,19 +346,19 @@
|
|||||||
new webmenu "Display protocollist".
|
new webmenu "Display protocollist".
|
||||||
Serval new protocols added.
|
Serval new protocols added.
|
||||||
New Oregon V3 sensors suppored.
|
New Oregon V3 sensors suppored.
|
||||||
Firmware for avr boards can be downloaded and flashed.
|
Firmware for avr boards can be downloaded and flashed.
|
||||||
on demand from gitghub releases.
|
on demand from gitghub releases.
|
||||||
supports dupTimeout on same iodev
|
supports dupTimeout on same iodev
|
||||||
change: 00_SIGNALduino: Attribute hardware does not longer support nano
|
change: 00_SIGNALduino: Attribute hardware does not longer support nano
|
||||||
select nano328 instead
|
select nano328 instead
|
||||||
- feature: 14_SD_RSL: Updated implementation for "all" button on devices
|
- feature: 14_SD_RSL: Updated implementation for "all" button on devices
|
||||||
- feature: 14_SD_WS: support sensors E0001PA,S522,TX-EZ6,other
|
- feature: 14_SD_WS: support sensors E0001PA,S522,TX-EZ6,other
|
||||||
reading sendmode humidityTrend, temperatureTrend,
|
reading sendmode humidityTrend, temperatureTrend,
|
||||||
windspeed, batteryState added
|
windspeed, batteryState added
|
||||||
attr max-deviation-temp and -hum added
|
attr max-deviation-temp and -hum added
|
||||||
- changed: 14_SD_WS07: attr correction-xxx to offset-xxx renamed!
|
- changed: 14_SD_WS07: attr correction-xxx to offset-xxx renamed!
|
||||||
- feature: 14_SD_WS07: new negation-batt attribute
|
- feature: 14_SD_WS07: new negation-batt attribute
|
||||||
Temp only sensors supported
|
Temp only sensors supported
|
||||||
support for max deviation attribute
|
support for max deviation attribute
|
||||||
- changed: 14_SD_WS09: reading batteryState added, commandref extended
|
- changed: 14_SD_WS09: reading batteryState added, commandref extended
|
||||||
- changed: 14_Hideki: reading batteryState added
|
- changed: 14_Hideki: reading batteryState added
|
||||||
@ -374,7 +375,7 @@
|
|||||||
equivalent
|
equivalent
|
||||||
- bugfix: 70_BOTVAC: solved recursion while looking up hostname of server
|
- bugfix: 70_BOTVAC: solved recursion while looking up hostname of server
|
||||||
- feature: limit reading/attr name length in featurelevel 6.0+ (Forum #97493)
|
- feature: limit reading/attr name length in featurelevel 6.0+ (Forum #97493)
|
||||||
- feature: 49_SSCam: send recordings by telegram is integrated as well as
|
- feature: 49_SSCam: send recordings by telegram is integrated as well as
|
||||||
sending snapshots
|
sending snapshots
|
||||||
- bugfix: 74_XiaomiBTLESens: fix Undefined subroutine
|
- bugfix: 74_XiaomiBTLESens: fix Undefined subroutine
|
||||||
&XiaomiBTLESens::makeDeviceName Bug
|
&XiaomiBTLESens::makeDeviceName Bug
|
||||||
@ -384,8 +385,8 @@
|
|||||||
- changed. 98_WOL: remove dependency on Twilight + German COmmandref
|
- changed. 98_WOL: remove dependency on Twilight + German COmmandref
|
||||||
- bugfix: 98_WeekdayTimer: Label not found for "next E"
|
- bugfix: 98_WeekdayTimer: Label not found for "next E"
|
||||||
- bugfix: 70_ONKYO_AVR: model Reading not written correctly
|
- bugfix: 70_ONKYO_AVR: model Reading not written correctly
|
||||||
- feature: 93_DbRep: executeBeforeProc / executeAfterProc is now available
|
- feature: 93_DbRep: executeBeforeProc / executeAfterProc is now available
|
||||||
for sqlCmd,sumValue, maxValue, minValue, diffValue,
|
for sqlCmd,sumValue, maxValue, minValue, diffValue,
|
||||||
averageValue
|
averageValue
|
||||||
- changed: 98_WeekdayTimer: remove Twilight dependency
|
- changed: 98_WeekdayTimer: remove Twilight dependency
|
||||||
- feature: 74_AMADautomagicflowset: add support for Android 9 Pie
|
- feature: 74_AMADautomagicflowset: add support for Android 9 Pie
|
||||||
|
@ -1938,6 +1938,8 @@ sub Calendar_Get($@) {
|
|||||||
my @filters= ();
|
my @filters= ();
|
||||||
my $next= undef;
|
my $next= undef;
|
||||||
my $count= undef;
|
my $count= undef;
|
||||||
|
my $returnFormat= '$text';
|
||||||
|
my @includes= ();
|
||||||
|
|
||||||
my ($paramerror, $arrayref)= Calendar_simpleParseWords(join(" ", @a));
|
my ($paramerror, $arrayref)= Calendar_simpleParseWords(join(" ", @a));
|
||||||
return "$name: Parameter parse error: $paramerror" if(defined($paramerror));
|
return "$name: Parameter parse error: $paramerror" if(defined($paramerror));
|
||||||
@ -1965,7 +1967,7 @@ sub Calendar_Get($@) {
|
|||||||
} elsif($p =~ /^timeFormat:['"](.+)['"]$/) {
|
} elsif($p =~ /^timeFormat:['"](.+)['"]$/) {
|
||||||
$timeFormat= $1;
|
$timeFormat= $1;
|
||||||
### filter
|
### filter
|
||||||
} elsif($p =~ /^filter:(.+)$/) {
|
} elsif($p =~ /^filter:(.+)$/) {
|
||||||
my ($filtererror, $filterarrayref)= Calendar_simpleParseWords($1, ",");
|
my ($filtererror, $filterarrayref)= Calendar_simpleParseWords($1, ",");
|
||||||
return "$name: Filter parse error: $filtererror" if(defined($filtererror));
|
return "$name: Filter parse error: $filtererror" if(defined($filtererror));
|
||||||
my @filterspecs= @{$filterarrayref};
|
my @filterspecs= @{$filterarrayref};
|
||||||
@ -2038,13 +2040,41 @@ sub Calendar_Get($@) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} elsif($p =~ /^returnType:(.+)$/) {
|
||||||
|
$returnFormat= $1;
|
||||||
|
if( ($returnFormat eq '$text') ||
|
||||||
|
($returnFormat eq '@events') ||
|
||||||
|
($returnFormat eq '@texts')) {
|
||||||
|
# fine
|
||||||
|
} else {
|
||||||
|
return "$name: Illegal return format: $returnFormat";
|
||||||
|
}
|
||||||
|
} elsif($p =~ /^include:(.+)$/) {
|
||||||
|
@includes= split(",", $1);
|
||||||
|
# remove duplicates
|
||||||
|
@includes= keys %{{ map{ $_ => 1 } @includes }};
|
||||||
|
#my %seen = ();
|
||||||
|
#@includes = grep { ! $seen{ $_ }++ } @includes;
|
||||||
|
} else {
|
||||||
return "$name: Illegal parameter: $p";
|
return "$name: Illegal parameter: $p";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my @texts;
|
|
||||||
my @events= Calendar_GetEvents($hash, $t, @filters);
|
my @events= Calendar_GetEvents($hash, $t, @filters);
|
||||||
|
|
||||||
|
if($#includes>= 0) {
|
||||||
|
foreach my $calname (@includes) {
|
||||||
|
next if($calname eq $name); # silently ignore inclusion of this calendar
|
||||||
|
my $dev= $defs{$calname};
|
||||||
|
if(defined($dev) && $dev->{TYPE} eq "Calendar") {
|
||||||
|
push @events, Calendar_GetEvents($dev, $t, @filters);
|
||||||
|
} else {
|
||||||
|
Log3 $hash, 2, "$name: device $calname does not exist or is not a Calendar";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@events= sort { $a->start() <=> $b->start() } @events;
|
||||||
|
}
|
||||||
|
|
||||||
# special treatment for next
|
# special treatment for next
|
||||||
if(defined($next)) {
|
if(defined($next)) {
|
||||||
my %uids; # remember the UIDs
|
my %uids; # remember the UIDs
|
||||||
@ -2058,11 +2088,16 @@ sub Calendar_Get($@) {
|
|||||||
} @events;
|
} @events;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return @events if($returnFormat eq '@events');
|
||||||
|
|
||||||
my $n= 0;
|
my $n= 0;
|
||||||
|
my @texts;
|
||||||
foreach my $event (@events) {
|
foreach my $event (@events) {
|
||||||
push @texts, $event->formatted($format, $timeFormat);
|
push @texts, $event->formatted($format, $timeFormat);
|
||||||
last if(defined($count) && (++$n>= $count));
|
last if(defined($count) && (++$n>= $count));
|
||||||
}
|
}
|
||||||
|
return @texts if($returnFormat eq '@texts');
|
||||||
|
|
||||||
return "" if($#texts<0);
|
return "" if($#texts<0);
|
||||||
return join("\n", @texts);
|
return join("\n", @texts);
|
||||||
|
|
||||||
@ -3248,15 +3283,15 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
</ul>
|
</ul>
|
||||||
<br/>
|
<br/>
|
||||||
- Wildcards in url will be evaluated on every calendar update.<br/>
|
- Wildcards in url will be evaluated on every calendar update.<br/>
|
||||||
- The evaluation of wildcards maybe disabled by adding literal 'noWildcards' to attribute 'quirks'.
|
- The evaluation of wildcards maybe disabled by adding literal 'noWildcards' to attribute 'quirks'.
|
||||||
This may be useful in url containing % without marking a wildcard.<br/>
|
This may be useful in url containing % without marking a wildcard.<br/>
|
||||||
<br/>
|
<br/>
|
||||||
Note for users of Google Calendar:
|
Note for users of Google Calendar:
|
||||||
<ul>
|
<ul>
|
||||||
<li>Wildcards must not be used in Google Calendar url!</li>
|
<li>Wildcards must not be used in Google Calendar url!</li>
|
||||||
<li>You can literally use the private ICal URL from your Google Calendar.</li>
|
<li>You can literally use the private ICal URL from your Google Calendar.</li>
|
||||||
<li>If your Google Calendar URL starts with <code>https://</code> and the perl module IO::Socket::SSL is
|
<li>If your Google Calendar URL starts with <code>https://</code> and the perl module IO::Socket::SSL is
|
||||||
not installed on your system, you can replace it by <code>http://</code> if and only if there is
|
not installed on your system, you can replace it by <code>http://</code> if and only if there is
|
||||||
no redirection to the <code>https://</code> URL. Check with your browser first if unsure.</li>
|
no redirection to the <code>https://</code> URL. Check with your browser first if unsure.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br/>
|
<br/>
|
||||||
@ -3300,7 +3335,11 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
Same as <code>set <name> update</code><br><br></li>
|
Same as <code>set <name> update</code><br><br></li>
|
||||||
|
|
||||||
|
|
||||||
<li><code>get <name> events [format:<formatSpec>] [timeFormat:<timeFormatSpec>] [filter:<filterSpecs>] [series:next[=<max>]] [limit:<limitSpecs>]</code><br><br>
|
<li><code>get <name> events [format:<formatSpec>] [timeFormat:<timeFormatSpec>] [filter:<filterSpecs>]
|
||||||
|
[series:next[=<max>]] [limit:<limitSpecs>]
|
||||||
|
[include:<names>]
|
||||||
|
[returnType:<returnTypeSpec>]
|
||||||
|
</code><br><br>
|
||||||
The swiss army knife for displaying calendar events.
|
The swiss army knife for displaying calendar events.
|
||||||
Returns, line by line, information on the calendar events in the calendar <name>
|
Returns, line by line, information on the calendar events in the calendar <name>
|
||||||
according to formatting and filtering rules.
|
according to formatting and filtering rules.
|
||||||
@ -3449,6 +3488,28 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
<code>get MyCalendar events limit:count=10,from=0,to=+10d</code><br>
|
<code>get MyCalendar events limit:count=10,from=0,to=+10d</code><br>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
|
The <u><code>include</code></u> parameter includes events from other calendars. This is useful for
|
||||||
|
displaying events from several calendars in one combined output. <code><names></code> is
|
||||||
|
a comma-separated list of names of calendar devices. The name of the device itself as well as
|
||||||
|
any duplicates are silently ignored. Names of non-existant devices or of devices that are not
|
||||||
|
Calendar devices are ignored and an error is written to the log.<br><br>
|
||||||
|
Example:<br>
|
||||||
|
<code>get MyCalendar events include:HolidayCalendar,GarbageCollection</code><br>
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
|
||||||
|
The <u><code>returnType</code></u> parameter is used to return the events in a particular type.
|
||||||
|
This is useful for Perl scripts.<br><br>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr><th align="left"><code><returnTypeSpec></code></th><th align="left">description</th></tr>
|
||||||
|
<tr><td><code>$text</code></td><td>a multiline string in human-readable format (default)</td></tr>
|
||||||
|
<tr><td><code>@texts</code></td><td>an array of strings in human-readable format</td></tr>
|
||||||
|
<tr><td><code>@event</code></td><td>an array of Calendar::Event hashes</td></tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
<br><br>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
@ -3546,9 +3607,9 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
the <timeFormatSpec> in quotes.</li></p>
|
the <timeFormatSpec> in quotes.</li></p>
|
||||||
|
|
||||||
<li><code>synchronousUpdate 0|1</code><br>
|
<li><code>synchronousUpdate 0|1</code><br>
|
||||||
If this attribute is not set or if it is set to 0, the processing is done
|
If this attribute is not set or if it is set to 0, the processing is done
|
||||||
in the background and FHEM will not block during updates. <br/>
|
in the background and FHEM will not block during updates. <br/>
|
||||||
If this attribute is set to 1, the processing of the calendar is done
|
If this attribute is set to 1, the processing of the calendar is done
|
||||||
in the foreground. Large calendars will block FHEM on slow systems. <br/>
|
in the foreground. Large calendars will block FHEM on slow systems. <br/>
|
||||||
<br/>
|
<br/>
|
||||||
Attribute value will be ignored if FHEM is running on a Windows platform.<br/>
|
Attribute value will be ignored if FHEM is running on a Windows platform.<br/>
|
||||||
@ -3917,9 +3978,9 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
-Die wildcards werden bei jedem Kalenderupdate ausgewertet.<br/>
|
-Die wildcards werden bei jedem Kalenderupdate ausgewertet.<br/>
|
||||||
-Die Auswertung von wildcards kann bei Bedarf fü einen Kalender deaktiviert werden, indem das Schlüsselwort 'noWildcards'
|
-Die Auswertung von wildcards kann bei Bedarf fü einen Kalender deaktiviert werden, indem das Schlüsselwort 'noWildcards'
|
||||||
dem Attribut 'quirks' hinzugefügt wird. Das ist nützlich bei url die bereits ein % enthalten, ohne damit ein wildcard
|
dem Attribut 'quirks' hinzugefügt wird. Das ist nützlich bei url die bereits ein % enthalten, ohne damit ein wildcard
|
||||||
zu kennzeichnen.<br/>
|
zu kennzeichnen.<br/>
|
||||||
<br/>
|
<br/>
|
||||||
Hinweise für Nutzer des Google-Kalenders:
|
Hinweise für Nutzer des Google-Kalenders:
|
||||||
<ul>
|
<ul>
|
||||||
<li>Wildcards dürfen in Google Kalender URL nicht verwendet werden!</li>
|
<li>Wildcards dürfen in Google Kalender URL nicht verwendet werden!</li>
|
||||||
<li>Du kannst direkt die private iCal-URL des Google-Kalenders nutzen.</li>
|
<li>Du kannst direkt die private iCal-URL des Google-Kalenders nutzen.</li>
|
||||||
@ -3940,7 +4001,7 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
define IrgendeinKalender Calendar ical file /home/johndoe/calendar.ics
|
define IrgendeinKalender Calendar ical file /home/johndoe/calendar.ics
|
||||||
</pre>
|
</pre>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<a name="Calendarset"></a>
|
<a name="Calendarset"></a>
|
||||||
<b>Set </b><br><br>
|
<b>Set </b><br><br>
|
||||||
<ul>
|
<ul>
|
||||||
@ -3964,19 +4025,23 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
|
|
||||||
<code>get <name> reload</code><br>
|
<code>get <name> reload</code><br>
|
||||||
Entspricht <code>set <name> reload</code><br><br>
|
Entspricht <code>set <name> reload</code><br><br>
|
||||||
|
|
||||||
|
|
||||||
<li><code>get <name> events [format:<formatSpec>] [timeFormat:<timeFormatSpec>] [filter:<filterSpecs>] [series:next[=<max>]] [limit:<limitSpecs>]</code><br><br>
|
<li><code>get <name> events [format:<formatSpec>] [timeFormat:<timeFormatSpec>] [filter:<filterSpecs>]
|
||||||
|
[series:next[=<max>]] [limit:<limitSpecs>]
|
||||||
|
[include:<names>]
|
||||||
|
[returnType:<returnTypeSpec>]
|
||||||
|
</code><br><br>
|
||||||
Das Schweizer Taschenmesser für die Anzeige von Terminen.
|
Das Schweizer Taschenmesser für die Anzeige von Terminen.
|
||||||
Die Termine des Kalenders <name> werden Zeile für Zeile entsprechend der Format- und Filterangaben ausgegeben.
|
Die Termine des Kalenders <name> werden Zeile für Zeile entsprechend der Format- und Filterangaben ausgegeben.
|
||||||
Keiner, einer oder mehrere der Parameter <code>format</code>,
|
Keiner, einer oder mehrere der Parameter <code>format</code>,
|
||||||
<code>timeFormat</code>, <code>filter</code>, <code>series</code> und <code>limit</code>
|
<code>timeFormat</code>, <code>filter</code>, <code>series</code> und <code>limit</code>
|
||||||
können angegeben werden, weiterhin ist es sinnvoll, den Parameter <code>filter</code> mehrere Male anzugeben.
|
können angegeben werden, weiterhin ist es sinnvoll, den Parameter <code>filter</code> mehrere Male anzugeben.
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
Der Parameter <u><code>format</code></u> legt den zurückgegeben Inhalt fest.<br><br>
|
Der Parameter <u><code>format</code></u> legt den zurückgegeben Inhalt fest.<br><br>
|
||||||
Folgende Formatspezifikationen stehen zur Verfügung:<br><br>
|
Folgende Formatspezifikationen stehen zur Verfügung:<br><br>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr><th align="left"><formatSpec></th><th align="left">Beschreibung</th></tr>
|
<tr><th align="left"><formatSpec></th><th align="left">Beschreibung</th></tr>
|
||||||
<tr><td><code>default</code></td><td>Standardformat (siehe unten)</td></tr>
|
<tr><td><code>default</code></td><td>Standardformat (siehe unten)</td></tr>
|
||||||
@ -3985,13 +4050,13 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
<tr><td><code>custom="<formatString>"</code></td><td>ein spezifisches Format (siehe unten)</td></tr>
|
<tr><td><code>custom="<formatString>"</code></td><td>ein spezifisches Format (siehe unten)</td></tr>
|
||||||
<tr><td><code>custom="{ <perl-code> }"</code></td><td>ein spezifisches Format (siehe unten)</td></tr>
|
<tr><td><code>custom="{ <perl-code> }"</code></td><td>ein spezifisches Format (siehe unten)</td></tr>
|
||||||
</table><br>
|
</table><br>
|
||||||
Einzelne Anführungszeichen (<code>'</code>) können anstelle von doppelten Anführungszeichen (<code>"</code>) innerhalb
|
Einzelne Anführungszeichen (<code>'</code>) können anstelle von doppelten Anführungszeichen (<code>"</code>) innerhalb
|
||||||
eines spezifischen Formats benutzt werden.
|
eines spezifischen Formats benutzt werden.
|
||||||
|
|
||||||
Folgende Variablen können in <code><formatString></code> und in
|
Folgende Variablen können in <code><formatString></code> und in
|
||||||
<code><perl-code></code> verwendet werden:
|
<code><perl-code></code> verwendet werden:
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr><th align="left">variable</th><th align="left">Bedeutung</th></tr>
|
<tr><th align="left">variable</th><th align="left">Bedeutung</th></tr>
|
||||||
<tr><td><code>$t1</code></td><td>Startzeit in Sekunden</td></tr>
|
<tr><td><code>$t1</code></td><td>Startzeit in Sekunden</td></tr>
|
||||||
@ -4016,22 +4081,22 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
Wird der Parameter <code>format</code> ausgelassen, dann wird die Formatierung
|
Wird der Parameter <code>format</code> ausgelassen, dann wird die Formatierung
|
||||||
aus <code>defaultFormat</code> benutzt. Ist dieses Attribut nicht gesetzt, wird <code>"$T1 $D $S"</code>
|
aus <code>defaultFormat</code> benutzt. Ist dieses Attribut nicht gesetzt, wird <code>"$T1 $D $S"</code>
|
||||||
als Formatierung benutzt.
|
als Formatierung benutzt.
|
||||||
|
|
||||||
Das letzte Auftreten von <code>format</code> gewinnt bei mehrfacher Angabe.
|
Das letzte Auftreten von <code>format</code> gewinnt bei mehrfacher Angabe.
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
Examples:<br>
|
Examples:<br>
|
||||||
<code>get MyCalendar events format:full</code><br>
|
<code>get MyCalendar events format:full</code><br>
|
||||||
<code>get MyCalendar events format:custom="$T1-$T2 $S \@ $L"</code><br>
|
<code>get MyCalendar events format:custom="$T1-$T2 $S \@ $L"</code><br>
|
||||||
<code>get MyCalendar events format:custom={ sprintf("%20s %8s", $S, $D) }</code><br><br>
|
<code>get MyCalendar events format:custom={ sprintf("%20s %8s", $S, $D) }</code><br><br>
|
||||||
|
|
||||||
Der Parameter <u><code>timeFormat</code></u> legt das Format für die Start-,
|
Der Parameter <u><code>timeFormat</code></u> legt das Format für die Start-,
|
||||||
End- und Alarmzeiten fest.<br><br>
|
End- und Alarmzeiten fest.<br><br>
|
||||||
|
|
||||||
In <code><timeFormatSpec></code> kann die POSIX-Spezifikation verwendet werden.
|
In <code><timeFormatSpec></code> kann die POSIX-Spezifikation verwendet werden.
|
||||||
Auf <a href="http://strftime.net">strftime.net</a> gibt es ein Tool zum Erstellen von
|
Auf <a href="http://strftime.net">strftime.net</a> gibt es ein Tool zum Erstellen von
|
||||||
<code><timeFormatSpec></code>.<br><br>
|
<code><timeFormatSpec></code>.<br><br>
|
||||||
|
|
||||||
Wenn der Parameter <code>timeFormat</code> ausgelassen, dann wird die Formatierung
|
Wenn der Parameter <code>timeFormat</code> ausgelassen, dann wird die Formatierung
|
||||||
aus <code>defaultTimeFormat</code> benutzt. Ist dieses Attribut nicht gesetzt, dann
|
aus <code>defaultTimeFormat</code> benutzt. Ist dieses Attribut nicht gesetzt, dann
|
||||||
wird <code>"%d.%m.%Y %H:%M"</code> als Formatierung benutzt.
|
wird <code>"%d.%m.%Y %H:%M"</code> als Formatierung benutzt.
|
||||||
@ -4039,7 +4104,7 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
doppelte (<code>"</code>) Anführungszeichen verwendet werden.<br><br>
|
doppelte (<code>"</code>) Anführungszeichen verwendet werden.<br><br>
|
||||||
|
|
||||||
Das letzte Auftreten von <code>timeFormat</code> gewinnt bei mehrfacher Angabe.
|
Das letzte Auftreten von <code>timeFormat</code> gewinnt bei mehrfacher Angabe.
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
Example:<br>
|
Example:<br>
|
||||||
<code>get MyCalendar events timeFormat:"%e-%b-%Y" format:full</code><br><br>
|
<code>get MyCalendar events timeFormat:"%e-%b-%Y" format:full</code><br><br>
|
||||||
@ -4051,7 +4116,7 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
Alle Filterangaben müssen zutreffen, damit ein Termin angezeigt wird.
|
Alle Filterangaben müssen zutreffen, damit ein Termin angezeigt wird.
|
||||||
Die Angabe ist kumulativ: jeder angegebene Filter wird zur Filterliste hinzugef&uum;gt
|
Die Angabe ist kumulativ: jeder angegebene Filter wird zur Filterliste hinzugef&uum;gt
|
||||||
und ber&uum;cksichtigt.<br><br>
|
und ber&uum;cksichtigt.<br><br>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr><th align="left"><code><filterSpec></code></th><th align="left">Beschreibung</th></tr>
|
<tr><th align="left"><code><filterSpec></code></th><th align="left">Beschreibung</th></tr>
|
||||||
<tr><td><code>uid=="<uid>"</code></td><td>UID ist <code><uid></code><br>
|
<tr><td><code>uid=="<uid>"</code></td><td>UID ist <code><uid></code><br>
|
||||||
@ -4074,7 +4139,7 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
Die doppelten Anführungszeichen auf der rechten Seite von <code><filterSpec></code> sind nicht
|
Die doppelten Anführungszeichen auf der rechten Seite von <code><filterSpec></code> sind nicht
|
||||||
Teil des regulären Ausdrucks. Es können stattdessen einfache Anführungszeichen verwendet werden.
|
Teil des regulären Ausdrucks. Es können stattdessen einfache Anführungszeichen verwendet werden.
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
Examples:<br>
|
Examples:<br>
|
||||||
<code>get MyCalendar events filter:uid=="432dsafweq64yehdbwqhkd"</code><br>
|
<code>get MyCalendar events filter:uid=="432dsafweq64yehdbwqhkd"</code><br>
|
||||||
<code>get MyCalendar events filter:uid=~"^7"</code><br>
|
<code>get MyCalendar events filter:uid=~"^7"</code><br>
|
||||||
@ -4086,7 +4151,7 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
<code>get MyCalendar events filter:field(summary)=~"Gelber Sack" filter:mode=~"upcoming|start"</code>
|
<code>get MyCalendar events filter:field(summary)=~"Gelber Sack" filter:mode=~"upcoming|start"</code>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
Der Parameter <u><code>series</code></u> bestimmt die Anzeige von wiederkehrenden
|
Der Parameter <u><code>series</code></u> bestimmt die Anzeige von wiederkehrenden
|
||||||
Terminen. <code>series:next</code> begrenzt die Anzeige auf den nächsten Termin
|
Terminen. <code>series:next</code> begrenzt die Anzeige auf den nächsten Termin
|
||||||
der noch nicht beendeten Termine innerhalb der Serie. <code>series:next=<max></code>
|
der noch nicht beendeten Termine innerhalb der Serie. <code>series:next=<max></code>
|
||||||
zeigt die nächsten <code><max></code> Termine der Serie. Dies gilt pro Serie.
|
zeigt die nächsten <code><max></code> Termine der Serie. Dies gilt pro Serie.
|
||||||
@ -4099,10 +4164,10 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
<table>
|
<table>
|
||||||
<tr><th align="left"><code><limitSpec></code></th><th align="left">Beschreibung</th></tr>
|
<tr><th align="left"><code><limitSpec></code></th><th align="left">Beschreibung</th></tr>
|
||||||
<tr><td><code>count=<n></code></td><td>zeigt <code><n></code> Termine, wobei <code><n></code> eine positive Ganzzahl (integer) ist</td></tr>
|
<tr><td><code>count=<n></code></td><td>zeigt <code><n></code> Termine, wobei <code><n></code> eine positive Ganzzahl (integer) ist</td></tr>
|
||||||
<tr><td><code>from=[+|-]<timespec></code></td><td>zeigt nur Termine die nach einer Zeitspanne <timespec> ab jetzt enden;
|
<tr><td><code>from=[+|-]<timespec></code></td><td>zeigt nur Termine die nach einer Zeitspanne <timespec> ab jetzt enden;
|
||||||
Minuszeichen für Termine in der Vergangenheit benutzen; <timespec> wird weiter unten im Attribut-Abschnitt beschrieben.</td></tr>
|
Minuszeichen für Termine in der Vergangenheit benutzen; <timespec> wird weiter unten im Attribut-Abschnitt beschrieben.</td></tr>
|
||||||
<tr><td><code>to=[+|-]<timespec></code></td><td>
|
<tr><td><code>to=[+|-]<timespec></code></td><td>
|
||||||
zeigt nur Termine die vor einer Zeitspanne <timespec> ab jetzt starten;
|
zeigt nur Termine die vor einer Zeitspanne <timespec> ab jetzt starten;
|
||||||
Minuszeichen für Termine in der Vergangenheit benutzen; <timespec> wird weiter unten im Attribut-Abschnitt beschrieben.</td></tr>
|
Minuszeichen für Termine in der Vergangenheit benutzen; <timespec> wird weiter unten im Attribut-Abschnitt beschrieben.</td></tr>
|
||||||
<tr><td><code>when=today|tomorrow</code></td><td>zeigt anstehende Termin für heute oder morgen an</td></tr>
|
<tr><td><code>when=today|tomorrow</code></td><td>zeigt anstehende Termin für heute oder morgen an</td></tr>
|
||||||
</table><br>
|
</table><br>
|
||||||
@ -4114,9 +4179,32 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
<code>get MyCalendar events limit:count=10,from=0,to=+10d</code><br>
|
<code>get MyCalendar events limit:count=10,from=0,to=+10d</code><br>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
|
Der <u><code>include</code></u> Parameter schließt Termine aus anderen Kalendern ein. Das ist nützlich,
|
||||||
|
um Termine aus anderen Kalendern in einer kombimierten Ausgabe anzuzeigen.
|
||||||
|
<code><names></code> ist eine mit Kommas getrennte Liste der Namen von Calendar-Geräten.
|
||||||
|
Der Name des Kalenders selbst sowie Duplikate werden stillschweigend ignoriert. Namen von Geräten, die
|
||||||
|
es nicht gibt oder keine Calendar-Geräte sind, werden ignoriert und es wird eine Fehlermeldung ins Log
|
||||||
|
geschrieben.<br><br>
|
||||||
|
Example:<br>
|
||||||
|
<code>get MyCalendar events include:Feiertage,Müllabfuhr</code><br>
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
|
||||||
|
Der Parameter <u><code>returnType</code></u> wird verwendet, um die Termine als ein bestimmter Typ
|
||||||
|
zurückzugeben. Das ist nützlich für Perl-Skripte.<br><br>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr><th align="left"><code><returnTypeSpec></code></th><th align="left">Beschreibung</th></tr>
|
||||||
|
<tr><td><code>$text</code></td><td>ein mehrzeiliger String in menschenlesbarer Darstellung (Vorgabe)</td></tr>
|
||||||
|
<tr><td><code>@texts</code></td><td>ein Array von Strings in menschenlesbarer Darstellung</td></tr>
|
||||||
|
<tr><td><code>@event</code></td><td>ein Array von Calendar::Event-Hashs</td></tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
<br><br>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li><code>get <name> find <regexp></code><br>
|
<li><code>get <name> find <regexp></code><br>
|
||||||
Gibt zeilenweise die UID von allen Terminen aus, deren Zusammenfassung dem regulären Ausdruck <regexp> entspricht.<br><br></li>
|
Gibt zeilenweise die UID von allen Terminen aus, deren Zusammenfassung dem regulären Ausdruck <regexp> entspricht.<br><br></li>
|
||||||
|
|
||||||
@ -4145,23 +4233,23 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
<li><code>defaultTimeFormat <timeFormatSpec></code><br>
|
<li><code>defaultTimeFormat <timeFormatSpec></code><br>
|
||||||
Setzt das Standardzeitformat für <code>get <name> events</code>.
|
Setzt das Standardzeitformat für <code>get <name> events</code>.
|
||||||
Der Aufbau wird dort erklät. <timeFormatSpec> <b>nicht</b> in Anführungszeichen setzten. </li></p>
|
Der Aufbau wird dort erklät. <timeFormatSpec> <b>nicht</b> in Anführungszeichen setzten. </li></p>
|
||||||
|
|
||||||
<li><code>synchronousUpdate 0|1</code><br>
|
<li><code>synchronousUpdate 0|1</code><br>
|
||||||
Wenn dieses Attribut nicht oder auf 0 gesetzt ist, findet die Verarbeitung im Hintergrund statt
|
Wenn dieses Attribut nicht oder auf 0 gesetzt ist, findet die Verarbeitung im Hintergrund statt
|
||||||
und FHEM wird während der Verarbeitung nicht blockieren.<br/>
|
und FHEM wird während der Verarbeitung nicht blockieren.<br/>
|
||||||
Wird dieses Attribut auf 1 gesetzt, findet die Verarbeitung des Kalenders im Vordergrund statt.
|
Wird dieses Attribut auf 1 gesetzt, findet die Verarbeitung des Kalenders im Vordergrund statt.
|
||||||
Umfangreiche Kalender werden FHEM auf langsamen Systemen blockieren.<br/>
|
Umfangreiche Kalender werden FHEM auf langsamen Systemen blockieren.<br/>
|
||||||
<br/>
|
<br/>
|
||||||
Das Attribut wird ignoriert, falls FHEM unter Windows betrieben wird.
|
Das Attribut wird ignoriert, falls FHEM unter Windows betrieben wird.
|
||||||
In diesem Fall erfolgt die Verarbeitung immer synchron.<br/>
|
In diesem Fall erfolgt die Verarbeitung immer synchron.<br/>
|
||||||
</li><p>
|
</li><p>
|
||||||
|
|
||||||
<li><code>update none|onUrlChanged</code><br>
|
<li><code>update none|onUrlChanged</code><br>
|
||||||
Wird dieses Attribut auf <code>none</code> gesetzt ist, wird der Kalender überhaupt nicht aktualisiert.<br/>
|
Wird dieses Attribut auf <code>none</code> gesetzt ist, wird der Kalender überhaupt nicht aktualisiert.<br/>
|
||||||
Wird dieses Attribut auf <code>onUrlChanged</code> gesetzt ist, wird der Kalender nur dann aktualisiert, wenn sich die
|
Wird dieses Attribut auf <code>onUrlChanged</code> gesetzt ist, wird der Kalender nur dann aktualisiert, wenn sich die
|
||||||
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>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…
Reference in New Issue
Block a user