Neues Modul für Abfallkalender ABFALL

Begonnen von uniqueck, 27 Januar 2016, 01:02:41

Vorheriges Thema - Nächstes Thema

nanocosmos

Danke für den Tipp! Hätte mir natürlich auffallen müssen: myAbfall als Device aber myABFALL im FTUI   ::)

Jetzt wird in FTUI schon mal eine graue Tonne mit Tagen bis zur Leerung angezeigt.
Nur fehlen die anderen Tonnen und es wird auch die falsche Tonne angezeigt. Leider wären die Biotonne und die Papiertonne dran.  ;D

Hatte überlegt, dass ich bei data-get-on noch die weiteren Tonnen eintrage, also so:
data-get-on='["Restmuell_.*","Wertstoff_.*","Biotonne_.*","Papiertonne_.*"]'
Leider ohne Ergebnis.

TeleDet

@nanocosmos

das wird mit dieser Version von ABFALL bzw mit den in der zugehörigen Beispielen im Wiki nicht funktionieren. Ich habe es auch versucht und
mit "Anwendungsbeispiel(e) - Einbindung ins Tablet UI" das was du nutzt, bekommst du das was im Anhang Bild "Abfall 2.jpg" zu sehen ist.
Mit "Anwendungsbeispiel(e) - Einbindung ins Tablet UI, erweitert" bekommst du das was in Anhang "Abfall 2.jpg" zu sehen ist.

Wobei im Wiki da nich ein Fehler im Code steckt!

attr myABFALL userReadings ftui_datum {ReadingsVal("myABFALL","now_text","") eq "" ? datumHeuteMorgen(ReadingsVal("myABFALL","next_datum","")) : "heute";},ftui_next {ReadingsVal("myABFALL","now_text","") eq "" ? ReadingsVal("myABFALL","next","") : ReadingsVal("myABFALL","now","")."_0";;}

sollte richtig lauten:

attr myABFALL userReadings ftui_datum {ReadingsVal("myABFALL","now_text","") eq "" ? datumHeuteMorgen(ReadingsVal("myABFALL","next_datum","")) : "heute";;},ftui_next {ReadingsVal("myABFALL","now_text","") eq "" ? ReadingsVal("myABFALL","next","") : ReadingsVal("myABFALL","now","")."_0";;}

sonst bekommt man einen Fehler in der Form:

Zitat2017.08.13 19:01:25 1: configfile: Unknown command },ftui_next, try help.
2017.08.13 19:01:25 2: Messages collected while initializing FHEM: configfile: Unknown command },ftui_next, try help.

Das was du vermutlich möchtest ist in Anhang "Abfall 1.jpg" zu sehen. Das bekommst du mit dieser Anleitung:

http://www.juergenstechnikwelt.de/smarthome-2/smarthome-mit-fhem-umsetzung-meines-abfallkalenders/

Du kannst den selben Google-Kalender verwenden wie für die "57_ABFALL.pm". Ich verwende beide Versionen.
Die "57_ABFALL.pm" für die Erinnerung per Telegram App und die aus dem Link für FTUI.

Gruß TeleDet


nanocosmos

#902
Vielen Dank für Deine ausführliche Hilfe!!!
Ich werde es morgen direkt mal versuchen.

uniqueck

So ich habe nun mal Zeit gefunden, mich mit dem Fehler zu befassen ;)

Bitte testet mal die angehangende Version und gebt mir Rückmeldung ob das so wieder alles ok ist.

Gruß Constantin

P.S.: Ich möchte mich noch einmal für die Unannehmlichkeiten entschuldigen, welche du die letzte Version entstanden sind und des Weiteren hatte ich auch wenig Zeit mich zeitnah um das Problem zu kümmern.



kumue

Runtergeladen, eingespielt und bis jetzt alles OK.
Einzig was mir auffiel:
stateFormat next_text in next_tage Tag(en)
ändern in
stateFormat next_text in next_days Tag(en)

Danke schonmal !

mahowi

Hallo Constantin,

ich habe die Version aus Deinem Post installiert und bekomme jetzt alte Termine vom Anfang des Jahres angezeigt anstatt der nächsten Termine.

list Abfall:
Internals:
   CFGFN
   DEF        Cal_WAB 43200
   KALENDER   Cal_WAB
   NAME       Abfall
   NOTIFYDEV  Cal_WAB
   NR         143
   NTFY_ORDER 50-Abfall
   STATE      Nächster Termin: next_text next_date
   TYPE       ABFALL
   READINGS:
     2017-08-14 07:59:38   Altpapier_date  30.03.2017 00:00:00
     2017-08-14 07:59:38   Altpapier_days  -137
     2017-08-14 07:59:38   Altpapier_location Rennerod\, Sägewerk Gerhard
     2017-08-14 07:59:38   Altpapier_text  Altpapier
     2017-08-14 07:59:38   Altpapier_weekday Do
     2017-08-14 07:59:38   Bioabfall_date  23.03.2017 00:00:00
     2017-08-14 07:59:38   Bioabfall_days  -144
     2017-08-14 07:59:38   Bioabfall_location Rennerod\, Sägewerk Gerhard
     2017-08-14 07:59:38   Bioabfall_text  Bioabfall
     2017-08-14 07:59:38   Bioabfall_weekday Do
     2017-08-14 07:59:38   GelberSack_date 06.04.2017 00:00:00
     2017-08-14 07:59:38   GelberSack_days -130
     2017-08-14 07:59:38   GelberSack_location Rennerod\, Sägewerk Gerhard
     2017-08-14 07:59:38   GelberSack_text Gelber Sack
     2017-08-14 07:59:38   GelberSack_weekday Do
     2017-08-14 07:59:38   Restabfall_date 12.04.2017 00:00:00
     2017-08-14 07:59:38   Restabfall_days -124
     2017-08-14 07:59:38   Restabfall_location Rennerod\, Sägewerk Gerhard
     2017-08-14 07:59:38   Restabfall_text Restabfall
     2017-08-14 07:59:38   Restabfall_weekday Mi
     2017-08-14 07:59:38   Sperrmuell_date 11.08.2017 00:00:00
     2017-08-14 07:59:38   Sperrmuell_days -3
     2017-08-14 07:59:38   Sperrmuell_location Rennerod\, Sägewerk Gerhard
     2017-08-14 07:59:38   Sperrmuell_text Sperrmüll
     2017-08-14 07:59:38   Sperrmuell_weekday Fr
     2017-08-14 07:59:38   state           Keine Abholungen
Attributes:
   alias      Müllabfuhr
   calendarname_praefix 0
   group      Termine
   room       Allgemein
   sortby     1
   stateFormat Nächster Termin: next_text next_date
   weekday_mapping Mi Do Fr Sa So Mo Di


Hier mal die Ausgabe von get Cal_WAB full next:
3c1ebb8c7877911c1f53acc9e2a3d021googlecom     start                     23.03.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
5ea5d15dbe4d97bc71405bd6eb7f2a53googlecom     start                     30.03.2017 00:00:00- Altpapier Rennerod\, Sägewerk Gerhard
38cc75ac20287d88e78fa74b6e40c6efgooglecom     start                     06.04.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
d6de497984ff649f91e5d86672081a4fgooglecom     start                     06.04.2017 00:00:00- Gelber Sack Rennerod\, Sägewerk Gerhard
e6aa4d9d7602192f7df754ba355b06fbgooglecom     start                     12.04.2017 00:00:00- Restabfall Rennerod\, Sägewerk Gerhard
36952d5e93a87b6fe86ea2f35c9cc314googlecom     start                     21.04.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
9c9cf90698c7fb03623d2cffe7124875googlecom     start                     27.04.2017 00:00:00- Altpapier Rennerod\, Sägewerk Gerhard
569d3a474262ed831404d23e20f66570googlecom     start                     05.05.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
cbb5d60ce3e8282ebb79bde0beff65aagooglecom     start                     05.05.2017 00:00:00- Gelber Sack Rennerod\, Sägewerk Gerhard
3b0330cc324480eddc3a05fcf4a0192egooglecom     start                     11.05.2017 00:00:00- Restabfall Rennerod\, Sägewerk Gerhard
b72916f557f5d102600e0540af2fa51bgooglecom     start                     18.05.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
b1f0d54911612f62fdd0bbda22c6775bgooglecom     start                     26.05.2017 00:00:00- Altpapier Rennerod\, Sägewerk Gerhard
a38016b75ea76dee23e2cb9ddfe1ef9fgooglecom     start                     01.06.2017 00:00:00- Gelber Sack Rennerod\, Sägewerk Gerhard
b9d436c2c92b6f80b24cc9bd223d624bgooglecom     start                     01.06.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
a225f0bfca8f4bbe8ef9889639241614googlecom     start                     16.06.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
72a68687c682b8893fa832172be19c8bgooglecom     start                     22.06.2017 00:00:00- Altpapier Rennerod\, Sägewerk Gerhard
09f0a54a6f23c6f9e9a02b6f95a72f2cgooglecom     start                     29.06.2017 00:00:00- Gelber Sack Rennerod\, Sägewerk Gerhard
2b2b934626e7ffe9d6fc1ec1a99f6cb2googlecom     start                     29.06.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
0b5a0a740912cb2e12e3f499220c2f55googlecom     start                     06.07.2017 00:00:00- Restabfall Rennerod\, Sägewerk Gerhard
f102fdd453df338ef9404ae10d510807googlecom     start                     13.07.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
4f6982cf754521d6b91c03cf480d3d8bgooglecom     start                     20.07.2017 00:00:00- Altpapier Rennerod\, Sägewerk Gerhard
fa88b843f7bdbfa6579ab113ddeaab8agooglecom     start                     27.07.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
51cea2cc4eb87500868fb45787a0010bgooglecom     start                     27.07.2017 00:00:00- Gelber Sack Rennerod\, Sägewerk Gerhard
bde441ec3ba0407f13bfe92d11b229f1googlecom     start                     03.08.2017 00:00:00- Restabfall Rennerod\, Sägewerk Gerhard
08fc33b46161804c9a4bf3086b81739dgooglecom     start                     10.08.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
33108f3c03cae8646d3ef4303329c345googlecom     start                     11.08.2017 00:00:00- Sperrmüll Rennerod\, Sägewerk Gerhard
dd1e00aee0a8ea08f1e57194924ba707googlecom  upcoming                     17.08.2017 00:00:00- Altpapier Rennerod\, Sägewerk Gerhard
d3e5d8df0e3749472dabf7f7375f00e2googlecom  upcoming                     24.08.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
b62c9cc5a5b586faaa7e22a7a739942fgooglecom  upcoming                     24.08.2017 00:00:00- Gelber Sack Rennerod\, Sägewerk Gerhard
2ba7511fb5c0ae9075d5867a676571c5googlecom  upcoming                     31.08.2017 00:00:00- Restabfall Rennerod\, Sägewerk Gerhard
1b73f503afdcc6a02040807a07f3db73googlecom  upcoming                     07.09.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
b9e328dc3bc5f946c1c79b42e769ba4bgooglecom  upcoming                     14.09.2017 00:00:00- Altpapier Rennerod\, Sägewerk Gerhard
b791448eeeef8f69f74d6d01bcec75b2googlecom  upcoming                     21.09.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
43bcf9aaaddf761c9e8ef51670f7c059googlecom  upcoming                     21.09.2017 00:00:00- Gelber Sack Rennerod\, Sägewerk Gerhard
fc9506e6232efb805913e64edb7b9dd3googlecom  upcoming                     28.09.2017 00:00:00- Restabfall Rennerod\, Sägewerk Gerhard
c588b38b8edf36cb3c7161015e60e6afgooglecom  upcoming                     06.10.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
e9621d90185e3bac85ac5c90236001dcgooglecom  upcoming                     12.10.2017 00:00:00- Altpapier Rennerod\, Sägewerk Gerhard
b859fe84db392ca2dc80c3e288169151googlecom  upcoming                     19.10.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
175f7303cb3f5c7d2a0e469c5e8b7d4egooglecom  upcoming                     19.10.2017 00:00:00- Gelber Sack Rennerod\, Sägewerk Gerhard
f6d8446c7eeddd3e189da10464e35767googlecom  upcoming                     26.10.2017 00:00:00- Restabfall Rennerod\, Sägewerk Gerhard
bf6f8fd54ebbb3daebe6e4a2c2e9134bgooglecom  upcoming                     03.11.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
5129334861b55f0d480a26425bf251f0googlecom  upcoming                     09.11.2017 00:00:00- Altpapier Rennerod\, Sägewerk Gerhard
a7a9d11721c949da34e21079d9093dcbgooglecom  upcoming                     16.11.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
c612fe1b3b5bdea2646bbe4cf63741fegooglecom  upcoming                     16.11.2017 00:00:00- Gelber Sack Rennerod\, Sägewerk Gerhard
bfc86d3456a8c8c94b763bbab94c0112googlecom  upcoming                     23.11.2017 00:00:00- Restabfall Rennerod\, Sägewerk Gerhard
29ca0035f50a3a9da944ba3a2743308bgooglecom  upcoming                     30.11.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
0c7a329df377af4e42642aafa6096a75googlecom  upcoming                     07.12.2017 00:00:00- Altpapier Rennerod\, Sägewerk Gerhard
a11640f2112a1fe4be7b1ca34796f22cgooglecom  upcoming                     14.12.2017 00:00:00- Gelber Sack Rennerod\, Sägewerk Gerhard
1a6196a1b1be6e5b1011930021f6640egooglecom  upcoming                     14.12.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard
e93f784d554c4bf2495b777fa5b65806googlecom  upcoming                     21.12.2017 00:00:00- Restabfall Rennerod\, Sägewerk Gerhard
f161a7bdafa42bc136c646c8762c20c2googlecom  upcoming                     29.12.2017 00:00:00- Bioabfall Rennerod\, Sägewerk Gerhard


Wie es aussieht, werden die Termine, die auf "start" stehen, angezeigt, anstatt "upcoming".

Außerdem gibt es wieder Perl Warnungen:
2017.08.14 07:59:15.935 3: ABFALL Abfall - CALENDAR:Cal_WAB triggered, updating ABFALL Abfall ...
2017.08.14 07:59:15.936 3: ABFALL_UPDATE
2017.08.14 07:59:15.962 1: PERL WARNING: garbage at end of string in strptime: 17 at /usr/lib/arm-linux-gnueabihf/perl/5.24/Time/Piece.pm line 481.
2017.08.14 07:59:15.962 1: stacktrace:
2017.08.14 07:59:15.963 1:     main::__ANON__                      called by /usr/lib/arm-linux-gnueabihf/perl/5.24/Time/Piece.pm (481)
2017.08.14 07:59:15.963 1:     Time::Piece::strptime               called by ./FHEM/57_ABFALL.pm (427)
2017.08.14 07:59:15.963 1:     main::getEvents                     called by ./FHEM/57_ABFALL.pm (188)
2017.08.14 07:59:15.964 1:     main::ABFALL_GetUpdate              called by ./FHEM/57_ABFALL.pm (353)
2017.08.14 07:59:15.964 1:     main::ABFALL_Notify                 called by fhem.pl (3433)
2017.08.14 07:59:15.964 1:     main::CallFn                        called by fhem.pl (3354)
2017.08.14 07:59:15.964 1:     main::DoTrigger                     called by fhem.pl (4326)
2017.08.14 07:59:15.965 1:     main::readingsEndUpdate             called by ./FHEM/57_Calendar.pm (2728)
2017.08.14 07:59:15.965 1:     main::Calendar_CheckTimes           called by ./FHEM/57_Calendar.pm (2238)
2017.08.14 07:59:15.965 1:     main::Calendar_CheckAndRearm        called by ./FHEM/57_Calendar.pm (2310)
2017.08.14 07:59:15.966 1:     main::Calendar_PollChild            called by fhem.pl (3021)
2017.08.14 07:59:15.966 1:     main::HandleTimeout                 called by fhem.pl (621)
2017.08.14 07:59:15.971 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/57_ABFALL.pm line 435.
2017.08.14 07:59:15.972 1: stacktrace:
2017.08.14 07:59:15.972 1:     main::__ANON__                      called by ./FHEM/57_ABFALL.pm (435)
2017.08.14 07:59:15.973 1:     main::getEvents                     called by ./FHEM/57_ABFALL.pm (188)
2017.08.14 07:59:15.973 1:     main::ABFALL_GetUpdate              called by ./FHEM/57_ABFALL.pm (353)
2017.08.14 07:59:15.973 1:     main::ABFALL_Notify                 called by fhem.pl (3433)
2017.08.14 07:59:15.974 1:     main::CallFn                        called by fhem.pl (3354)
2017.08.14 07:59:15.974 1:     main::DoTrigger                     called by fhem.pl (4326)
2017.08.14 07:59:15.974 1:     main::readingsEndUpdate             called by ./FHEM/57_Calendar.pm (2728)
2017.08.14 07:59:15.975 1:     main::Calendar_CheckTimes           called by ./FHEM/57_Calendar.pm (2238)
2017.08.14 07:59:15.975 1:     main::Calendar_CheckAndRearm        called by ./FHEM/57_Calendar.pm (2310)
2017.08.14 07:59:15.975 1:     main::Calendar_PollChild            called by fhem.pl (3021)
2017.08.14 07:59:15.975 1:     main::HandleTimeout                 called by fhem.pl (621)
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

Phiolin

Ist auf jeden Fall schon mal besser als vorher, aber einige Dinge sind trotzdem anders und sollten so glaube ich nicht sein.
Hier mal ein Vergleich:

Zuerst mal treten beim Update ein paar Perl Warnings auf:
2017.08.14 08:35:10 3: ABFALL cal.Abfall - CALENDAR:cal.Haus triggered, updating ABFALL cal.Abfall ...
2017.08.14 08:35:10 3: ABFALL_UPDATE
2017.08.14 08:35:10 1: PERL WARNING: garbage at end of string in strptime: 17 at /usr/lib/arm-linux-gnueabihf/perl/5.20/Time/Piece.pm line 469.
2017.08.14 08:35:10 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/57_ABFALL.pm line 435.
2017.08.14 08:35:10 1: PERL WARNING: Use of uninitialized value $nextAbfall_location in string eq at ./FHEM/57_ABFALL.pm line 225.
2017.08.14 08:35:10 1: PERL WARNING: Use of uninitialized value $nextAbfall_description in string eq at ./FHEM/57_ABFALL.pm line 232.


Dann ein List mit der neuen Version:
Internals:
   DEF        cal.Haus 3600
   KALENDER   cal.Haus
   NAME       cal.Abfall
   NOTIFYDEV  cal.Haus
   NR         86
   NTFY_ORDER 50-cal.Abfall
   STATE      2
   TYPE       ABFALL
   READINGS:
     2017-08-14 08:35:10   calHaus_Biotonne_date 16.08.2017 00:00:00
30.08.2017 00:00:00
13.09.2017 00:00:00
27.09.2017 00:00:00
11.10.2017 00:00:00
25.10.2017 00:00:00
08.11.2017 00:00:00
22.11.2017 00:00:00
06.12.2017 00:00:00
20.12.2017 00:00:00
03.01.2018 00:00:00
17.01.2018 00:00:00
31.01.2018 00:00:00
14.02.2018 00:00:00
28.02.2018 00:00:00
14.03.2018 00:00:00
28.03.2018 00:00:00
11.04.2018 00:00:00
25.04.2018 00:00:00
09.05.2018 00:00:00
23.05.2018 00:00:00
06.06.2018 00:00:00
20.06.2018 00:00:00
04.07.2018 00:00:00
18.07.2018 00:00:00
01.08.2018 00:00:00
15.08.2018 00:00:00
29.08.2018 00:00:00
12.09.2018 00:00:00
     2017-08-14 08:35:10   calHaus_Biotonne_days 2
     2017-08-14 08:35:10   calHaus_Biotonne_text Biotonne
     2017-08-14 08:35:10   calHaus_Biotonne_weekday Sonntag
     2017-08-14 08:35:10   calHaus_BlaueTonne_date 23.08.2017 00:00:00
06.09.2017 00:00:00
20.09.2017 00:00:00
05.10.2017 00:00:00
18.10.2017 00:00:00
02.11.2017 00:00:00
15.11.2017 00:00:00
29.11.2017 00:00:00
13.12.2017 00:00:00
28.12.2017 00:00:00
10.01.2018 00:00:00
24.01.2018 00:00:00
07.02.2018 00:00:00
21.02.2018 00:00:00
07.03.2018 00:00:00
21.03.2018 00:00:00
04.04.2018 00:00:00
18.04.2018 00:00:00
02.05.2018 00:00:00
16.05.2018 00:00:00
30.05.2018 00:00:00
13.06.2018 00:00:00
27.06.2018 00:00:00
11.07.2018 00:00:00
25.07.2018 00:00:00
08.08.2018 00:00:00
22.08.2018 00:00:00
05.09.2018 00:00:00
     2017-08-14 08:35:10   calHaus_BlaueTonne_days 9
     2017-08-14 08:35:10   calHaus_BlaueTonne_text Blaue Tonne
     2017-08-14 08:35:10   calHaus_BlaueTonne_weekday Sonntag
     2017-08-14 08:35:10   calHaus_GelbeTonne_date 22.08.2017 00:00:00
05.09.2017 00:00:00
19.09.2017 00:00:00
04.10.2017 00:00:00
17.10.2017 00:00:00
30.10.2017 00:00:00
14.11.2017 00:00:00
28.11.2017 00:00:00
12.12.2017 00:00:00
27.12.2017 00:00:00
09.01.2018 00:00:00
23.01.2018 00:00:00
06.02.2018 00:00:00
20.02.2018 00:00:00
06.03.2018 00:00:00
20.03.2018 00:00:00
03.04.2018 00:00:00
17.04.2018 00:00:00
01.05.2018 00:00:00
15.05.2018 00:00:00
29.05.2018 00:00:00
12.06.2018 00:00:00
26.06.2018 00:00:00
10.07.2018 00:00:00
24.07.2018 00:00:00
07.08.2018 00:00:00
21.08.2018 00:00:00
04.09.2018 00:00:00
18.09.2018 00:00:00
     2017-08-14 08:35:10   calHaus_GelbeTonne_days 8
     2017-08-14 08:35:10   calHaus_GelbeTonne_text Gelbe Tonne
     2017-08-14 08:35:10   calHaus_GelbeTonne_weekday Samstag
     2017-08-14 08:35:10   calHaus_GraueTonne_date 16.08.2017 00:00:00
23.08.2017 00:00:00
30.08.2017 00:00:00
06.09.2017 00:00:00
13.09.2017 00:00:00
20.09.2017 00:00:00
27.09.2017 00:00:00
05.10.2017 00:00:00
11.10.2017 00:00:00
18.10.2017 00:00:00
25.10.2017 00:00:00
02.11.2017 00:00:00
08.11.2017 00:00:00
15.11.2017 00:00:00
22.11.2017 00:00:00
29.11.2017 00:00:00
06.12.2017 00:00:00
13.12.2017 00:00:00
20.12.2017 00:00:00
28.12.2017 00:00:00
03.01.2018 00:00:00
10.01.2018 00:00:00
17.01.2018 00:00:00
24.01.2018 00:00:00
31.01.2018 00:00:00
07.02.2018 00:00:00
14.02.2018 00:00:00
21.02.2018 00:00:00
28.02.2018 00:00:00
07.03.2018 00:00:00
14.03.2018 00:00:00
21.03.2018 00:00:00
28.03.2018 00:00:00
04.04.2018 00:00:00
11.04.2018 00:00:00
18.04.2018 00:00:00
25.04.2018 00:00:00
02.05.2018 00:00:00
09.05.2018 00:00:00
16.05.2018 00:00:00
23.05.2018 00:00:00
30.05.2018 00:00:00
06.06.2018 00:00:00
13.06.2018 00:00:00
20.06.2018 00:00:00
27.06.2018 00:00:00
04.07.2018 00:00:00
11.07.2018 00:00:00
18.07.2018 00:00:00
25.07.2018 00:00:00
01.08.2018 00:00:00
08.08.2018 00:00:00
15.08.2018 00:00:00
22.08.2018 00:00:00
29.08.2018 00:00:00
05.09.2018 00:00:00
12.09.2018 00:00:00
     2017-08-14 08:35:10   calHaus_GraueTonne_days 2
     2017-08-14 08:35:10   calHaus_GraueTonne_text Graue Tonne
     2017-08-14 08:35:10   calHaus_GraueTonne_weekday Sonntag
     2017-08-14 08:35:10   next            calHaus_GraueTonne|calHaus_Biotonne_2
     2017-08-14 08:35:10   next_date       16.08.2017 00:00:00
30.08.2017 00:00:00
13.09.2017 00:00:00
27.09.2017 00:00:00
11.10.2017 00:00:00
25.10.2017 00:00:00
08.11.2017 00:00:00
22.11.2017 00:00:00
06.12.2017 00:00:00
20.12.2017 00:00:00
03.01.2018 00:00:00
17.01.2018 00:00:00
31.01.2018 00:00:00
14.02.2018 00:00:00
28.02.2018 00:00:00
14.03.2018 00:00:00
28.03.2018 00:00:00
11.04.2018 00:00:00
25.04.2018 00:00:00
09.05.2018 00:00:00
23.05.2018 00:00:00
06.06.2018 00:00:00
20.06.2018 00:00:00
04.07.2018 00:00:00
18.07.2018 00:00:00
01.08.2018 00:00:00
15.08.2018 00:00:00
29.08.2018 00:00:00
12.09.2018 00:00:00
     2017-08-14 08:35:10   next_days       2
     2017-08-14 08:35:10   next_text       Graue Tonne und Biotonne
     2017-08-14 08:35:10   next_weekday    Sonntag
     2017-08-14 08:35:10   state           2
Attributes:
   room       Kalender


Im Vergleich dazu mit der alten (funktionierenden) Version:
Internals:
   DEF        cal.Haus 3600
   KALENDER   cal.Haus
   NAME       cal.Abfall
   NOTIFYDEV  cal.Haus
   NR         86
   NTFY_ORDER 50-cal.Abfall
   STATE      2
   TYPE       ABFALL
   READINGS:
     2017-08-14 08:38:00   calHaus_Biotonne_datum 16.08.17
     2017-08-14 08:38:00   calHaus_Biotonne_tage 2
     2017-08-14 08:38:00   calHaus_Biotonne_text   Biotonne
     2017-08-14 08:38:00   calHaus_Biotonne_wochentag Mittwoch
     2017-08-14 08:38:00   calHaus_BlaueTonne_datum 23.08.17
     2017-08-14 08:38:00   calHaus_BlaueTonne_tage 9
     2017-08-14 08:38:00   calHaus_BlaueTonne_text   Blaue Tonne
     2017-08-14 08:38:00   calHaus_BlaueTonne_wochentag Mittwoch
     2017-08-14 08:38:00   calHaus_GelbeTonne_datum 22.08.17
     2017-08-14 08:38:00   calHaus_GelbeTonne_tage 8
     2017-08-14 08:38:00   calHaus_GelbeTonne_text   Gelbe Tonne
     2017-08-14 08:38:00   calHaus_GelbeTonne_wochentag Dienstag
     2017-08-14 08:38:00   calHaus_GraueTonne_datum 16.08.17
     2017-08-14 08:38:00   calHaus_GraueTonne_tage 2
     2017-08-14 08:38:00   calHaus_GraueTonne_text   Graue Tonne
     2017-08-14 08:38:00   calHaus_GraueTonne_wochentag Mittwoch
     2017-08-14 08:38:00   next            calHaus_Biotonne|calHaus_GraueTonne_2
     2017-08-14 08:38:00   next_datum      16.08.17
     2017-08-14 08:38:00   next_tage       2
     2017-08-14 08:38:00   next_text         Biotonne und   Graue Tonne
     2017-08-14 08:38:00   next_wochentag  Mittwoch
     2017-08-14 08:38:00   state           2
Attributes:
   room       Kalender


Bei den Datumsfeldern wird also immer noch irgendwie zuviel gelesen. Sieht so aus, als würden anstatt nur der nächste Termin, hier alle Termine der Serie ausgelesen werden.
Aber es geht voran. :)

Fixel2012

Hallo zusammen,

ich habe das Abfall Modul seit 3 Tagen laufen. Funktionsprobleme kann ich keine feststellen, allerdings sieht mein Log ziemlich chaotisch aus!

Mein Fhem ist aktuell,  Abfall Modul ist aus Github auch das neuste.

Hier ein Paar Auszüge (Die Meldungen kommen recht schnell und recht oft vor.):

2017.08.14 13:06:09 3: ABFALL AbfallcalenderModul - CALENDAR:Abfallcalender triggered, updating ABFALL AbfallcalenderModul ...
2017.08.14 13:06:09 3: ABFALL_UPDATE
2017.08.14 13:06:09 1: PERL WARNING: garbage at end of string in strptime: 17 at /usr/lib/arm-linux-gnueabihf/perl/5.20/Time/Piece.pm line 469.
2017.08.14 13:06:09 1: stacktrace:
2017.08.14 13:06:09 1:     main::__ANON__                      called by /usr/lib/arm-linux-gnueabihf/perl/5.20/Time/Piece.pm (469)
2017.08.14 13:06:09 1:     Time::Piece::strptime               called by ./FHEM/57_ABFALL.pm (414)
2017.08.14 13:06:09 1:     main::getEvents                     called by ./FHEM/57_ABFALL.pm (188)
2017.08.14 13:06:09 1:     main::ABFALL_GetUpdate              called by ./FHEM/57_ABFALL.pm (353)
2017.08.14 13:06:09 1:     main::ABFALL_Notify                 called by fhem.pl (3433)
2017.08.14 13:06:09 1:     main::CallFn                        called by fhem.pl (3354)
2017.08.14 13:06:09 1:     main::DoTrigger                     called by fhem.pl (4326)
2017.08.14 13:06:09 1:     main::readingsEndUpdate             called by ./FHEM/57_Calendar.pm (2728)
2017.08.14 13:06:09 1:     main::Calendar_CheckTimes           called by ./FHEM/57_Calendar.pm (2238)
2017.08.14 13:06:09 1:     main::Calendar_CheckAndRearm        called by ./FHEM/57_Calendar.pm (2249)
2017.08.14 13:06:09 1:     main::Calendar_SynchronousUpdateCalendar called by ./FHEM/57_Calendar.pm (2215)
2017.08.14 13:06:09 1:     main::Calendar_ProcessUpdate        called by FHEM/HttpUtils.pm (453)
2017.08.14 13:06:09 1:     main::__ANON__                      called by fhem.pl (686)
2017.08.14 13:06:09 1: PERL WARNING: garbage at end of string in strptime: 17 at /usr/lib/arm-linux-gnueabihf/perl/5.20/Time/Piece.pm line 469.


Kurze Frage am Rande, wo ich bisher keine Antwort gelesen habe:

Warum ist das Abfall Modul bisher noch nicht im SVN verfügbar?

Danke und Gruß,

Fixel
Fhem 5.8 auf Raspi 3, HMLAN und 868MHz CUL mit einigen Komponenten, Z-Wave Rollladenaktoren, Tablet UI, 433 MHz CUL mit Baumarktsteckdosen und Temp Sensoren, Amazon Echo, Echo Dot, 2x SONOS  play1, 1x SONOS Connect AMP,  presence, HUE, Lightify

uniqueck

#908
So hier nun eine neue Version, wo sowohl das Problem mit dem Wochentag als auch die Warnings im Log behoben sein sollten.
Des Weiteren kommen nun auch wieder korrekt die Readings.

Bitte prüfen.

Gruß Constantin

mahowi

#909
Hallo Constantin,

die neue Version funktioniert schon besser.  :)

Allerdings sind die Wochentage noch um einen Tag verschoben. Z.B. geht bei uns Altpapier am 17.8. weg, also am Donnerstag, ABFALL zeigt aber Freitag an:
Internals:
   CFGFN
   DEF        Cal_WAB 43200
   KALENDER   Cal_WAB
   NAME       Abfall
   NOTIFYDEV  Cal_WAB
   NR         143
   NTFY_ORDER 50-Abfall
   STATE      Nächster Termin: Altpapier 17.08.2017 00:00:00
   TYPE       ABFALL
   READINGS:
     2017-08-15 08:14:53   Altpapier_date  17.08.2017 00:00:00
     2017-08-15 08:14:53   Altpapier_days  2
     2017-08-15 08:14:53   Altpapier_location Rennerod\, Sägewerk Gerhard
     2017-08-15 08:14:53   Altpapier_text  Altpapier
     2017-08-15 08:14:53   Altpapier_weekday Fr
     2017-08-15 08:14:53   Bioabfall_date  24.08.2017 00:00:00
     2017-08-15 08:14:53   Bioabfall_days  9
     2017-08-15 08:14:53   Bioabfall_location Rennerod\, Sägewerk Gerhard
     2017-08-15 08:14:53   Bioabfall_text  Bioabfall
     2017-08-15 08:14:53   Bioabfall_weekday Fr
     2017-08-15 08:14:53   GelberSack_date 24.08.2017 00:00:00
     2017-08-15 08:14:53   GelberSack_days 9
     2017-08-15 08:14:53   GelberSack_location Rennerod\, Sägewerk Gerhard
     2017-08-15 08:14:53   GelberSack_text Gelber Sack
     2017-08-15 08:14:53   GelberSack_weekday Fr
     2017-08-15 08:14:53   Restabfall_date 31.08.2017 00:00:00
     2017-08-15 08:14:53   Restabfall_days 16
     2017-08-15 08:14:53   Restabfall_location Rennerod\, Sägewerk Gerhard
     2017-08-15 08:14:53   Restabfall_text Restabfall
     2017-08-15 08:14:53   Restabfall_weekday Fr
     2017-08-15 08:14:53   next            Altpapier_2
     2017-08-15 08:14:53   next_date       17.08.2017 00:00:00
     2017-08-15 08:14:53   next_days       2
     2017-08-15 08:14:53   next_location   Rennerod\, Sägewerk Gerhard
     2017-08-15 08:14:53   next_text       Altpapier
     2017-08-15 08:14:53   next_weekday    Fr
     2017-08-15 08:14:53   state           2
Attributes:
   alias      Müllabfuhr
   calendarname_praefix 0
   group      Termine
   room       Allgemein
   sortby     1
   stateFormat Nächster Termin: next_text next_date
   weekday_mapping Mo Di Mi Do Fr Sa So


Es kommen noch Warnings in den Zeilen 402 und 403:
2017.08.15 08:14:08.817 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/57_ABFALL.pm line 402.
2017.08.15 08:14:08.817 1: stacktrace:
2017.08.15 08:14:08.817 1:     main::__ANON__                      called by ./FHEM/57_ABFALL.pm (402)
2017.08.15 08:14:08.818 1:     main::getEvents                     called by ./FHEM/57_ABFALL.pm (188)
2017.08.15 08:14:08.818 1:     main::ABFALL_GetUpdate              called by ./FHEM/57_ABFALL.pm (353)
2017.08.15 08:14:08.818 1:     main::ABFALL_Notify                 called by fhem.pl (3433)
2017.08.15 08:14:08.818 1:     main::CallFn                        called by fhem.pl (3354)
2017.08.15 08:14:08.819 1:     main::DoTrigger                     called by fhem.pl (4326)
2017.08.15 08:14:08.819 1:     main::readingsEndUpdate             called by ./FHEM/57_Calendar.pm (2728)
2017.08.15 08:14:08.819 1:     main::Calendar_CheckTimes           called by ./FHEM/57_Calendar.pm (2238)
2017.08.15 08:14:08.819 1:     main::Calendar_CheckAndRearm        called by ./FHEM/57_Calendar.pm (2310)
2017.08.15 08:14:08.820 1:     main::Calendar_PollChild            called by fhem.pl (3021)
2017.08.15 08:14:08.820 1:     main::HandleTimeout                 called by fhem.pl (621)
2017.08.15 08:14:08.820 1: PERL WARNING: Use of uninitialized value within @starts in string eq at ./FHEM/57_ABFALL.pm line 403.
2017.08.15 08:14:08.820 1: stacktrace:
2017.08.15 08:14:08.821 1:     main::__ANON__                      called by ./FHEM/57_ABFALL.pm (403)
2017.08.15 08:14:08.821 1:     main::getEvents                     called by ./FHEM/57_ABFALL.pm (188)
2017.08.15 08:14:08.821 1:     main::ABFALL_GetUpdate              called by ./FHEM/57_ABFALL.pm (353)
2017.08.15 08:14:08.821 1:     main::ABFALL_Notify                 called by fhem.pl (3433)
2017.08.15 08:14:08.821 1:     main::CallFn                        called by fhem.pl (3354)
2017.08.15 08:14:08.822 1:     main::DoTrigger                     called by fhem.pl (4326)
2017.08.15 08:14:08.822 1:     main::readingsEndUpdate             called by ./FHEM/57_Calendar.pm (2728)
2017.08.15 08:14:08.822 1:     main::Calendar_CheckTimes           called by ./FHEM/57_Calendar.pm (2238)
2017.08.15 08:14:08.822 1:     main::Calendar_CheckAndRearm        called by ./FHEM/57_Calendar.pm (2310)
2017.08.15 08:14:08.823 1:     main::Calendar_PollChild            called by fhem.pl (3021)
2017.08.15 08:14:08.823 1:     main::HandleTimeout                 called by fhem.pl (621)


Und ab und zu in Zeile 439:
2017.08.15 08:14:09.164 1: PERL WARNING: Use of uninitialized value $eventDescription in concatenation (.) or string at ./FHEM/57_ABFALL.pm line 439.
2017.08.15 08:14:09.164 1: stacktrace:
2017.08.15 08:14:09.164 1:     main::__ANON__                      called by ./FHEM/57_ABFALL.pm (439)
2017.08.15 08:14:09.165 1:     main::getEvents                     called by ./FHEM/57_ABFALL.pm (188)
2017.08.15 08:14:09.165 1:     main::ABFALL_GetUpdate              called by ./FHEM/57_ABFALL.pm (353)
2017.08.15 08:14:09.165 1:     main::ABFALL_Notify                 called by fhem.pl (3433)
2017.08.15 08:14:09.165 1:     main::CallFn                        called by fhem.pl (3354)
2017.08.15 08:14:09.165 1:     main::DoTrigger                     called by fhem.pl (4326)
2017.08.15 08:14:09.166 1:     main::readingsEndUpdate             called by ./FHEM/57_Calendar.pm (2728)
2017.08.15 08:14:09.166 1:     main::Calendar_CheckTimes           called by ./FHEM/57_Calendar.pm (2238)
2017.08.15 08:14:09.166 1:     main::Calendar_CheckAndRearm        called by ./FHEM/57_Calendar.pm (2310)
2017.08.15 08:14:09.166 1:     main::Calendar_PollChild            called by fhem.pl (3021)
2017.08.15 08:14:09.167 1:     main::HandleTimeout                 called by fhem.pl (621)
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

Fixel2012

Zitat von: mahowi am 15 August 2017, 08:22:52
Hallo Constantin,

die neue Version funktioniert schon besser.  :)

Allerdings sind die Wochentage noch um einen Tag verschoben. Z.B. geht bei uns Altpapier am 17.8. weg, also am Donnerstag, ABFALL zeigt aber Freitag an:

Kann ich bei mir so nicht bestätigen, bei mir sind die Wochentage exakt so, wie sie sein sollten  :)


Die Perl Warnings in den Zeilen 402 und 403 kann ich hingegen bestätigen. Die Zeile 439 taucht bei mir im Log wiederum nicht auf.
Fhem 5.8 auf Raspi 3, HMLAN und 868MHz CUL mit einigen Komponenten, Z-Wave Rollladenaktoren, Tablet UI, 433 MHz CUL mit Baumarktsteckdosen und Temp Sensoren, Amazon Echo, Echo Dot, 2x SONOS  play1, 1x SONOS Connect AMP,  presence, HUE, Lightify

mahowi

Sorry, Wochentage sind in Ordnung. Ich hatte nicht bedacht, daß die Wochentage bei Sonntag anfangen, daher war mein weekday_mapping noch falsch.  :-[
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

honkmasta

Hallo Constantin,

vielen Dank für das Update! Readings und Termine sind wieder korrekt.

Ich bekomme auch die gleichen Warnings im Log (fehlende Initialisierung - sollte einfach behebbar sein)?

Zitat
2017.08.15 08:36:26 1: PERL WARNING: Use of uninitialized value $eventLocation in concatenation (.) or string at ./FHEM/57_ABFALL.pm line 439.
2017.08.15 08:36:26 1: PERL WARNING: Use of uninitialized value $eventDescription in concatenation (.) or string at ./FHEM/57_ABFALL.pm line 439.
2017.08.15 08:36:26 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/57_ABFALL.pm line 402.
2017.08.15 08:36:26 1: PERL WARNING: Use of uninitialized value within @starts in string eq at ./FHEM/57_ABFALL.pm line 403.

Gruß

Marsupilami

Hi,

hatte auch Probleme mit den Wochentagen, bei mir waren die um 3 bzw. 4 Tage verschoben. Also statt Dienstag bekam ich Samstag angezeigt.

Habe gerade versucht, auf die neue Version upzudaten. Bekomme aber eine Fehlermeldung:
2017.08.15 11:05:09 1 : UPD FHEM/57_ABFALL.pm
2017.08.15 11:05:09 1 : Got 20744 bytes for FHEM/57_ABFALL.pm, expected 20080
2017.08.15 11:05:09 1 : aborting.

Was könnte denn da nicht passen?

mahowi

Die neue Version ist nicht auf Github, sondern in Beitrag #909. Damit ist das Problem der verschobenen Wochentage beseitigt.
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee