[Calendar] Fehlermeldung nach Neustart

Begonnen von kvo1, 01 Juni 2015, 08:02:34

Vorheriges Thema - Nächstes Thema

kvo1

Hallo Zusammen,

ich habe nach einem Neustart vom fhem (shutdown restart) folgende Fehlermeldung im log .....

ZitatPERL WARNING: Use of uninitialized value $texts[0] in join or string at ./FHEM/57_Calendar.pm

kvo1
RPi1: mit CUL: HM-CC-RT-DN,HM-ES-PMSw1-Pl,HM-LC-BL1-FM,HM-LC-Bl1PBU-FM,HM-LC-SW1-PL2,HM-SCI-3-FM,HM-SEC-SC-2,KFM-Sensor
RPi2: Viessmann(optolink) mit 99_VCONTROL.pm,
Cubietruck: Wheezy / Apache / Owncloud
Cubietruck: Armbian(Jessie) / fhem 5.7 / LMS 7.9
RPi3: (Test) mit 7" Touch  &  HM-MOD-RPI-PCB

Dr. Boris Neubert

Das kommt vor, wenn die Ergebnisliste von get ... find ... leer ist und ist nicht schädlich.

Habe eine Änderung eingecheckt, die die Warnung verhindert.

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

kvo1

Hallo Boris,

danke für die schnelle Reaktion, werd´s mal testen.

klaus
RPi1: mit CUL: HM-CC-RT-DN,HM-ES-PMSw1-Pl,HM-LC-BL1-FM,HM-LC-Bl1PBU-FM,HM-LC-SW1-PL2,HM-SCI-3-FM,HM-SEC-SC-2,KFM-Sensor
RPi2: Viessmann(optolink) mit 99_VCONTROL.pm,
Cubietruck: Wheezy / Apache / Owncloud
Cubietruck: Armbian(Jessie) / fhem 5.7 / LMS 7.9
RPi3: (Test) mit 7" Touch  &  HM-MOD-RPI-PCB

kvo1

Hallo Boris,

leider kommt die Meldung noch immer ....

Zitat2015.06.08 15:19:01 1: PERL WARNING: Use of uninitialized value $texts[0] in join or string at ./FHEM/57_Calendar.pm line 1073


gruss
kvo1
RPi1: mit CUL: HM-CC-RT-DN,HM-ES-PMSw1-Pl,HM-LC-BL1-FM,HM-LC-Bl1PBU-FM,HM-LC-SW1-PL2,HM-SCI-3-FM,HM-SEC-SC-2,KFM-Sensor
RPi2: Viessmann(optolink) mit 99_VCONTROL.pm,
Cubietruck: Wheezy / Apache / Owncloud
Cubietruck: Armbian(Jessie) / fhem 5.7 / LMS 7.9
RPi3: (Test) mit 7" Touch  &  HM-MOD-RPI-PCB

kvo1

#4
Hallo Boris,

hast Du noch eine Idee bzgl. der Meldung beim Neustart

Zitat2015.06.14 17:53:28 1: PERL WARNING: Use of uninitialized value $texts[0] in join or string at ./FHEM/57_Calendar.pm line 1073

Aktuell bin ich ja schon , oder ?

$Id: 57_Calendar.pm 8687 2015-06-04 13:29:42Z borisneubert $


und ich habe auch noche ein Aktualisierungsproblem

http://forum.fhem.de/index.php/topic,29622.msg303788.html#msg303788

kvo1
RPi1: mit CUL: HM-CC-RT-DN,HM-ES-PMSw1-Pl,HM-LC-BL1-FM,HM-LC-Bl1PBU-FM,HM-LC-SW1-PL2,HM-SCI-3-FM,HM-SEC-SC-2,KFM-Sensor
RPi2: Viessmann(optolink) mit 99_VCONTROL.pm,
Cubietruck: Wheezy / Apache / Owncloud
Cubietruck: Armbian(Jessie) / fhem 5.7 / LMS 7.9
RPi3: (Test) mit 7" Touch  &  HM-MOD-RPI-PCB

Dr. Boris Neubert

Aktuell ist Deine Version und komisch, dass die Meldung immer noch kommt.

Da die Meldung nicht schädlich ist, werde ich mich erst gelegentlich mit weiteren Versuchen zur Abhilfe befassen.

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

Dr. Boris Neubert

Hallo kvo1,

sag mal, hast Du ein

get DeinCalendar irgendwas

in Deiner Konfigurationsdatei?

Kommt die Meldung im Log auch, wenn Du

get DeinCalendar location all

oder

get DeinCalendar full all

auf der Konsole eingibst?

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

kvo1

Hallo Boris,

Danke für Deine Antworten...

Zitatsag mal, hast Du ein

get DeinCalendar irgendwas

in Deiner Konfigurationsdatei?

Nein, ich habe das gemäß commandref

define <name> Calendar ical url <URL> [<interval>]

definiert und ein interval angegeben , dachte das reicht ?   :-[


ZitatKommt die Meldung im Log auch, wenn Du
get DeinCalendar location all

NEIN

bei einem der Kalender kam bei

get DeinCalendar full all

2015.06.20 22:28:16 1: PERL WARNING: Use of uninitialized value in sprintf at ./FHEM/57_Calendar.pm line 498.

aber auch nur ein mal , wenn ich die Abfrage wiederhole kommt es nicht mehr

Danke für Deine Hilfe
Klaus



RPi1: mit CUL: HM-CC-RT-DN,HM-ES-PMSw1-Pl,HM-LC-BL1-FM,HM-LC-Bl1PBU-FM,HM-LC-SW1-PL2,HM-SCI-3-FM,HM-SEC-SC-2,KFM-Sensor
RPi2: Viessmann(optolink) mit 99_VCONTROL.pm,
Cubietruck: Wheezy / Apache / Owncloud
Cubietruck: Armbian(Jessie) / fhem 5.7 / LMS 7.9
RPi3: (Test) mit 7" Touch  &  HM-MOD-RPI-PCB

Dr. Boris Neubert

Zitat von: kvo1 am 20 Juni 2015, 22:33:14


define <name> Calendar ical url <URL> [<interval>]

definiert und ein interval angegeben , dachte das reicht ?   


Ja genau, mehr ist nicht notwendig und auch nicht gut. Ich frage mich aber noch, warum die Meldung beim Start kommt.

Zitat

bei einem der Kalender kam bei

get DeinCalendar full all

2015.06.20 22:28:16 1: PERL WARNING: Use of uninitialized value in sprintf at ./FHEM/57_Calendar.pm line 498.

aber auch nur ein mal , wenn ich die Abfrage wiederhole kommt es nicht mehr


Wie gesagt, das ist nicht schädlich und Du kannst es ignorieren. Meine Neugier ist geweckt.

Ich werde morgen weiter über dem Code meditieren.

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

Dr. Boris Neubert

Hallo Klaus,

ich bekomme die Meldungen nicht und ich vermute, dass es damit zu tun hat, dass in Deinem Kalender ein bestimmter Wert nicht gesetzt ist. Kannst Du mal bitte im Code von 57_Calendar.pm, hinter Zeile 497, also zwischen die mit my ... und return ... beginnenden Zeilen die folgenden Zeilen einbauen:

  main::Log3 undef,1,$self->uid();
  main::Log3 undef,1,$self->state();
  main::Log3 undef,1,$self->mode();
  main::Log3 undef,1,ts($self->{alarm});
  main::Log3 undef,1,ts($self->{start});
  main::Log3 undef,1,ts($self->{end});
  main::Log3 undef,1,$self->{summary};
  main::Log3 undef,1,$self->{location};


Dann bitte FHEM neu starten und schauen, ob es Warnings bzgl. der neuen Zeilen gibt, wenn Du auf dem einem Kalender, bei dem gestern die Meldung kam,
get DeinCalendar full all
eingibst. Ich will wissen, welches Feld die Warnung erzeugt.

Woher kommt die ical-Datei, die diesem Kalender zu Grunde liegt?

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

kvo1

Hallo Boris,

ich habe die Zeilen eingebaut !

Direkt nach dem Neustart von fhem kommt im log folgende Meldung

2015.06.21 23:44:47 1: PERL WARNING: Use of uninitialized value $texts[0] in join or string at ./FHEM/57_Calendar.pm line 1081.

get CalendarNr1 full all
kommen diese Meldungen , eine aus fhem.pl und die andere aus Deinem Modul

2015.06.21 23:49:16 1: F98B53A3D18E4901AB6E8D2F34290505
2015.06.21 23:49:16 1: new
2015.06.21 23:49:16 1: upcoming
2015.06.21 23:49:16 1: 15.08.2015 09:00:00
2015.06.21 23:49:16 1: 22.08.2015 00:00:00
2015.06.21 23:49:16 1: 24.08.2015 00:00:00
2015.06.21 23:49:16 1: Lovis Schulanfang
2015.06.21 23:49:16 1: PERL WARNING: Use of uninitialized value $text in concatenation (.) or string at fhem.pl line 809.
2015.06.21 23:49:16 1:
2015.06.21 23:49:16 1: PERL WARNING: Use of uninitialized value in sprintf at ./FHEM/57_Calendar.pm line 506.

location kommt dann nicht mehr.
Der Termin ist ganztags vom 22.8.  bis 23.8  (einmal Erinnerung 1 Woche vorher)

Wenn ich die Abfrage dann ein 2. Mal wiederhole , kommt die Meldung nicht mehr !

ZitatWoher kommt die ical-Datei, die diesem Kalender zu Grunde liegt?
ich beziehe die Daten direkt aus meinen ownCloud-Kalender ....so

ical url http://<USER>:<PW>@<SERVER>/owncloud/index.php/apps/calendar/export.php?calid=9 3600

davon habe ich 3 (verschiedene) Einträge.

Gruss
Klaus

Ach ja , was mach ich mit der (nicht funktionierenden) Aktualisierung (löschen vergangener Termine )?






RPi1: mit CUL: HM-CC-RT-DN,HM-ES-PMSw1-Pl,HM-LC-BL1-FM,HM-LC-Bl1PBU-FM,HM-LC-SW1-PL2,HM-SCI-3-FM,HM-SEC-SC-2,KFM-Sensor
RPi2: Viessmann(optolink) mit 99_VCONTROL.pm,
Cubietruck: Wheezy / Apache / Owncloud
Cubietruck: Armbian(Jessie) / fhem 5.7 / LMS 7.9
RPi3: (Test) mit 7" Touch  &  HM-MOD-RPI-PCB

Dr. Boris Neubert

Hallo,

Zitat von: kvo1 am 22 Juni 2015, 00:11:59
location kommt dann nicht mehr.


das Problem ist wohl, dass location nicht gesetzt wird. Ich werde gelegentlich schauen, wie ich das abfange.


Zitat
Ach ja , was mach ich mit der (nicht funktionierenden) Aktualisierung (löschen vergangener Termine )?

Äh, da weiß ich gerade nicht, worum es Dir geht. Kannst Du bitte einen neuen Thread dazu aufmachen mit allen Angaben, die mir das Nachstellen des Problems ermöglichen? Danke.

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

Dr. Boris Neubert

Zitat von: Dr. Boris Neubert am 28 Juni 2015, 21:14:39
das Problem ist wohl, dass location nicht gesetzt wird. Ich werde gelegentlich schauen, wie ich das abfange.

In der Version hier: http://forum.fhem.de/index.php/topic,38658.msg311490.html#msg311490 sollte diese Sache auch erledigt sein.

Bitte auch mal kurz testen. Danke.

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

kvo1


ZitatBitte auch mal kurz testen. Danke.

die meldung ist weg  ;)

Danke
RPi1: mit CUL: HM-CC-RT-DN,HM-ES-PMSw1-Pl,HM-LC-BL1-FM,HM-LC-Bl1PBU-FM,HM-LC-SW1-PL2,HM-SCI-3-FM,HM-SEC-SC-2,KFM-Sensor
RPi2: Viessmann(optolink) mit 99_VCONTROL.pm,
Cubietruck: Wheezy / Apache / Owncloud
Cubietruck: Armbian(Jessie) / fhem 5.7 / LMS 7.9
RPi3: (Test) mit 7" Touch  &  HM-MOD-RPI-PCB

2bedom

Hallo,

ich muss das thema noch mal aufgreifen.. mein fhem ist aktuell, ich hab auch einen kalender(Abfallleerung vom Amt) der keine location hat..

bei einem  get calender full all , bekomm ich auch keine fehelrmeldung... allerdings beim starten von fhem schon..

2016.01.09 00:30:02 1: PERL WARNING: Use of uninitialized value $texts[0] in join or string at ./FHEM/57_Calendar.pm line 1073.

und wenn ich ein get calender location all mach bekomme ich
2016.01.09 00:38:39 1: PERL WARNING: Use of uninitialized value in sprintf at ./FHEM/57_Calendar.pm line 498.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[1] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[2] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[3] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[4] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[5] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[6] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[7] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[8] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[9] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[10] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[11] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[12] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[13] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[14] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[15] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[16] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[17] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[18] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[19] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[20] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[21] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[22] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[23] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[24] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[25] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[26] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[27] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[28] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[29] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[30] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[31] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[32] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[33] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[34] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[35] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[36] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[37] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[38] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[39] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[40] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[41] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[42] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[43] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[44] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[45] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[46] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[47] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[48] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[49] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[50] in join or string at ./FHEM/57_Calendar.pm line 1073.
2016.01.09 00:39:43 1: PERL WARNING: Use of uninitialized value $texts[51] in join or string at ./FHEM/57_Calendar.pm line 1073.


ist das der gleiche fehler der sich wieder eingeschlichen hat oder ist das was neues ?