Abfallkalender: Popup aktualisiert nicht

Begonnen von Gunther, 31 Januar 2018, 23:00:57

Vorheriges Thema - Nächstes Thema

Gunther

Leider ist mein Popup nicht mehr aktuell. Da stehen Januar Termine drin.
Kann das mit meiner Virtualisierung im LXC-Container zusammenhängen?

Mein Code:
<!-- ======================================== Widget Abfall ======================================== -->
<!-- ======================================== einfügen mit ======================================== -->
<!-- <div data-template="widget_abfall.html"></div> -->

       
             <div data-type="popup" data-draggable="false" data-height="330px" data-width="550px">

<!-- ======================================== Start Symbol (Darstellung Button mit Zustand) ======================================== -->

<div data-type="symbol"
data-device="myAbfall"
                     data-get="ftui_next"
                     data-get-on='["Abfall_Biomuell_0","Abfall_Biomuell_1","Abfall_Biomuell_.*","Abfall_GelberSack_0","Abfall_GelberSack_1","Abfall_GelberSack_.*","Abfall_Altpapier_0","Abfall_Altpapier_1","Abfall_Altpapier_.*","Abfall_Restmuell_0","Abfall_Restmuell_1","Abfall_Restmuell_.*"]'
                     data-get-warn=".*([0|1|2]).*"
                     data-on-colors='["#32a054","#32a054","#32a054","#E6E600","#E6E600","#E6E600","#6699FF","#6699FF","#6699FF","gray","gray","gray"]'
                     class="large warn narrow"
                     data-icons='["fa-trash-o fa-spin","fa-trash-o blink","fa-trash-o","fa-trash-o fa-spin","fa-trash-o blink","fa-trash-o","fa-trash-o fa-spin","fa-trash-o blink","fa-trash-o","fa-trash-o fa-spin","fa-trash-o blink","fa-trash-o"]'>             
</div>
<!-- ======================================== Ende Symbol (Darstellung Button mit Zustand) ======================================== -->

<!-- ======================================== Start Symbol-Text (Datum und Müllart) ======================================== -->

                <div data-device="myAbfall" data-get="ftui_datum" data-type="label" class="darker"></div>   
                <div data-device="myAbfall" data-get="next_text" data-type="label" class="darker"></div> 
               
<!-- ======================================== Ende Symbol-Text (Datum und Müllart) ======================================== -->

<!-- ======================================== Start Popup ======================================== -->
               
                <div class="dialog"> 
                   
            <!-- ======================================== Start Überschrift Popup ======================================== -->
                    <div data-template="template_label_title.html" data-parameter='{"var_title":"Abfall"}'></div>
    <!-- ======================================== Ende Überschrift Popup ======================================== -->
   
    <!-- ======================================== Start 1. Zeile Popup ======================================== -->
    <div class="cell">
    <div class="inline">
<div data-type="symbol"  data-off-background-color="#7A7A7A" data-on-background-color="#7A7A7A" data-device="myAbfall" data-get='Abfall_GelberSack_tage' data-off-color="#E6E600" data-get-on='["off","^[01]$","^[1-9][0-9]|[2-9]$"]' data-icons='["fs-bag warn","fs-bag warn blink","fs-bag warn"]' data-on-colors='["#E6E600","#E6E600","#E6E600"]' class="bigger"></div>
    <div data-device="myAbfall" data-get="Abfall_GelberSack_wochentag" data-type="label" class="darker"></div>
                <div data-device="myAbfall" data-get="Abfall_GelberSack_datum" data-type="label" class="darker"></div>
                <div data-type="label" class="darker">Gelber Sack</div>
</div>

<div class="inline">
<div data-type="symbol"  data-off-background-color="#7A7A7A" data-on-background-color="#7A7A7A" data-device="myAbfall" data-get='Abfall_Biomuell_tage' data-off-color="#32a054" data-get-on='["off","^[01]$","^[1-9][0-9]|[2-9]$"]' data-icons='["fs-dustbin warn","fs-dustbin warn blink","fs-dustbin warn"]' data-on-colors='["#32a054","#32a054","#32a054"]' class="bigger"></div>
    <div data-device="myAbfall" data-get="Abfall_Biomuell_wochentag" data-type="label" class="darker"></div>             
                <div data-device="myAbfall" data-get="Abfall_Biomuell_datum" data-type="label" class="darker"></div>
                <div data-type="label" class="darker">Biomüll</div>
</div>

<div class="inline">
<div data-type="symbol"  data-off-background-color="#7A7A7A" data-on-background-color="#7A7A7A" data-device="myAbfall" data-get='Abfall_Altpapier_tage' data-off-color="#6699FF" data-get-on='["off","^[01]$","^[1-9][0-9]|[2-9]$"]' data-icons='["fs-dustbin warn","fs-dustbin warn blink","fs-dustbin warn"]' data-on-colors='["#6699FF","#6699FF","#6699FF"]' class="bigger"></div>
    <div data-device="myAbfall" data-get="Abfall_Altpapier_wochentag" data-type="label" class="darker"></div>
                <div data-device="myAbfall" data-get="Abfall_Altpapier_datum" data-type="label" class="darker"></div>
                <div data-type="label" class="darker">Altpapier</div>
</div>

<div class="inline">
<div data-type="symbol"  data-off-background-color="#7A7A7A" data-on-background-color="#7A7A7A" data-device="myAbfall" data-get='Abfall_Restmuell_tage' data-off-color="grey" data-get-on='["off","^[01]$","^[1-9][0-9]|[2-9]$"]' data-icons='["fs-dustbin warn","fs-dustbin warn blink","fs-dustbin warn"]' data-on-colors='["gray","gray","gray"]'   class="bigger"></div>
    <div data-device="myAbfall" data-get="Abfall_Restmuell_wochentag" data-type="label" class="darker"></div>
                <div data-device="myAbfall" data-get="Abfall_Restmuell_datum" data-type="label" class="darker"></div>
                <div data-type="label" class="darker">Restmüll</div>   
    </div>
   
    </div>
    <!-- ======================================== Ende 1. Zeile Popup ======================================== -->
    <!-- ======================================== Start 2. Zeile Popup ======================================== -->
    <div class="cell">
    <div data-type="label" class="bold big top-space">Öffnungszeiten Wertstoffhof</div>
    <div data-type="label" class="normal top-space">Sperrmüll, Elektroaltgeräte, Elektroschrott</div>
   
    <div class="col-1-2 top-space">
    <div data-type="label" class="normal left-align">Recyclinghof Detmold AGA gGmbH</div>
    <div data-type="label" class="normal left-align">Orbker Straße 75</div>
    <div data-type="label" class="normal left-align">32758 Detmold</div>
    </div>
   
    <div class="col-1-2 top-space">
    <div class="col-1-2">
    <div data-type="label" class="normal left-align">Mo., Di., Mi., Fr.:</div>
    <div data-type="label" class="normal left-align">Do.:</div>
    <div data-type="label" class="normal left-align">Sa.:</div>
    </div>
   
    <div class="col-1-2">
    <div data-type="label" class="normal left-align">8:00 - 16:30 Uhr</div>
    <div data-type="label" class="normal left-align">8:00 - 18:00 Uhr</div>
    <div data-type="label" class="normal left-align">8:00 - 12:00 Uhr</div>
    </div>
    </div>
    </div>

        <!-- ======================================== Ende erste Zeile Popup ======================================== -->
               
                </div>

<!-- ======================================== Start Popup ======================================== -->                 
               
               </div>


So schaut mein Device aus:
Internals:
   DEF        Abfall 3600
   KALENDER   Abfall
   NAME       myAbfall
   NOTIFYDEV  Abfall
   NR         4018
   NTFY_ORDER 50-myAbfall
   STATE      Restmüll in 2 Tag(en)
   TYPE       ABFALL
   READINGS:
     2018-01-31 22:53:34   Altpapier_date  16.02.2018
     2018-01-31 22:53:34   Altpapier_days  16
     2018-01-31 22:53:34   Altpapier_description Dieser Termin enthält einen Google Hangouts-Videoanruf.\nTeilnehmen: https://plus.google.com/hangouts/_/calendar/cDhoOTAxYjlsbWZkdXQ4ZDgxdmFxbW5iMjhAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ.0dkq8sal66flibfsjopppnot1a?hs=121
     2018-01-31 22:53:34   Altpapier_location
     2018-01-31 22:53:34   Altpapier_text  Altpapier
     2018-01-31 22:53:34   Altpapier_uid   0dkq8sal66flibfsjopppnot1agooglecom
     2018-01-31 22:53:34   Altpapier_weekday Freitag
     2018-01-31 22:53:34   Biomuell_date   09.02.2018
     2018-01-31 22:53:34   Biomuell_days   9
     2018-01-31 22:53:34   Biomuell_description Dieser Termin enthält einen Google Hangouts-Videoanruf.\nTeilnehmen: https://plus.google.com/hangouts/_/calendar/cDhoOTAxYjlsbWZkdXQ4ZDgxdmFxbW5iMjhAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ.2799dsf1j473mstffobkvails6?hs=121
     2018-01-31 22:53:34   Biomuell_location
     2018-01-31 22:53:34   Biomuell_text   Biomüll
     2018-01-31 22:53:34   Biomuell_uid    2799dsf1j473mstffobkvails6googlecom
     2018-01-31 22:53:34   Biomuell_weekday Freitag
     2018-01-31 22:53:34   GelberSack_date 08.02.2018
     2018-01-31 22:53:34   GelberSack_days 8
     2018-01-31 22:53:34   GelberSack_description Dieser Termin enthält einen Google Hangouts-Videoanruf.\nTeilnehmen: https://plus.google.com/hangouts/_/calendar/cDhoOTAxYjlsbWZkdXQ4ZDgxdmFxbW5iMjhAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ.56rbt466o3fob63b8onksi7pcq?hs=121
     2018-01-31 22:53:34   GelberSack_location
     2018-01-31 22:53:34   GelberSack_text Gelber Sack
     2018-01-31 22:53:34   GelberSack_uid  56rbt466o3fob63b8onksi7pcqgooglecom
     2018-01-31 22:53:34   GelberSack_weekday Donnerstag
     2018-01-31 22:53:34   Restmuell_date  02.02.2018
     2018-01-31 22:53:34   Restmuell_days  2
     2018-01-31 22:53:34   Restmuell_description Dieser Termin enthält einen Google Hangouts-Videoanruf.\nTeilnehmen: https://plus.google.com/hangouts/_/calendar/cDhoOTAxYjlsbWZkdXQ4ZDgxdmFxbW5iMjhAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ.7n1log3jee20o8eqe33lguomba?hs=121
     2018-01-31 22:53:34   Restmuell_location
     2018-01-31 22:53:34   Restmuell_text  Restmüll
     2018-01-31 22:53:34   Restmuell_uid   7n1log3jee20o8eqe33lguombagooglecom
     2018-01-31 22:53:34   Restmuell_weekday Freitag
     2018-01-31 22:53:34   ftui_datum     
     2018-01-31 22:53:34   ftui_next       Restmuell_2
     2018-01-31 22:53:34   next            Restmuell_2
     2018-01-31 22:53:34   next_date       02.02.2018
     2018-01-31 22:53:34   next_days       2
     2018-01-31 22:53:34   next_description Dieser Termin enthält einen Google Hangouts-Videoanruf.\nTeilnehmen: https://plus.google.com/hangouts/_/calendar/cDhoOTAxYjlsbWZkdXQ4ZDgxdmFxbW5iMjhAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ.7n1log3jee20o8eqe33lguomba?hs=121
     2018-01-31 22:53:34   next_location   
     2018-01-31 22:53:34   next_text       Restmüll
     2018-01-31 22:53:34   next_weekday    Freitag
     2018-01-31 22:53:34   state           2
Attributes:
   calendarname_praefix 0
   date_style date
   delimiter_reading |
   delimiter_text_reading und
   event-on-change-reading .*
   room       G_Kalender
   stateFormat next_text in next_days Tag(en)
   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";}
   weekday_mapping Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag
FHEM@Proxmox@Nuc: TabletUI als User-Interface (4 Wandtablets) / IOs per ser2net gekapselt
Homematic: Heizung, Fenster, Bewegung | Jeelink: Temperatur | Z-Wave: Bewegung, Temperatur | FS20: Temperatur, Fenster | Viessmann-Heizung eingebunden

MKeY

was mir auffällt ist, dass deine readings anders heißen, als die, die du dann reinschreiben willst
z.B:
dein device
NAME       myAbfall
2018-01-31 22:53:34   Biomuell_weekday Freitag


und du hast im tabletui
<div data-device="myAbfall" data-get="Abfall_Biomuell_wochentag" data-type="label" class="darker"></div>

das reading "Abfall_Biomuell_wochentag" gibt es aber gar nicht im device, sondern das "Biomuell_weekday"

dementsprechend sollte es <div data-device="myAbfall" data-get="Biomuell_weekday" data-type="label" class="darker"></div> heißen
Wer Fehler findet, darf sie behalten!
RPi's, D1Mini
Homematic, Hue, Sonoff, Alexa, Xiaomi, ConBee
Prusa MK2.5, Prusa MK3S (MMU2S vorhanden, aber nervtötend)
Lowrider 2CNC

Gunther

Danke Dir fürs reinschauen. Ich prüfe das.

Komisch ist, dass ich nur auf einen anderen Server umgezogen bin. Ich musste aus irgendeinem Grund das Abfallmodul nachinstallieren.
Da muss sich dann was geändert haben.
FHEM@Proxmox@Nuc: TabletUI als User-Interface (4 Wandtablets) / IOs per ser2net gekapselt
Homematic: Heizung, Fenster, Bewegung | Jeelink: Temperatur | Z-Wave: Bewegung, Temperatur | FS20: Temperatur, Fenster | Viessmann-Heizung eingebunden

makro01

Hallo ,
hab auch diesen Abfallkalender mit Popup.
Mein Problem sind die Fraben.
Die wechseln einfach nicht auf die entsprechende Abfuhr Tonne  :-[ bleiben immer "grau".
Termine usw. werden richtig angezeigt. woran kann das noch liegen

Internals:
   DEF        AbfallGoogleCalender
   KALENDER   AbfallGoogleCalender
   NAME       myABFALL
   NOTIFYDEV  AbfallGoogleCalender
   NR         97
   NTFY_ORDER 50-myABFALL
   STATE      Papier in 2 Tag(en)
   TYPE       ABFALL
   .attraggr:
   .attrminint:
   .userReadings:
     HASH(0x2a7aa78)
     HASH(0x2d2f8d0)
   OLDREADINGS:
   READINGS:
     2018-04-15 13:20:34   Bioabfall_date  20.04.2018
     2018-04-15 13:20:34   Bioabfall_days  5
     2018-04-15 13:20:34   Bioabfall_description
     2018-04-15 13:20:34   Bioabfall_location Friedrichshafen/Friedrichshafen 16
     2018-04-15 13:20:34   Bioabfall_text  Bioabfall
     2018-04-15 13:20:34   Bioabfall_uid   20182004616_16bodenseekreisde
     2018-04-15 13:20:34   Bioabfall_weekday Freitag
     2018-04-15 13:20:34   GelberSack_date 30.04.2018
     2018-04-15 13:20:34   GelberSack_days 15
     2018-04-15 13:20:34   GelberSack_description
     2018-04-15 13:20:34   GelberSack_location Friedrichshafen/Friedrichshafen 16
     2018-04-15 13:20:34   GelberSack_text Gelber Sack
     2018-04-15 13:20:34   GelberSack_uid  20183004616_4bodenseekreisde
     2018-04-15 13:20:34   GelberSack_weekday Montag
     2018-04-15 13:20:34   Papier_date     17.04.2018
     2018-04-15 13:20:34   Papier_days     2
     2018-04-15 13:20:34   Papier_description
     2018-04-15 13:20:34   Papier_location Friedrichshafen/Friedrichshafen 16
     2018-04-15 13:20:34   Papier_text     Papier
     2018-04-15 13:20:34   Papier_uid      20181704616_10bodenseekreisde
     2018-04-15 13:20:34   Papier_weekday  Dienstag
     2018-04-15 13:20:34   Restmuell_date  27.04.2018
     2018-04-15 13:20:34   Restmuell_days  12
     2018-04-15 13:20:34   Restmuell_description
     2018-04-15 13:20:34   Restmuell_location Friedrichshafen/Friedrichshafen 16
     2018-04-15 13:20:34   Restmuell_text  Restmüll
     2018-04-15 13:20:34   Restmuell_uid   20182704616_1bodenseekreisde
     2018-04-15 13:20:34   Restmuell_weekday Freitag
     2018-04-15 13:20:34   ftui_datum      17.04.2018
     2018-04-15 13:20:34   ftui_next       Papier_2
     2018-04-15 13:20:34   next            Papier_2
     2018-04-15 13:20:34   next_date       17.04.2018
     2018-04-15 13:20:34   next_days       2
     2018-04-15 13:20:34   next_description
     2018-04-15 13:20:34   next_location   Friedrichshafen/Friedrichshafen 16
     2018-04-15 13:20:34   next_text       Papier
     2018-04-15 13:20:34   next_weekday    Dienstag
     2018-04-15 13:20:34   state           2
Attributes:
   calendarname_praefix 0
   date_style date
   delimiter_reading |
   delimiter_text_reading und
   stateFormat next_text in next_days Tag(en)
   userReadings ftui_datum {ReadingsVal("myABFALL","now_text","") eq "" ? datumHeuteMorgen(ReadingsVal("myABFALL","next_date","")) : "heute";},ftui_next {ReadingsVal("myABFALL","now_text","") eq "" ? ReadingsVal("myABFALL","next","") : ReadingsVal("myABFALL","now","")."_0";}
   weekday_mapping Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag


und die Tablet ui section
<!-- ============= Abfall  ================== -->
<!-- ======================================= -->

<li data-row="5" data-col="10" data-sizex="2" data-sizey="5">
     <header><div data-type="label" class="medium orange">Abfall</div></header>

             <div data-type="popup" data-draggable="false" data-height="300px" data-width="550px">

<div data-type="symbol"
data-device="myABFALL"
                     data-get="ftui_next"
                     data-get-on='["Bioabfall_0","Bioabfall_1","Bioabfall_.*","GelberSack_0","GelberSack_1","GelberSack_.*","Papier_0","Papier_1","Papier_.*","Restmuell_0","Restmuell_1","Restmuell_.*"]'
                     data-get-warn=".*([0|1|2]).*"
                     data-on-colors='["#32a054","#32a054","#32a054","#E6E600","#E6E600","#E6E600","#6699FF","#6699FF","#6699FF","gray","gray","gray"]'
                     class="bigger warn narrow"
                     data-icons='["fs-dustbin spin","fs-dustbin warn blink","fs-dustbin","fs-bag spin","fs-bag warn blink","fs-bag","fs-dustbin spin","fs-dustbin warn blink","fs-dustbin","fs-dustbin spin","fs-dustbin warn blink","fs-dustbin"]'>
                     </div>

                <div data-device="myABFALL" data-get="ftui_datum" data-type="label"/>
                <div data-device="myABFALL" data-get="now" data-type="label"/>
                <div data-device="myABFALL" data-get="next_text" data-type="label" class="darker"/>

<!--<div data-device="myABFALL" data-get="ftui_next" data-type="label" class="darker"/> -->
                <div class="dialog">
                    <header><div class="medium orange">Abfall</div></header>
    <div class="cell">
    <div class="inline">
<div data-type="symbol"  data-off-background-color="#7A7A7A" data-on-background-color="#7A7A7A" data-device="myABFALL" data-get='GelberSack_days' data-off-color="#E6E600" data-get-on='["off","^[01]$","^[1-9][0-9]|[2-9]$"]' data-icons='["fs-bag warn","fs-bag warn blink","fs-bag warn"]' data-on-colors='["#E6E600","#E6E600","#E6E600"]' class="bigger"></div>
    <div data-device="myABFALL" data-get="GelberSack_weekday" data-type="label" class="darker"/>
                <div data-device="myABFALL" data-get="GelberSack_date" data-type="label" class="darker"/>
                <div data-type="label" class="darker">Gelber Sack</div>
</div>

<div class="inline">
<div data-type="symbol"  data-off-background-color="#7A7A7A" data-on-background-color="#7A7A7A" data-device="myABFALL" data-get='Bioabfall_days' data-off-color="#32a054" data-get-on='["off","^[01]$","^[1-9][0-9]|[2-9]$"]' data-icons='["fs-dustbin warn","fs-dustbin warn blink","fs-dustbin warn"]' data-on-colors='["#32a054","#32a054","#32a054"]' class="bigger"></div>
    <div data-device="myABFALL" data-get="Bioabfall_weekday" data-type="label" class="darker"/>
                <div data-device="myABFALL" data-get="Bioabfall_date" data-type="label" class="darker"/>
                <div data-type="label" class="darker">Biom&uuml;ll</div>
</div>

<div class="inline">
<div data-type="symbol"  data-off-background-color="#7A7A7A" data-on-background-color="#7A7A7A" data-device="myABFALL" data-get='Papier_days' data-off-color="#6699FF" data-get-on='["off","^[01]$","^[1-9][0-9]|[2-9]$"]' data-icons='["fs-dustbin warn","fs-dustbin warn blink","fs-dustbin warn"]' data-on-colors='["#6699FF","#6699FF","#6699FF"]' class="bigger"></div>
    <div data-device="myABFALL" data-get="Papier_weekday" data-type="label" class="darker"/>
                <div data-device="myABFALL" data-get="Papier_date" data-type="label" class="darker"/>
                <div data-type="label" class="darker">Altpapier</div>
</div>

<div class="inline">
<div data-type="symbol"  data-off-background-color="#7A7A7A" data-on-background-color="#7A7A7A" data-device="myABFALL" data-get='Restmuell_days' data-off-color="grey" data-get-on='["off","^[01]$","^[1-9][0-9]|[2-9]$"]' data-icons='["fs-dustbin warn","fs-dustbin warn blink","fs-dustbin warn"]' data-on-colors='["gray","gray","gray"]'   class="bigger"></div>
    <div data-device="myABFALL" data-get="Restmuell_weekday" data-type="label" class="darker"/>
                <div data-device="myABFALL" data-get="Restmuell_date" data-type="label" class="darker"/>
                <div data-type="label" class="darker">Restm&uuml;ll</div>
    </div>

    </div>

                </div>
               </div>

</li>



gruß Makro
Anfänger

makro01

ok
habs in einem anderen Beitrag gefunden

richtig:


data-colors


falsch:


data-on-colors


schönes wochenende noch  ;)