Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. TESTER: Neuer Adapter Webuntis

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    TESTER: Neuer Adapter Webuntis

    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      elektrickser.de last edited by

      @Newan
      Ich habe versucht den Adapter upzudaten.
      Folgendes ist der Inhalt des Updates:

      Process exited with code 0
      weniger
      mehr
      
      $ iobroker upgrade webuntis@0.3.4
      
      Update webuntis from @0.3.1 to @0.3.4
      
      NPM version: 6.14.16
      
      Installing iobroker.webuntis@0.3.4... (System call)
      
      upload [3] webuntis.admin /opt/iobroker/node_modules/iobroker.webuntis/admin/index_m.html index_m.html text/html
      
      upload [2] webuntis.admin /opt/iobroker/node_modules/iobroker.webuntis/admin/style.css style.css text/css
      
      upload [1] webuntis.admin /opt/iobroker/node_modules/iobroker.webuntis/admin/webuntis.png webuntis.png image/png
      
      upload [0] webuntis.admin /opt/iobroker/node_modules/iobroker.webuntis/admin/words.js words.js application/javascript
      
      Process exited with code 0
      

      Jedoch bleibt der Update-Hinweis und die Version bleibt auch bei 0.3.1.

      S 1 Reply Last reply Reply Quote 0
      • Ronny Gerndt
        Ronny Gerndt last edited by Ronny Gerndt

        Hi, ich bin grad dabei den Stundenplan und die News aus Webuntins in meine Visualisierung zu bringen. Habe nun eine Frage zu den News. Kann es sein das der Datenpunkt nicht wieder gelöscht wird? Ich hatte eben noch eine News drin stehen die aber gar nicht mehr auf der Website angezeigt wird.

        1 Reply Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @J.M last edited by

          @j-m

          habe mal dein script genommen und etwas geändert - kann das nicht testen, daher könnten auch noch kleinigkeiten falsch gecodet sein - teste mal und überprüfe meine änderungen

          //@liv-in-sky 2020  4.2.-18:42
          
          // var symbolOK="✅";  // auch möglich: ="✅"}      
          //var symbolKO="❌";     //z.b. auch "<font color=\"red\"><b>X</b>" für ein rotes kreuz ❌"  ⚪  ⚫ ⭕  🔴 🔵 ⏱ 💀 👍 👎 📑 💲 👀
          //var symbolWARN="⚠️";    // ="⚠️"
          //var symbolSwitch="🔄"
          //var symbolLink="🌎";
          //var symbolSort="👁️‍🗨️";
          //var symbolEnable="🟢";
          //var symbolDisable="🔴";
          //var symbolDelete="⭕";
          //var symbolValueOK="✅";  // auch möglich: ="✅"}      
          //var symbolValueKO="❌"; 
          
          //HIER WIRD PFAD UND FILENAME DEFINIERT
          const path = "/html_stundenplan_heute.html";                   //FIlenamen definieren
          const home ='vis.0'                                 //wo soll das file im iobroker-file-system liegen ? (oder z.b auch iqontrol.meta)
          let   braucheEinFile=true;                          // bei true wird ein file geschrieben
          let   braucheEinVISWidget=true;                     // bei true wird ein html-tabelle in einen dp geschrieben - siehe nächste zeile
          let dpVIS="0_userdata.0.VIS.Stundenplan.heute"         //WICHTIG wenn braucheEinVISWidget auf true gesetzt !!  dp zusätzlich für VIS-HTML-Basic-Widget
          let mySchedule=" */30 * * * * ";                      //alle 30 minuten
          //---------------------------------------
          
          //HIER DIE SPALTEN ANZAHL DEFINIEREN - jede Spalte einen Wert - in diesem Beispiel sind es 5
          var htmlFeld1='Tag';       var Feld1lAlign="left";                     // überschrift Tabellen Spalte1 und  Ausrichtung left,right or center
          var htmlFeld2='Start';        var Feld2lAlign="right";                      // überschrift Tabellen Spalte2 und  Ausrichtung left,right or center
          var htmlFeld3='Ende';         var Feld3lAlign="right";                    // überschrift Tabellen Spalte3 und  Ausrichtung left,right or center
          var htmlFeld4='Raum';        var Feld4lAlign="right";                    // überschrift Tabellen Spalte4 und  Ausrichtung left,right or center
          var htmlFeld5='Lehrer';        var Feld5lAlign="center";                    // überschrift Tabellen Spalte5 und  Ausrichtung left,right or center
          var htmlFeld6='Fach';        var Feld6lAlign="center";                    // überschrift Tabellen Spalte5 und  Ausrichtung left,right or center
          var htmlFeld7='Status';        var Feld7lAlign="center";                    // überschrift Tabellen Spalte5 und  Ausrichtung left,right or center
          
          //-----------------------------------
          
          
          
          //hier werden die styles für die tabelle definiert
          //ÜBERSCHRIFT ÜBER TABELLE
          let   htmlUberschrift=false;                           // mit Überschrift über der tabelle
          let   htmlSignature=true;                              // anstatt der Überscghrift eine signature: - kleiner - anliegend
          const htmlFeldUeber='Stundenplan';              // Überschrift und Signature
          const htmlFarbUber="white";                         // Farbe der Überschrift
          const htmlSchriftWeite="normal";                       // bold, normal - Fettschrift für Überschrift
          const htmlÜberFontGroesse="18px";                       // schriftgröße überschrift
          //MEHRERE TABELLEN NEBENEINANDER
          let   mehrfachTabelle=1;                              // bis zu 4 Tabellen werden nebeneinander geschrieben-  verkürzt das Ganze, dafür etwas breiter - MÖGLICH 1,2,3,oder 4 !!!
          const trennungsLinie="2";                             //extra trennungslinie bei mehrfachtabellen - evtl auf 0 stellen, wnn htmlRahmenLinien auf none sind
          const farbetrennungsLinie="white";
          const htmlFarbZweiteTabelle="white";                // Farbe der Überschrift bei jeder 2.ten Tabelle
          const htmlFarbTableColorUber="#BDBDBD";               // Überschrift in der tabelle - der einzelnen Spalten
          //ÜBERSCHRIFT SPALTEN
          const UeberSchriftHöhe="35";                          //Überschrift bekommt mehr Raum - darunter und darüber - Zellenhöhe
          const LinieUnterUeberschrift="2";                   // Linie nur unter Spaltenüberschrift - 
          const farbeLinieUnterUeberschrift="white";
          const groesseUeberschrift=16;
          const UeberschriftStyle="normal"                     // möglich "bold"
          //GANZE TABELLE
          let abstandZelle="1";
          let farbeUngeradeZeilen="#000000";                     //Farbe für ungerade Zeilenanzahl - Hintergrund der Spaltenüberschrift bleibt bei htmlFarbTableColorGradient1/2
          let farbeGeradeZeilen="#151515";                        //Farbe für gerade Zeilenanzahl - Hintergrund der Spaltenüberschrift bleibt bei htmlFarbTableColorGradient1/2
          let weite="auto";                                     //Weite der Tabelle
          let zentriert=true;                                   //ganze tabelle zentriert
          const backgroundAll="#000000";                        //Hintergrund für die ganze Seite - für direkten aufruf oder iqontrol sichtber - keine auswirkung auf vis-widget
          const htmlSchriftart="Helvetica";
          const htmlSchriftgroesse="14px";
          //FELDER UND RAHMEN
          let   UeberschriftSpalten=true;                // ein- oder ausblenden der spatlen-überschriften
          const htmlFarbFelderschrift="#BDBDBD";                  // SchriftFarbe der Felder
          const htmlFarbFelderschrift2="#D8D8D8";                 // SchriftFarbe der Felder für jede 2te Tabelle
          const htmlFarbTableColorGradient1="#1c1c1c";          //  Gradient - Hintergrund der Tabelle - Verlauffarbe
          const htmlFarbTableColorGradient2="#1c1c1c";          //  Gradient - Hintergrund der Tabelle - ist dieser Wert gleich Gradient1 gibt es keinen verlauf
          const htmlFarbTableBorderColor="grey";             // Farbe des Rahmen - is tdieser gleich den gradienten, sind die rahmen unsichtbar
          let htmlRahmenLinien="cols";                            // Format für Rahmen: MÖGLICH: "none" oder "all" oder "cols" oder "rows"
          const htmlSpalte1Weite="auto";                    //  Weite der ersten beiden  Spalten oder z.b. 115px
          
          // HIER NICHTS  ÄNDERN
          
          let borderHelpBottum;
          let borderHelpRight;
          let htmlcenterHelp;
          let htmlcenterHelp2;
          
          if(htmlRahmenLinien=="rows") {borderHelpBottum=1;borderHelpRight=0;}
          if(htmlRahmenLinien=="cols") {borderHelpBottum=0;borderHelpRight=1;}
          if(htmlRahmenLinien=="none") {borderHelpBottum=0;borderHelpRight=0;}
          if(htmlRahmenLinien=="all")  {borderHelpBottum=1;borderHelpRight=1;}
          zentriert ? htmlcenterHelp="auto" : htmlcenterHelp="left";
          zentriert ? htmlcenterHelp2="center" : htmlcenterHelp2="left";
          
          
          const htmlZentriert='<center>'
          const htmlStart=    "<!DOCTYPE html><html lang=\"de\"><head><title>Vorlage</title><meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">"+
                            "<style> * {  margin: 0;} body {background-color: "+backgroundAll+"; margin: 0 auto;  }"+
                            " p {padding-top: 10px; padding-bottom: 10px; text-align: "+htmlcenterHelp2+"}"+
                           // " div { margin: 0 auto;  margin-left: auto; margin-right: auto;}"+
                            " td { padding:"+abstandZelle+"px; border:0px solid "+htmlFarbTableBorderColor+";  border-right:"+borderHelpRight+"px solid "+htmlFarbTableBorderColor+";border-bottom:"+borderHelpBottum+"px solid "+htmlFarbTableBorderColor+";}"+ 
                            " table { width: "+weite+";  margin: 0 "+htmlcenterHelp+"; border:1px solid "+htmlFarbTableBorderColor+"; border-spacing=\""+abstandZelle+"0px\" ; }"+   // margin macht center
                            "td:nth-child(1) {width: "+htmlSpalte1Weite+"}"+"td:nth-child(2) {width:"+htmlSpalte1Weite+"}"+
                            " </style></head><body> <div>";
          //const htmlUeber=    "<p style=\"color:"+htmlFarbUber+"; font-family:"+htmlSchriftart+"; font-weight: bold\">"+htmlFeldUeber+"</p>";                    
          const htmlTabStyle= "<table bordercolor=\""+htmlFarbTableBorderColor+"\" border=\"2px\" cellspacing=\""+abstandZelle+"\" cellpadding=\""+abstandZelle+"\" width=\""+weite+"\" rules=\""+htmlRahmenLinien+"\" style=\"color:"+htmlFarbFelderschrift+";  font-size:"+htmlSchriftgroesse+
                               "; font-family:"+htmlSchriftart+";background-image: linear-gradient(42deg,"+htmlFarbTableColorGradient2+","+htmlFarbTableColorGradient1+");\">";
          const htmlTabUeber1="<tr height=\""+UeberSchriftHöhe+"\" style=\"color:"+htmlFarbTableColorUber+"; font-size: "+groesseUeberschrift+"px; font-weight: "+UeberschriftStyle+" ;  border-bottom: "+LinieUnterUeberschrift+"px solid "+farbeLinieUnterUeberschrift+" \">";
          const htmlTabUeber3="</tr>";
          
          
          //NICHTS ÄNDERN - abhängig von den oben definierten _Spalten - in diesem Beispiel sind es 7
          
          
          var htmlTabUeber2="<td width="+htmlSpalte1Weite+" align="+Feld1lAlign+">&ensp;"+htmlFeld1+"&ensp;</td><td width="+htmlSpalte1Weite+" align="+Feld2lAlign+">&ensp;"+htmlFeld2+"&ensp;</td><td  align="+Feld3lAlign+">&ensp;"+htmlFeld3+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+htmlFeld4+"&ensp;</td><td  align="+Feld5lAlign+">&ensp;"+htmlFeld5+"&ensp;</td><td  align="+Feld6lAlign+">&ensp;"+htmlFeld6+"&ensp;</td><td  align="+Feld7lAlign+">&ensp;"+htmlFeld7+"&ensp;</td>";
          var htmlTabUeber2_1="<td width="+htmlSpalte1Weite+" align="+Feld1lAlign+" style=\"color:"+htmlFarbZweiteTabelle+"\">&ensp;"+htmlFeld1+"&ensp;</td><td width="+htmlSpalte1Weite+" align="+Feld2lAlign+" style=\"color:"+htmlFarbZweiteTabelle+"\">&ensp;"+htmlFeld3+
                            "&ensp;</td><td  align="+Feld3lAlign+" style=\"color:"+htmlFarbZweiteTabelle+"\">&ensp;"+htmlFeld3+"&ensp;</td><td  align="+Feld4lAlign+" style=\"color:"+htmlFarbZweiteTabelle+"\">&ensp;"+htmlFeld4+
                            "&ensp;</td><td align="+Feld5lAlign+" style=\"color:"+htmlFarbZweiteTabelle+"\">&ensp;"+htmlFeld5+"&ensp;</td><td align="+Feld6lAlign+" style=\"color:"+htmlFarbZweiteTabelle+"\">&ensp;"+htmlFeld6+"&ensp;</td><td align="+Feld7lAlign+" style=\"color:"+htmlFarbZweiteTabelle+"\">&ensp;"+htmlFeld7+"&ensp;</td>";
                                //------------------------------------------------------
          
          
          
          var htmlOut="";
          var mix;
          var counter;
          var val1; var val2; var val0; var val3; var val4; var val5; var val6;
          var htmlTabUeber="";
          function writeHTML(){
          
          
          
          htmlOut="";
          
          counter=-1;
          htmlTabUeber="";
          switch (mehrfachTabelle) { 
            case 1: htmlTabUeber=htmlTabUeber1+htmlTabUeber2+htmlTabUeber3;  break;
            case 2: htmlTabUeber=htmlTabUeber1+htmlTabUeber2+htmlTabUeber2_1+htmlTabUeber3; break;
            case 3: htmlTabUeber=htmlTabUeber1+htmlTabUeber2+htmlTabUeber2+htmlTabUeber2+htmlTabUeber3; break;
            case 4: htmlTabUeber=htmlTabUeber1+htmlTabUeber2+htmlTabUeber2_1+htmlTabUeber2+htmlTabUeber2_1+htmlTabUeber3; break;
          }; 
          if (!UeberschriftSpalten) {htmlTabUeber=""}  
          
          //--------------------------------------------------------------------------------------------------------------------------------------------------
          //---------hier kommt eure schleife rein counter++, tabelleBind() und tabelleFinish() müssen so integriert bleiben !!!------------------------------
          //---------alle valx werte müssen von euch bestimmt werden - val0,val1,val2,val3,val4!!!------------------------------------------------------------
          //--------------------------------------------------------------------------------------------------------------------------------------------------
          let myJSON=[];
          
          $('webuntis.*.0.*.startTime').each(function(id, i) {        // hier eigene schleife definieren
               //  var ida = id.split('.');
               //  if( !(id.includes("vis") || id.includes("devices") ||  id.includes("ssss") )){
               //  counter++;                                       // SEHR WICHTIG - MUSS IN JEDER SCHLEIFE INTEGRIERT SEIN
                   val0=getState(id/*.replace("startTime","startTime")*/).val;
                   val1=val0 ;// getState(id.replace("startTime","startTime")).val;
                   val2=getState(id.replace("startTime","endTime")).val;
                   val3=getState(id.replace("startTime","room")).val;
                   val4=getState(id.replace("startTime","teacher")).val;
                   val5=getState(id.replace("startTime","name")).val;
                   val6=getState(id.replace("startTime","code")).val;
          
                  if( existsState(id.replace("startTime","code")) ) {    val6=getState(id.replace("startTime","code")).val.toString() }
          
                   val0= formatDate(getDateObject((new Date(val0).getTime())), "WW", "de"); //val0.replace(/(\D{3}\D{0}\D{0})\D{3}.*/, "$1");  
                   val1= formatDate(getDateObject((new Date(val1).getTime())), 'SS:mm');    // val1.replace(/.*(\d{2}:\d{2}):\d{0}.*/, "$1");   
                   val2= formatDate(getDateObject((new Date(val2).getTime())), 'SS:mm');    //val2.replace(/.*(\d{2}:\d{2}):\d{0}.*/, "$1");  
          
                //  function sortArray(a,b) {
                //  return a.val0 > b.val1;
                //  }
          
               //    val0 = val0.replace("Mon", "Montag")
               //    val0 = val0.replace("Tue", "Dienstag")
               //    val0 = val0.replace("Wed", "Mittwoch")
               //    val0 = val0.replace("Thu", "Donnerstag")
               //    val0 = val0.replace("Fri", "Freitag")
               //    val0 = val0.replace("Sat", "Samstag")
               //    val0 = val0.replace("Sun", "Sonntag")
          
                   val6 = val6.replace("regular", "Unterricht")
                   val6 = val6.replace("irregular", "Vertretung")
                   val6 = val6.replace("cancelled", "Ausfall")
                   val6 = val6.replace("irUnterricht", "Vertretung")
          
                  //let result = id.match("regular");
                   //let result = id.replace("regular", "Unterricht");
          
                   if (getState(id).val=="regular") {val6="Unterricht"}; //log(id)}; 
              
                   //if (getState(id).val=='regular') {val5="❌"} else{val5="✅"}         
                   //val5=""; 
          
               //    on(id, function(dp) {
               //        log(dp); // zeigt id, state, oldState
               //        log(dp.common); // zeigt common-Attribute
               //    });
          
          
                   //if (getState(id).val==null) {val4="never used"}; //log(id)}; 
              
                   //if (getState(id).val==false) {val4="❌"} else{val4="✅"}         
                   //val5=""; val6=""; val7="";
          
              myJSON.push({
                         "Tag"   :val0,
                         "Start" :val1,
                         "End"   :val2,
                         "Raum"  :val3,
                         "Lehrer":val4,
                         "Fach"  :val5,
                         "Status":val6
              })
            //  tabelleBind(); //HIER NICHTS ÄNDERN : HIER WERDEN DIE DATEN DER SCHLEIFE ZUSAMMENGESETZT  - diese function muss als letztes in der eigenen schleife aufgerufen werden
             
            //}
            }); //Schleifen Ende - je nach schleifenart muss hier etwas geändert werden !!!!!!!!!
          
            myJSON.sort(function (alpha, beta) {
                               return  beta.Start -alpha.Start;   });
          
          
            for(let i=0;i<myJSON.length;i++) {
                                               counter++;
                                               val0=myJSON[i].Tag;
                                               val0=myJSON[i].Start;
                                               val0=myJSON[i].End;
                                               val0=myJSON[i].Raum;
                                               val0=myJSON[i].Lehrer;
                                               val0=myJSON[i].Fach;
                                               val0=myJSON[i].Status;
          
          
                                               tabelleBind();
          
            }
          
          //-------------------------------------------------------------------------------------------------------------------------------------------------
          //--------------------------------------------------Ende der schleife------------------------------------------------------------------------------
          //-------------------------------------------------------------------------------------------------------------------------------------------------
          
               tabelleFinish(); // AB HIER NICHTS ÄNDERN - tabelle fertigstellen
              
          } // function ende
          
          //MAIN:
          
          schedule(mySchedule,  function () {
          writeHTML();
          if (braucheEinFile) {writeFile(home, path ,htmlOut, function (error) { /* log('file written');*/  });}
          }); 
          writeHTML();
          
            				 function tabelleBind(){
              //HIER WERDEN DIE DATEN DER SCHLEIFE ZUSAMMENGESETZT - hat man oben 5 Felder definiert, braucht man hier 5 Werte
            
                switch (mehrfachTabelle) {  
                  case 1:  if(counter%2==0){  htmlOut=htmlOut+"<tr bgcolor=\""+farbeGeradeZeilen+"\"><td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td></tr>"; break;} else 
                                           {  htmlOut=htmlOut+"<tr bgcolor=\""+farbeUngeradeZeilen+"\"><td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td></tr>"; break;}
          
                 case 2:  if(counter%4==0) {
                           if(counter%2==0)            {htmlOut = htmlOut+"<tr bgcolor=\""+farbeGeradeZeilen+"\"><td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td>"; } 
                                       else {htmlOut = htmlOut+"<td align="+Feld1lAlign+"  style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val0+"&ensp;</td><td  align="+Feld2lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val1+"&ensp;</td><td  align="+Feld3lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val2+"&ensp;</td><td  align="+Feld4lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val6+"&ensp;</td></tr>";} break;
                                }else{  
                           if(counter%2==0)            {htmlOut = htmlOut+"<tr bgcolor=\""+farbeUngeradeZeilen+"\"><td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td>"; } 
                                       else {htmlOut = htmlOut+"<td align="+Feld1lAlign+"  style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val0+"&ensp;</td><td  align="+Feld2lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val1+"&ensp;</td><td  align="+Feld3lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val2+"&ensp;</td><td  align="+Feld4lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val6+"&ensp;</td></tr>";} break;}
          
          
          
          
                 case 3: if(counter%2==0 ) {
                            if(counter%3==0)           {htmlOut = htmlOut+"<tr bgcolor=\""+farbeGeradeZeilen+"\"><td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td>"; } 
                                       else { if(counter%3==1 )  { htmlOut = htmlOut+"<td align="+Feld1lAlign+"  style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val0+"&ensp;</td><td  align="+Feld2lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val1+"&ensp;</td><td  align="+Feld3lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val2+"&ensp;</td><td  align="+Feld4lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val6+"&ensp;</td>";} 
                                                        else    {htmlOut = htmlOut+"<td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td></tr>";}
                                                  } break; }else{
                            if(counter%3==0)                {htmlOut = htmlOut+"<tr bgcolor=\""+farbeUngeradeZeilen+"\"><td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td>"; } 
                                       else { if(counter%3==1 )  { htmlOut = htmlOut+"<td align="+Feld1lAlign+"  style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val0+"&ensp;</td><td  align="+Feld2lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val1+"&ensp;</td><td  align="+Feld3lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val2+"&ensp;</td><td  align="+Feld4lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val6+"&ensp;</td>";} 
                                                        else    {htmlOut = htmlOut+"<td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td></tr>";}
                                                  } break;      }
          
          
          
          
                 case 4: if(counter%8==0)  {
                            if(counter%4==0)               {htmlOut = htmlOut+"<tr bgcolor=\""+farbeGeradeZeilen+"\"><td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld5lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td>"; } 
                                           else {if(counter%4==1 )  { htmlOut = htmlOut+"<td  align="+Feld1lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val0+"&ensp;</td><td  align="+Feld2lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val1+"&ensp;</td><td  align="+Feld3lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val2+"&ensp;</td><td  align="+Feld4lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val6+"&ensp;</td>";} 
                                                        else    {if(counter%4==3)  { htmlOut= htmlOut+"<td align="+Feld1lAlign+"  style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val0+"&ensp;</td><td  align="+Feld2lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val2+"&ensp;</td><td  align="+Feld4lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val6+"&ensp;</td></tr>";} 
                                                                          else    {htmlOut = htmlOut+"<td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td>&ensp;"+val1+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td>";}}
                                                  } break;  }else{
                            if(counter%4==0)               {htmlOut = htmlOut+"<tr bgcolor=\""+farbeUngeradeZeilen+"\"><td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld5lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td>"; } 
                                           else {if(counter%4==1 )  { htmlOut = htmlOut+"<td  align="+Feld1lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val0+"&ensp;</td><td  align="+Feld2lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val1+"&ensp;</td><td  align="+Feld3lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val2+"&ensp;</td><td  align="+Feld4lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val6+"&ensp;</td>";} 
                                                        else    {if(counter%4==3)  { htmlOut= htmlOut+"<td align="+Feld1lAlign+"  style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val0+"&ensp;</td><td  align="+Feld2lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val1+"&ensp;</td><td align="+Feld3lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val2+"&ensp;</td><td  align="+Feld4lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val3+"&ensp;</td><td align="+Feld5lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+" style=\"color:"+htmlFarbFelderschrift2+"\">&ensp;"+val6+"&ensp;</td></tr>";} 
                                                                          else    {htmlOut = htmlOut+"<td align="+Feld1lAlign+" >&ensp;"+val0+"&ensp;</td><td>&ensp;"+val1+"&ensp;</td><td align="+Feld2lAlign+">&ensp;"+val2+"&ensp;</td><td align="+Feld3lAlign+">&ensp;"+val3+"&ensp;</td><td align="+Feld4lAlign+">&ensp;"+val4+"&ensp;</td><td align="+Feld6lAlign+">&ensp;"+val5+"&ensp;</td><td align="+Feld7lAlign+">&ensp;"+val6+"&ensp;</td>";}}
                                                  } break;       }
          
              } //switch ende
          
          
          
          }
          
          function tabelleFinish() {
          
               // tabelle fertigstellen
               switch (mehrfachTabelle) {  
                case 1:    break;
          
                case 2:    
                          if(counter%2==0)  htmlOut = htmlOut.replace(/<\/td>$/, '</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td></tr>');  
                         
                           break;
          
                case 3:   if(counter%3==2)  htmlOut = htmlOut.replace(/<\/td>$/, "</td></tr>");
                          if(counter%3==1)  htmlOut = htmlOut.replace(/<\/td>$/, '</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td></tr>');         
                          if(counter%3==0)  htmlOut = htmlOut.replace(/<\/td>$/, "</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td style=\" border-right: "+trennungsLinie+"px solid "+farbetrennungsLinie+"\">&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td></tr>");
                        
                           break;
                case 4:   if(counter%4==3)  htmlOut = htmlOut.replace(/<\/td>$/, "</td></tr>");
                          if(counter%4==2)  htmlOut = htmlOut.replace(/<\/td>$/, '</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td></tr>');  
                          if(counter%4==1)  htmlOut = htmlOut.replace(/<\/td>$/, "</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td style=\" border-right: "+trennungsLinie+"px solid "+farbetrennungsLinie+"\">&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td></tr>");    
                          if(counter%4==0)  htmlOut = htmlOut.replace(/<\/td>$/, "</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td style=\" border-right: "+trennungsLinie+"px solid "+farbetrennungsLinie+"\">&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td style=\" border-right: "+trennungsLinie+"px solid "+farbetrennungsLinie+"\">&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td><td>&ensp;</td></tr>"); 
                          break; }
              
                             var htmlUeber=    "<p style=\"color:"+htmlFarbUber+"; font-family:"+htmlSchriftart+"; font-size: "+htmlÜberFontGroesse+"; font-weight:"+htmlSchriftWeite+ "\">"+htmlFeldUeber+"&ensp;&ensp;Update: "+formatDate(getDateObject((parseFloat((new Date().getTime())))), "SS:mm:ss");+"</p>"; 
                var htmlUnter= "<div  style=\"color:"+htmlFarbUber+"; font-family:"+htmlSchriftart+"; font-size: 70%; text-align: right;\" >"+htmlFeldUeber+"&ensp;&ensp;Update: "+formatDate(getDateObject((parseFloat((new Date().getTime())))), "SS:mm:ss");+"</div>"
                 
                 if (!htmlSignature) htmlUnter="";
                   //Ausgabe über VIS html widget - tabelle in datenpunkt schreiben - html tabelle ohne html header und body
                    var htmlOutVIS="";
                  //  htmlUberschrift ? htmlOutVIS=htmlUeber+htmlTabStyle+htmlTabUeber+htmlOut+"</table>" : htmlOutVIS=htmlTabStyle+htmlTabUeber+htmlOut+"</table>";
                     if (htmlUberschrift) 
                         { zentriert ? htmlOutVIS=htmlZentriert+htmlUeber+htmlTabStyle+htmlTabUeber+htmlOut+"</table>"+htmlUnter : htmlOutVIS=htmlUeber+htmlTabStyle+htmlTabUeber+htmlOut+"</table>"+htmlUnter ;
          
                       } else {
                        zentriert ?  htmlOutVIS=htmlZentriert+htmlTabStyle+htmlTabUeber+htmlOut+"</table>"+htmlUnter :  htmlOutVIS=htmlTabStyle+htmlTabUeber+htmlOut+"</table>"+htmlUnter;
          
                          }
          
          // log("bin raus aus tabelleBind");
                    if (braucheEinVISWidget) setState(dpVIS, htmlOutVIS );
          
          var htmlUnter= "<div  style=\"color:"+htmlFarbUber+"; font-family:"+htmlSchriftart+"; font-size: 80%;  text-align: center; \" >"+htmlFeldUeber+"&ensp;&ensp;Last Update: "+formatDate(getDateObject((parseFloat((new Date().getTime())))), "SS:mm:ss");+"</div>"
          var htmlEnd="</table>"+htmlUnter+"</div></body>";
          if (!htmlSignature) htmlUnter="";
          
          //mit oder ohne überschrift - zentriert oder links
          htmlUberschrift ? htmlOut=htmlStart+htmlUeber+htmlTabStyle+htmlTabUeber+htmlOut+htmlEnd : htmlOut=htmlStart+htmlTabStyle+htmlTabUeber+htmlOut+htmlEnd;
          //log(htmlOut);
          
          
          
          }
          
          

          J 1 Reply Last reply Reply Quote 0
          • J
            J.M @liv-in-sky last edited by J.M

            @liv-in-sky @liv-in-sky Hallo und vielen lieben Dank für die Änderung. Da ist leider noch irgendwo ein Fehler drin, finde ihn aber auf die schnelle nicht. Da sind doch mehr Änderungen die ich noch nicht ganz nachvollziehen kann. Eigenartiger weise sieht der Donnerstag richtig aus
            beispiel heute.jpg nur heute sieht etwas eigenartig aus. Heute ist wieder so ein Tag den wir letzte Woche schon angesprochen hatten. Bei Webuntis sieht es so aus. Ja alles Ausfall wegen Praktikum aber es werden dennoch die Stunden geschrieben im Adapter.
            orginal heute.jpg
            Siehe hier
            beispiel iobroker.jpg
            Und hier hab ich den Objektbaum vom heutigen Tag, hoffe das ist das, wonach du letztens gefragt hast.Wollte den kompletten, an den will er nicht, über 3000 Zeilen sind ihm wohl zu viel. Hätte es aber als json falls bedarf da ist.```
            code_text

            {
              "webuntis.0.0.0.code": {
                "type": "state",
                "common": {
                  "name": "code",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730765,
                "_id": "webuntis.0.0.0.code",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.0.endTime": {
                "type": "state",
                "common": {
                  "name": "endTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730743,
                "_id": "webuntis.0.0.0.endTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.0.name": {
                "type": "state",
                "common": {
                  "name": "name",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730749,
                "_id": "webuntis.0.0.0.name",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.0.room": {
                "type": "state",
                "common": {
                  "name": "room",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730760,
                "_id": "webuntis.0.0.0.room",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.0.startTime": {
                "type": "state",
                "common": {
                  "name": "startTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730733,
                "_id": "webuntis.0.0.0.startTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.0.teacher": {
                "type": "state",
                "common": {
                  "name": "teacher",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730754,
                "_id": "webuntis.0.0.0.teacher",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.1.code": {
                "type": "state",
                "common": {
                  "name": "code",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730799,
                "_id": "webuntis.0.0.1.code",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.1.endTime": {
                "type": "state",
                "common": {
                  "name": "endTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730777,
                "_id": "webuntis.0.0.1.endTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.1.name": {
                "type": "state",
                "common": {
                  "name": "name",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730783,
                "_id": "webuntis.0.0.1.name",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.1.room": {
                "type": "state",
                "common": {
                  "name": "room",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730793,
                "_id": "webuntis.0.0.1.room",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.1.startTime": {
                "type": "state",
                "common": {
                  "name": "startTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730771,
                "_id": "webuntis.0.0.1.startTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.1.teacher": {
                "type": "state",
                "common": {
                  "name": "teacher",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1653733730788,
                "_id": "webuntis.0.0.1.teacher",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.10.code": {
                "type": "state",
                "common": {
                  "name": "code",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006653,
                "_id": "webuntis.0.0.10.code",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.10.endTime": {
                "type": "state",
                "common": {
                  "name": "endTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006614,
                "_id": "webuntis.0.0.10.endTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.10.name": {
                "type": "state",
                "common": {
                  "name": "name",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006619,
                "_id": "webuntis.0.0.10.name",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.10.room": {
                "type": "state",
                "common": {
                  "name": "room",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006638,
                "_id": "webuntis.0.0.10.room",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.10.startTime": {
                "type": "state",
                "common": {
                  "name": "startTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006606,
                "_id": "webuntis.0.0.10.startTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.10.teacher": {
                "type": "state",
                "common": {
                  "name": "teacher",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006627,
                "_id": "webuntis.0.0.10.teacher",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.11.code": {
                "type": "state",
                "common": {
                  "name": "code",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006699,
                "_id": "webuntis.0.0.11.code",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.11.endTime": {
                "type": "state",
                "common": {
                  "name": "endTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006677,
                "_id": "webuntis.0.0.11.endTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.11.name": {
                "type": "state",
                "common": {
                  "name": "name",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006682,
                "_id": "webuntis.0.0.11.name",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.11.room": {
                "type": "state",
                "common": {
                  "name": "room",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006693,
                "_id": "webuntis.0.0.11.room",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.11.startTime": {
                "type": "state",
                "common": {
                  "name": "startTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006660,
                "_id": "webuntis.0.0.11.startTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.11.teacher": {
                "type": "state",
                "common": {
                  "name": "teacher",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006688,
                "_id": "webuntis.0.0.11.teacher",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.12.code": {
                "type": "state",
                "common": {
                  "name": "code",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006753,
                "_id": "webuntis.0.0.12.code",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.12.endTime": {
                "type": "state",
                "common": {
                  "name": "endTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006714,
                "_id": "webuntis.0.0.12.endTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.12.name": {
                "type": "state",
                "common": {
                  "name": "name",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006727,
                "_id": "webuntis.0.0.12.name",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.12.room": {
                "type": "state",
                "common": {
                  "name": "room",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006748,
                "_id": "webuntis.0.0.12.room",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.12.startTime": {
                "type": "state",
                "common": {
                  "name": "startTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006706,
                "_id": "webuntis.0.0.12.startTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.12.teacher": {
                "type": "state",
                "common": {
                  "name": "teacher",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006734,
                "_id": "webuntis.0.0.12.teacher",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.13.code": {
                "type": "state",
                "common": {
                  "name": "code",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006796,
                "_id": "webuntis.0.0.13.code",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.13.endTime": {
                "type": "state",
                "common": {
                  "name": "endTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006766,
                "_id": "webuntis.0.0.13.endTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.13.name": {
                "type": "state",
                "common": {
                  "name": "name",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006770,
                "_id": "webuntis.0.0.13.name",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.13.room": {
                "type": "state",
                "common": {
                  "name": "room",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006785,
                "_id": "webuntis.0.0.13.room",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.13.startTime": {
                "type": "state",
                "common": {
                  "name": "startTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006759,
                "_id": "webuntis.0.0.13.startTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.13.teacher": {
                "type": "state",
                "common": {
                  "name": "teacher",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006777,
                "_id": "webuntis.0.0.13.teacher",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.14.code": {
                "type": "state",
                "common": {
                  "name": "code",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006835,
                "_id": "webuntis.0.0.14.code",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.14.endTime": {
                "type": "state",
                "common": {
                  "name": "endTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006810,
                "_id": "webuntis.0.0.14.endTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.14.name": {
                "type": "state",
                "common": {
                  "name": "name",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006819,
                "_id": "webuntis.0.0.14.name",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.14.room": {
                "type": "state",
                "common": {
                  "name": "room",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006830,
                "_id": "webuntis.0.0.14.room",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              },
              "webuntis.0.0.14.startTime": {
                "type": "state",
                "common": {
                  "name": "startTime",
                  "role": "value",
                  "type": "string",
                  "write": false,
                  "read": true
                },
                "native": {},
                "from": "system.adapter.webuntis.0",
                "user": "system.user.admin",
                "ts": 1655244006803,
                "_id": "webuntis.0.0.14.startTime",
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              }
            }
            liv-in-sky 1 Reply Last reply Reply Quote 0
            • liv-in-sky
              liv-in-sky @J.M last edited by

              @j-m sagte in TESTER: Neuer Adapter Webuntis:

              habe vergessen, das ich so die states nicht bekomme - ist zu aufwendig im moment

              das die zeilen verschoben sind, liegt meist daran, dss nicht genug breite im widget oder im script setting angegeben ist

              das problemim feld bei tag "inv" ? das ist wohl ein sonderfall - anscheinend kann das script da kein datum finden und das fach ist auch mit null - also nichts beschreiben - muss evtl ausgefiltert werden, wenn das wieder kommt

              J 1 Reply Last reply Reply Quote 0
              • J
                J.M @liv-in-sky last edited by

                @liv-in-sky Warum geht aber der Donnerstag? Hier habe ich auch dein neues Skript im Einsatz. Ja die Verschiebung ist bei Lovelace bei iqontrol sieht alles geordnet aus. Inv ist wirklich ein Sonderfall und bedarf keiner weiteren Betrachtung, hier ist meist eine Info die über den ganzen Tag geht. Könnte man auch weglassen.

                liv-in-sky 1 Reply Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @J.M last edited by

                  @j-m

                  bei uns ist morgen feiertag - hast du mal zeit und lust auf eine anydesk oder teamviewer session - ganz habe ich noch nicht kapiert, was du da alles möchtest - oder am wochende ?

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    J.M @liv-in-sky last edited by

                    @liv-in-sky Ja gern am Wochenende (bin ein Berliner, und darf morgen arbeiten 😧 ). Und du hast recht Donnerstag geht auch nicht. Hab beim kopieren zwar den Webuntis angepasst, aber nicht die Pfade in Zeile 16 und 20. Nach dem anpassen sieht es jetzt aus wie beim Mittwoch.

                    liv-in-sky 1 Reply Last reply Reply Quote 0
                    • liv-in-sky
                      liv-in-sky @J.M last edited by

                      @j-m

                      dann finden wir am samstag oder sonntag zusammen und gehen das mal in ruhe durch

                      1 Reply Last reply Reply Quote 1
                      • S
                        SigiMOE @elektrickser.de last edited by SigiMOE

                        @elektrickser-de Bezügl. dem Update ist bei mir auch, gibt es dafür eine Lösung ?

                        E 2 Replies Last reply Reply Quote 0
                        • E
                          elektrickser.de @SigiMOE last edited by

                          @sigimoe Noch nicht.

                          1 Reply Last reply Reply Quote 0
                          • E
                            elektrickser.de @SigiMOE last edited by

                            @sigimoe Jetzt klappt es mit dem Update. @Newan hat den Fehler behoben.

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              SigiMOE @elektrickser.de last edited by

                              @elektrickser-de Danke 🙂

                              1 Reply Last reply Reply Quote 0
                              • M
                                marcNRW last edited by

                                Hallo zusammen,
                                ich benutze diesen Adapter nun auch um die Stundenpläne meiner Kids abzufragen. Das funktioniert grundsätzlich hervorragend, ich habe aber zwei Fragen:

                                1. Der Newsfeed in der Units-App war gestern befüllt und ist heute "leer". Das newsfeed-date wurde auch entsprechend aktualisiert, allerdings steht im subject weiterhin der Inhalt von gestern. Hat noch jemand das "Problem" oder eine Idee für mich, was ich falsch eingestellt haben könnte?
                                2. Ich möchte die Daten per mqtt weitergeben, da ich hauptsächlich Home Assistant nutze. Gestern habe ich für alle Objekte die mqtt-Einstellungen vorgenommen und ich konnte in mqtt.fx bzw. Home Assistant sehen, dass die Daten korrekt erzeugt wurden. Heute sind aber in alle Objekten (außer dem Newsfeed) die mqtt-Einstellungen "verloren gegangen" und es wurden folglich keine Daten aufbereitet. Ich vermute jetzt einfach mal, dass der Adapter die Objekte löscht und neu anlegt und dabei die Einstellungen verloren gehen. Kann das jemand bestätigen? Hat jemand einen Lösungsansatz für mich?

                                Ich bin recht frisch in mqtt dabei und habe noch wenig Ahnung. Falls meine Theorie falsch ist oder ich einfach noch unwissend bin, bitte ich um Nachsicht und Unterstützung 🙂

                                Viele Grüße
                                Marc

                                Newan 1 Reply Last reply Reply Quote 0
                                • Newan
                                  Newan @marcNRW last edited by

                                  @marcnrw Hallo,

                                  ja die Objekte werden gelöscht, da nicht immer an allen Tagen alle Objekte vorhanden sind. Würde das über eine Auslesescript lösen der versucht alle Objekte am Tag zu lesen.
                                  Bezüglich den Feed müssten wir auf weiteres Feedback warten, könnte aber ein Bug sein

                                  M 2 Replies Last reply Reply Quote 0
                                  • M
                                    marcNRW @Newan last edited by

                                    @newan
                                    danke für Deine schnelle Antwort.
                                    Sorry, aber ich bin in ioBroker nicht sonderlich fit und ein solches Skript übersteigt leider meinen Horizont 😞
                                    Kannst Du den Ansatz für mich etwas intensiver erläutern?

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sevelen last edited by

                                      Bei mir zeigt er alles bis auf den Stundenplan an.

                                      Cannot read Timetable for today - possible block by scool
                                      

                                      Jemand eine Idee?

                                      I inbux 2 Replies Last reply Reply Quote 0
                                      • I
                                        ing-michel @Sevelen last edited by

                                        Würde mich freuen, wenn man das Intervall der Datenaktualisierung einstellen könnte. Grade morgens wäre es gut, wenn die Daten öfter aktualisiert werden würden, da da ja die aktuellen Vertretungen eingepflegt werden.

                                        Danke soweit und beste Grüße

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          marcNRW @Newan last edited by

                                          @newan
                                          OK, danke für den Tipp mit dem Skript. Klapp und passt.

                                          @alle: Bleibt noch der Punkt mit dem Newsfeed. Jemand eine Idee?

                                          1 Reply Last reply Reply Quote 0
                                          • U
                                            UdoWendt last edited by

                                            Hallo zusammen,
                                            vielen Dank an Alle, die so etwas hier ermöglichen.
                                            Wenn es Vertretungsstunden bei meinem Sohn gibt, wir in der App zwar hellgrün angezeigt, eine Unterscheidung welcher Art auch immer kann ich in den Adapter-Datenpunkten aber nicht ausmachen. Liege ich da richtig?
                                            Vielen Dank für eine Rückmeldung.

                                            J 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            793
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            47
                                            191
                                            22598
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo