Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter OctoPrint

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Test Adapter OctoPrint

    This topic has been deleted. Only users with topic management privileges can see it.
    • da_Woody
      da_Woody @Latzi last edited by

      @latzi er drückt sich grad einen... dauert noch, muss aber eh noch was drucken. muss ich aber erst fila tauschen.
      84bf3b4e-0596-4036-8bb9-5639eea3bda3-grafik.png
      die 3. kachel wär schon fürs thumb vorbereitet... 😄
      nuja, hab so ca. 75qm für mich. werkstatt (büro) und eben die dachhöhle auch ca 20qm...
      ich hab platz... banane2.gif

      Latzi 1 Reply Last reply Reply Quote 0
      • da_Woody
        da_Woody @Latzi last edited by

        @latzi i c!
        das meinst...
        d9389968-b037-46dc-9469-e9a34cc247b8-grafik.png

        Latzi 1 Reply Last reply Reply Quote 0
        • Latzi
          Latzi @da_Woody last edited by Latzi

          @da_woody
          lechts sabber, ich auch mag 😉
          versuchs mal damit (ungetestet, Zeile 6 ist neu und soll übersetzen)

          on({id: 'octoprint.0.printjob.file.name', change: "any"}, async function (obj) {
             var octo_thumb='';
             var thumb_file=''; 
             if ((obj.state.val)!== null) {
                 thumb_file=getState("octoprint.0.printjob.file.origin").val +"_" + obj.state.val.replace(".gcode","");
                thumb_file=thumb_file.replace("-","_");
                 if (existsState("octoprint.0.files." + thumb_file + ".thumbnail_url")) {
                    octo_thumb= getState("octoprint.0.files." + thumb_file + ".thumbnail_url").val;
                 };
             }; 
             setState("javascript.0.Octothumb.dir_thumb", thumb_file, true);
             setState("javascript.0.Octothumb.thumbnail", octo_thumb, true);
          }); 
          
          da_Woody 1 Reply Last reply Reply Quote 0
          • Latzi
            Latzi @da_Woody last edited by

            @da_woody sagte in Test Adapter OctoPrint:

            das meinst...

            ja, ganz genau!
            Wieder was gelernt: "-" ist böse, nicht nur beim Konto!

            1 Reply Last reply Reply Quote 0
            • da_Woody
              da_Woody @Latzi last edited by

              @latzi irgendwo fehlt eine (. mault in zeile 13 über );
              2e9465cf-74d1-4586-af7f-f0bbab6bee0c-grafik.png

              19:19:09.191	error	javascript.0 (615) script.js.common.Diverses.Octothumb compile failed: at script.js.common.Diverses.Octothumb:13
              
              Latzi 1 Reply Last reply Reply Quote 0
              • Latzi
                Latzi @da_Woody last edited by Latzi

                @da_woody
                so sieht´s bei mir aus:

                on({id: 'octoprint.0.printjob.file.name', change: "any"}, async function (obj) {
                   var octo_thumb='';
                   var thumb_file=''; 
                   if ((obj.state.val)!== null) {
                       thumb_file=getState("octoprint.0.printjob.file.origin").val +"_" + obj.state.val.replace(".gcode","");
                       thumb_file=thumb_file.replace("-","_");
                       if (existsState("octoprint.0.files." + thumb_file + ".thumbnail_url")) {
                          octo_thumb= getState("octoprint.0.files." + thumb_file + ".thumbnail_url").val;
                       };
                   }; 
                   setState("javascript.0.3D-Drucker.dir_thumb", thumb_file, true);
                   setState("javascript.0.3D-Drucker.thumbnail", octo_thumb, true);
                }); 
                

                Edit: Hab die "}" oben eingefügt, sorry voll übersehen 😞

                da_Woody 1 Reply Last reply Reply Quote 1
                • da_Woody
                  da_Woody @Latzi last edited by

                  @latzi 28e68269-e375-47a2-ad63-88e692acf79d-grafik.png
                  touchdown!

                  Latzi 1 Reply Last reply Reply Quote 0
                  • Latzi
                    Latzi @da_Woody last edited by

                    @da_woody
                    schwere Geburt - Hauptsache es läuft.
                    Wie schaut die 3. Kachel nun aus?

                    da_Woody 1 Reply Last reply Reply Quote 0
                    • da_Woody
                      da_Woody @Latzi last edited by

                      @latzi LOL, scheiße, um es nett auszudrücken. die browser gehn mir immer mehr auf die nerven...
                      firefox:
                      Zu Ihrem Schutz erlaubt 192.168.2.59 es Firefox nicht, diese Seite anzuzeigen, wenn sie in eine andere Seite eingebettet ist. Zur Anzeige der Seite muss diese in einem neuen Tab geöffnet werden.
                      chrome:
                      acf17982-1932-4ad7-a68b-5f2c5aa61f80-grafik.png

                      Latzi 1 Reply Last reply Reply Quote 0
                      • Latzi
                        Latzi @da_Woody last edited by

                        @da_woody
                        verwendest du iframe?
                        Bei mir läuft´s mit iframe und chrome (ff hab ich nicht getestet).

                        da_Woody 1 Reply Last reply Reply Quote 0
                        • da_Woody
                          da_Woody @Latzi last edited by da_Woody

                          @latzi nix iframe, das ist iQontrol...
                          ist aber anscheinend ein iframe. hrnz.

                          Die "X-Frame-Options"-Direktive "sameorigin" verbietet das Laden von "http://192.168.2.59/plugin/prusaslicerthumbnails/thumbnail/D%C3%BCse-v1_r.png?20220120151807" in einem Frame.
                          
                          1 Reply Last reply Reply Quote 0
                          • Negalein
                            Negalein Global Moderator @joergeli last edited by

                            @joergeli sagte in Test Adapter OctoPrint:

                            sowie die Gesamtdruckdauer und Fertigstellungszeit erstellt.

                            funktioniert perfekt 🙂

                            5d103c51-789b-49b6-940a-ccf131bd6522-image.png

                            joergeli 1 Reply Last reply Reply Quote 0
                            • Negalein
                              Negalein Global Moderator @Latzi last edited by

                              @latzi sagte in Test Adapter OctoPrint:

                              bitte sehr

                              funktioniert nicht ganz

                              0_userdata.0.3DDrucker.thumbnail
                              475275cc-75bf-4d21-9d8f-1c366192edfc-image.png

                              octoprint.0.files.local_Kinder_Gekko_einzeln.thumbnail_url
                              3ca08716-a1cb-4764-ac1d-0f4fa4a9f235-image.png

                              on({id: 'octoprint.0.printjob.file.name', change: "any"}, async function (obj) {
                                 var octo_thumb='';
                                 var thumb_file=''; 
                                 if ((obj.state.val)!== null) {
                                     thumb_file=getState("octoprint.0.printjob.file.origin").val +"_" + obj.state.val.replace(".gcode","");
                                     octo_thumb= getState("octoprint.0.files." + thumb_file + ".thumbnail_url").val;
                                     } 
                                 setState("0_userdata.0.3DDrucker.dir_thumb", thumb_file, true);
                                 setState("0_userdata.0.3DDrucker.thumbnail", octo_thumb, true);
                              }); 
                              
                              08:19:01.641	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:6:20)
                              08:19:01.642	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:9:4)
                              08:19:06.649	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:6:20)
                              08:19:06.650	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:9:4)
                              08:19:11.626	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:6:20)
                              08:19:11.627	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:9:4)
                              08:19:16.955	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:6:20)
                              08:19:16.956	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:9:4)
                              08:19:21.639	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:6:20)
                              08:19:21.639	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:9:4)
                              08:19:26.655	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:6:20)
                              08:19:26.656	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:9:4)
                              08:19:31.653	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:6:20)
                              08:19:31.654	warn	javascript.0 (526697) at Object.<anonymous> (script.js.3D-Drucker.Slicerthumbnail:9:4)
                              
                              da_Woody 1 Reply Last reply Reply Quote 0
                              • da_Woody
                                da_Woody @Negalein last edited by

                                @negalein du hast da noch eine alte version! inzwischen sinds 13 zeilen...
                                https://forum.iobroker.net/topic/36210/test-adapter-octoprint/229

                                Latzi 1 Reply Last reply Reply Quote 0
                                • Latzi
                                  Latzi @da_Woody last edited by

                                  @da_woody @Negalein
                                  auch das neue script wird nicht funktionieren, da wird ein Verzeichnis "Kinder" verwendet, ist im script so nicht vorgesehen 😞
                                  Da muss ich wohl umbauen und den DP path verwenden, wird etwas dauern - ich meld mich

                                  Negalein da_Woody 2 Replies Last reply Reply Quote 0
                                  • Negalein
                                    Negalein Global Moderator @Latzi last edited by

                                    @latzi sagte in Test Adapter OctoPrint:

                                    auch das neue script wird nicht funktionieren, da wird ein Verzeichnis "Kinder" verwendet

                                    stimmt
                                    0_userdata.0.3DDrucker.dir_thumb wird befüllt
                                    0_userdata.0.3DDrucker.thumbnail bleibt leer

                                    1961a898-4de1-436e-bf82-f9a291147499-image.png

                                    Latzi 1 Reply Last reply Reply Quote 0
                                    • da_Woody
                                      da_Woody @Latzi last edited by

                                      @latzi das ist kein verzeichniss, das ist der filename des druckteils... 😉
                                      local_Kinder_Gekko_einzeln

                                      Negalein 1 Reply Last reply Reply Quote 0
                                      • Latzi
                                        Latzi @Negalein last edited by

                                        @negalein
                                        kannst du bitte die DP unter octoprint.0.printjob.file zeigen?

                                        Negalein 1 Reply Last reply Reply Quote 0
                                        • Negalein
                                          Negalein Global Moderator @da_Woody last edited by

                                          @da_woody sagte in Test Adapter OctoPrint:

                                          das ist kein verzeichniss

                                          Verzeichnis und Filename

                                          File: http://10.0.1.182:80/plugin/prusaslicerthumbnails/thumbnail/Kinder/Gekko_einzeln.png?20220120081343
                                          Verzeichnis: octoprint.0.files.local_Kinder_Gekko_einzeln
                                          e80523d6-d362-4f76-a464-16e205692a78-image.png

                                          1 Reply Last reply Reply Quote 0
                                          • Negalein
                                            Negalein Global Moderator @Latzi last edited by

                                            @latzi sagte in Test Adapter OctoPrint:

                                            kannst du bitte die DP unter octoprint.0.printjob.file zeigen?

                                            618d576f-f35d-44af-8fe7-7b5687679d3d-image.png

                                            Latzi da_Woody 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            911
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter entwicklung adatper updates developer testen
                                            49
                                            461
                                            63552
                                            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