Calendar support for --- DTEND;TZID="(UTC+01:00) Amsterdam, Berlin,

Begonnen von immi, 10 August 2014, 14:01:08

Vorheriges Thema - Nächstes Thema

immi

Hi Boris
I start to enjoy your calendar module.
Maybe we can improve the following:

Argument "Am" isn't numeric in subtraction (-) at /opt/fhem/FHEM/57_Calendar.pm line 270.
Argument "00) " isn't numeric in subtraction (-) at /opt/fhem/FHEM/57_Calendar.pm line 270.
Argument "st" isn't numeric in addition (+) at /opt/fhem/fhem.pl line 3674.
Argument "rd" isn't numeric in addition (+) at /opt/fhem/fhem.pl line 3674.
Argument "am" isn't numeric in addition (+) at /opt/fhem/fhem.pl line 3674.
Argument ", " isn't numeric in addition (+) at /opt/fhem/fhem.pl line 3674.
Argument "Am" isn't numeric in subtraction (-) at /opt/fhem/FHEM/57_Calendar.pm line 270.
Argument "00) " isn't numeric in subtraction (-) at /opt/fhem/FHEM/57_Calendar.pm line 270.
..

I think the part of my ics causing the issue is:

...
CLASS:PUBLIC
DTEND;TZID="(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna":2
    0140904T180000
DTSTAMP:20140808T115757Z
DTSTART;TZID="(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"
    :20140904T093000
RRULE:FREQ=MONTHLY;COUNT=2;BYDAY=TH;BYSETPOS=1
SEQUENCE:0
..


please find a possible pach here for line 70 in sub addproperty()

  my ($property,$property1,$parameter);
  if ($line =~ m/TZID=/){
    ($property,$property1,$parameter)= split(":", $line,3);
    $property .=$property1;
  } 
  else {
    ($property,$parameter)= split(":", $line,2);
  }



i am sure that you, as an exper developer, will find a much more elegant solution.
immi

immi

Hi Boris
please find enclosed the diff; I fixed also an annoying line-wrap issue caused by outlook.
immi

Dr. Boris Neubert

Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!

betateilchen

not working with google calendars:


Use of uninitialized value in numeric lt (<) at ./FHEM/57_Calendar.pm line 430.
Use of uninitialized value $t1 in addition (+) at ./FHEM/57_Calendar.pm line 523.
Use of uninitialized value $t1 in localtime at ./FHEM/57_Calendar.pm line 508.
Use of uninitialized value in subtraction (-) at ./FHEM/57_Calendar.pm line 598.
Use of uninitialized value in subtraction (-) at ./FHEM/57_Calendar.pm line 598.
Use of uninitialized value in numeric lt (<) at ./FHEM/57_Calendar.pm line 430.
Use of uninitialized value $t1 in addition (+) at ./FHEM/57_Calendar.pm line 523.
Use of uninitialized value $t1 in localtime at ./FHEM/57_Calendar.pm line 508.
Use of uninitialized value in subtraction (-) at ./FHEM/57_Calendar.pm line 598.
Use of uninitialized value in subtraction (-) at ./FHEM/57_Calendar.pm line 598.
Use of uninitialized value in numeric lt (<) at ./FHEM/57_Calendar.pm line 430.
Use of uninitialized value $t1 in addition (+) at ./FHEM/57_Calendar.pm line 523.
Use of uninitialized value $t1 in localtime at ./FHEM/57_Calendar.pm line 508.
Use of uninitialized value in subtraction (-) at ./FHEM/57_Calendar.pm line 598.
Use of uninitialized value in subtraction (-) at ./FHEM/57_Calendar.pm line 598.
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

Dr. Boris Neubert

My Google calendar works... So what's the difference?

Could you please download the ical file (here: basic.ics) and post a representative sample of grep -e '^DT' basic.ics here for inspection?

For me it looks like


...
DTSTART;VALUE=DATE:20141115
DTEND;VALUE=DATE:20141116
DTSTAMP:20140901T222531Z
DTSTART;TZID=Europe/Berlin:20140726T120000
DTEND;TZID=Europe/Berlin:20140726T130000
DTSTAMP:20140901T222531Z
DTSTART:20141107T170000Z
DTEND:20141107T220000Z
...


Cheers
Boris
Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!

betateilchen

I had to revert to former version of Calendar module to get my calendars working again.

Output from two calendars:


$ grep -e '^DT' basic1.ics
DTSTART:19700329T020000
DTSTART:19701025T030000
DTSTART;TZID=Europe/Berlin:20140209T180000
DTEND;TZID=Europe/Berlin:20140209T220000
DTSTAMP:20140902T090351Z
DTSTART:20140214T070000Z
DTEND:20140214T165000Z
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20140216T093000
DTEND;TZID=Europe/Berlin:20140216T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20140215T093000
DTEND;TZID=Europe/Berlin:20140215T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20140214T180000
DTEND;TZID=Europe/Berlin:20140214T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20140213T180000
DTEND;TZID=Europe/Berlin:20140213T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20140218T180000
DTEND;TZID=Europe/Berlin:20140218T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20140203T180000
DTEND;TZID=Europe/Berlin:20140203T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20140212T180000
DTEND;TZID=Europe/Berlin:20140212T220000
DTSTAMP:20140902T090351Z
DTSTART:20140211T194000Z
DTEND:20140211T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20140131T070000Z
DTEND:20140131T165500Z
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131108T180000
DTEND;TZID=Europe/Berlin:20131108T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20140131T180000
DTEND;TZID=Europe/Berlin:20140131T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131107T180000
DTEND;TZID=Europe/Berlin:20131107T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131204T180000
DTEND;TZID=Europe/Berlin:20131204T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131106T180000
DTEND;TZID=Europe/Berlin:20131106T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131203T180000
DTEND;TZID=Europe/Berlin:20131203T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131029T180000
DTEND;TZID=Europe/Berlin:20131029T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131103T190000
DTEND;TZID=Europe/Berlin:20131103T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131209T180000
DTEND;TZID=Europe/Berlin:20131209T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131028T180000
DTEND;TZID=Europe/Berlin:20131028T220000
DTSTAMP:20140902T090351Z
DTSTART:20140126T070000Z
DTEND:20140126T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20140124T070000Z
DTEND:20140124T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20140125T070000Z
DTEND:20140125T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20140123T150000Z
DTEND:20140123T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20131228T070000Z
DTEND:20131228T120000Z
DTSTAMP:20140902T090351Z
DTSTART:20140112T070000Z
DTEND:20140112T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20140110T070000Z
DTEND:20140110T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20140111T070000Z
DTEND:20140111T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20140109T170000Z
DTEND:20140109T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20131227T070000Z
DTEND:20131227T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20131226T070000Z
DTEND:20131226T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20131225T070000Z
DTEND:20131225T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20131224T070000Z
DTEND:20131224T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20131223T070000Z
DTEND:20131223T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20131206T070000Z
DTEND:20131206T165900Z
DTSTAMP:20140902T090351Z
DTSTART:20131205T070000Z
DTEND:20131205T165900Z
DTSTAMP:20140902T090351Z
DTSTART:20131117T085000Z
DTEND:20131117T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20131116T080000Z
DTEND:20131116T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20131115T170000Z
DTEND:20131115T210000Z
DTSTAMP:20140902T090351Z
DTSTART:20131114T170000Z
DTEND:20131114T210000Z
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131011T180000
DTEND;TZID=Europe/Berlin:20131011T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131010T180000
DTEND;TZID=Europe/Berlin:20131010T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131009T180000
DTEND;TZID=Europe/Berlin:20131009T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131020T190000
DTEND;TZID=Europe/Berlin:20131020T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131015T180000
DTEND;TZID=Europe/Berlin:20131015T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131014T180000
DTEND;TZID=Europe/Berlin:20131014T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131013T093000
DTEND;TZID=Europe/Berlin:20131013T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131012T093000
DTEND;TZID=Europe/Berlin:20131012T220000
DTSTAMP:20140902T090351Z
DTSTART;TZID=Europe/Berlin:20131002T180000
DTEND;TZID=Europe/Berlin:20131002T220000
DTSTAMP:20140902T090351Z
DTSTART:20130922T040000Z
DTEND:20130922T053000Z
DTSTAMP:20140902T090351Z
DTSTART:20130921T213500Z
DTEND:20130921T215500Z
DTSTAMP:20140902T090351Z



$ grep -e '^DT' basic2.ics
DTSTART:19700329T020000
DTSTART:19701025T030000
DTSTART:20141008T130000Z
DTEND:20141008T185900Z
DTSTAMP:20140902T090726Z
DTSTART:20140807T190000Z
DTEND:20140808T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20140712T190100Z
DTEND:20140713T030100Z
DTSTAMP:20140902T090726Z
DTSTART:20140711T190100Z
DTEND:20140712T030100Z
DTSTAMP:20140902T090726Z
DTSTART:20140710T190100Z
DTEND:20140711T030100Z
DTSTAMP:20140902T090726Z
DTSTART:20140629T190000Z
DTEND:20140629T200000Z
DTSTAMP:20140902T090726Z
DTSTART:20140710T130000Z
DTEND:20140710T185900Z
DTSTAMP:20140902T090726Z
DTSTART:20140627T213000Z
DTEND:20140627T223000Z
DTSTAMP:20140902T090726Z
DTSTART:20140712T190000Z
DTEND:20140713T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20140710T190000Z
DTEND:20140711T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20140711T190000Z
DTEND:20140712T030000Z
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20140710T150000
DTEND;TZID=Europe/Berlin:20140710T205900
DTSTAMP:20140902T090726Z
DTSTART:20140602T130000Z
DTEND:20140602T185900Z
DTSTAMP:20140902T090726Z
DTSTART:20140412T105000Z
DTEND:20140412T110000Z
DTSTAMP:20140902T090726Z
DTSTART:20140507T130000Z
DTEND:20140507T185900Z
DTSTAMP:20140902T090726Z
DTSTART:20140419T190000Z
DTEND:20140420T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20140418T190000Z
DTEND:20140419T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20140417T190000Z
DTEND:20140418T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20140407T130000Z
DTEND:20140407T185900Z
DTSTAMP:20140902T090726Z
DTSTART:20140318T140000Z
DTEND:20140318T195900Z
DTSTAMP:20140902T090726Z
DTSTART:20140123T080000Z
DTEND:20140123T194500Z
DTSTAMP:20140902T090726Z
DTSTART:20140125T200000Z
DTEND:20140126T050000Z
DTSTAMP:20140902T090726Z
DTSTART:20140124T200000Z
DTEND:20140125T050000Z
DTSTAMP:20140902T090726Z
DTSTART:20140123T200000Z
DTEND:20140124T050000Z
DTSTAMP:20140902T090726Z
DTSTART:20140125T200000Z
DTEND:20140126T050000Z
DTSTAMP:20140902T090726Z
DTSTART:20140124T200000Z
DTEND:20140125T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20140123T200000Z
DTEND:20140124T050000Z
DTSTAMP:20140902T090726Z
DTSTART:20140111T200000Z
DTEND:20140112T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20140110T200000Z
DTEND:20140111T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20140109T200000Z
DTEND:20140110T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20131225T200000Z
DTEND:20131226T050000Z
DTSTAMP:20140902T090726Z
DTSTART:20131227T200000Z
DTEND:20131228T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20140104T110000Z
DTEND:20140104T195900Z
DTSTAMP:20140902T090726Z
DTSTART:20131226T200000Z
DTEND:20131227T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20131227T200000Z
DTEND:20131228T050000Z
DTSTAMP:20140902T090726Z
DTSTART:20131226T200000Z
DTEND:20131227T050000Z
DTSTAMP:20140902T090726Z
DTSTART:20131224T200000Z
DTEND:20131225T050000Z
DTSTAMP:20140902T090726Z
DTSTART:20131222T200000Z
DTEND:20131223T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20131223T200000Z
DTEND:20131224T050000Z
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131108T210000
DTEND;TZID=Europe/Berlin:20131109T050000
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131107T210000
DTEND;TZID=Europe/Berlin:20131108T050000
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131224T210000
DTEND;TZID=Europe/Berlin:20131225T050000
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131029T210000
DTEND;TZID=Europe/Berlin:20131030T050000
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131223T210000
DTEND;TZID=Europe/Berlin:20131224T050000
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131104T210000
DTEND;TZID=Europe/Berlin:20131105T050000
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131103T210000
DTEND;TZID=Europe/Berlin:20131104T050000
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131103T150000
DTEND;TZID=Europe/Berlin:20131103T205900
DTSTAMP:20140902T090726Z
DTSTART:20131116T200000Z
DTEND:20131117T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20131115T200000Z
DTEND:20131116T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20131114T200000Z
DTEND:20131115T040000Z
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131109T210000
DTEND;TZID=Europe/Berlin:20131110T050000
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131225T210000
DTEND;TZID=Europe/Berlin:20131226T050000
DTSTAMP:20140902T090726Z
DTSTART;TZID=Europe/Berlin:20131106T210000
DTEND;TZID=Europe/Berlin:20131107T050000
DTSTAMP:20140902T090726Z
DTSTART:20131014T090000Z
DTEND:20131014T090100Z
DTSTAMP:20140902T090726Z
DTSTART:20130922T193000Z
DTEND:20130922T193100Z
DTSTAMP:20140902T090726Z
DTSTART:20130921T194500Z
DTEND:20130921T195000Z
DTSTAMP:20140902T090726Z
DTSTART:20130921T190000Z
DTEND:20130922T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20130905T121500Z
DTEND:20130908T180000Z
DTSTAMP:20140902T090726Z
DTSTART:20130918T130000Z
DTEND:20130918T185900Z
DTSTAMP:20140902T090726Z
DTSTART:20130920T190000Z
DTEND:20130921T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20130919T190000Z
DTEND:20130920T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20130801T074500Z
DTEND:20130801T074600Z
DTSTAMP:20140902T090726Z
DTSTART:20130728T083000Z
DTEND:20130728T103000Z
DTSTAMP:20140902T090726Z
DTSTART:20130713T220100Z
DTEND:20130714T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20130712T220100Z
DTEND:20130713T040000Z
DTSTAMP:20140902T090726Z
DTSTART:20130713T190100Z
DTEND:20130713T215800Z
DTSTAMP:20140902T090726Z
DTSTART:20130712T190100Z
DTEND:20130712T215900Z
DTSTAMP:20140902T090726Z
DTSTART:20130711T220000Z
DTEND:20130712T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20130713T220000Z
DTEND:20130714T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20130712T220000Z
DTEND:20130713T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20130711T220000Z
DTEND:20130712T030000Z
DTSTAMP:20140902T090726Z
DTSTART:20130711T190000Z
DTEND:20130711T215900Z
DTSTAMP:20140902T090726Z
DTSTART:20130713T190000Z
DTEND:20130713T215900Z
DTSTAMP:20140902T090726Z
DTSTART:20130711T190000Z
DTEND:20130711T215900Z
DTSTAMP:20140902T090726Z
DTSTART:20130712T190000Z
DTEND:20130712T215900Z
DTSTAMP:20140902T090726Z
DTSTART:20130620T131500Z
DTEND:20130620T170000Z
DTSTAMP:20140902T090726Z
DTSTART:20130602T163035Z
DTEND:20130602T173035Z
DTSTAMP:20140902T090726Z
DTSTART:20130605T064522Z
DTEND:20130605T170022Z
DTSTAMP:20140902T090726Z
DTSTART:20130522T190000Z
DTEND:20130523T030000Z
DTSTAMP:20140902T090726Z
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

Dr. Boris Neubert

I had to remove the change that was supposed to handle Outlook's TZID variant because it broke other variants.

Hopefully SVN now contains a working version again, except for Immi's setup.

Will deal with this later because it will involve some regex tricks, see thread here: http://forum.fhem.de/index.php/topic,26714.0.html

Boris

Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!

immi

It is ok Boris
as a fast fix, we should try changing
if ($line =~ m/TZID=/){
instead of searching for TZID= , Calendar should search for TZID="(U.

thanks
immi

betateilchen

ZitatCalendar should search for TZID="(U.

will not work... Please do not only think of YOUR outlook requirements.

As Boris already explained here there are a lot of different possible entries that can be found:


# for DTSTART, DTEND there are several variants:
#   DTSTART;TZID=Europe/Berlin:20140205T183600
#   DTSTART;TZID="(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna":20140904T180000
#   DTSTART:20140211T212000Z
#   DTSTART;VALUE=DATE:20130619

-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

immi


Dr. Boris Neubert

Hi all,

I changed the addproperty() function such that the contentline according to page 13 of the RFC 2445


contentline        = name *(";" param ) ":" value CRLF


should be parsed correctly no matter what signs are in param. Please find attached a modified 57_Calendar.pm for testing. Debugging is on - that means that there are lots of pairs of DEBUG> lines in the log: the first line is the line from the ical file and the second line the result of the parsing:

2014.10.03 21:51:37 1: DEBUG>line='TRIGGER:-P0DT0H15M0S'
2014.10.03 21:51:37 1: DEBUG>-> key='TRIGGER' parts='' parameter='-P0DT0H15M0S'


Could you please test it? Please post the relevant DEBUG> lines from the log if something does not work.

Kind regards,
Boris
Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!

immi

Hi Boris
great improvement, thanks

I noticed only a small thing which I expect is not related to your improvement.

Use of uninitialized value in numeric ne (!=) at /opt/fhem/FHEM/57_Calendar.pm line 744.
Use of uninitialized value in numeric ne (!=) at /opt/fhem/FHEM/57_Calendar.pm line 744.
Use of uninitialized value in numeric ne (!=) at /opt/fhem/FHEM/57_Calendar.pm line 744.


ciao
immi

Dr. Boris Neubert

Zitat von: immi am 04 Oktober 2014, 15:34:43
Use of uninitialized value in numeric ne (!=) at /opt/fhem/FHEM/57_Calendar.pm line 744.
Use of uninitialized value in numeric ne (!=) at /opt/fhem/FHEM/57_Calendar.pm line 744.
Use of uninitialized value in numeric ne (!=) at /opt/fhem/FHEM/57_Calendar.pm line 744.


Seems like the lastModified property is not available for some calendar event. Added some provision to make the message disappear. Such calendar events are either in new or known state and never in modified state.

Please find updated version attached. Could you please test? Will check in version without debugging tonight.

Kind regards,
Boris
Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!

immi

H Boris
warning message disappeared. Calendar works well
thanks
immi

Dr. Boris Neubert

updated version now in SVN, available per update tomorrow
BN
Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!