MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-octoprint

    Scheduled Pinned Locked Moved Utilities
    17 Posts 6 Posters 6.0k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      btastic
      last edited by

      Hello!

      This is my second plugin. This module was sort of requested by @sdetweil and I thought it would be a great idea, since octoprint has a larger user base.

      example.png

      Just like the moonraker module I developed a module to display data from the Octoprint API.

      It has some minor differences when setting up, but it should look the same once everything is setup properly.

      You can find the repository, installation guide and config options on my github: https://github.com/btastic/MMM-octoprint

      Feel free to discuss, ask questions or add suggestions for further development.

      Best regards
      Ben

      S BKeyportB 4 Replies Last reply Reply Quote 2
      • S Do not disturb
        sdetweil @btastic
        last edited by

        @btastic awesome…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 2 Replies Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @btastic
          last edited by sdetweil

          @btastic

          you need a position: set in the example , else nothing displays

          for some reason my gcode files dont have thumbnails…

          so the img src url ends up being

          http://octopi/undefined

          you could pass th e endpoint and tail part of the url to the template
          and if the tail is undefined then do a messge instead of the img
          or construct the full url in the template

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @btastic
            last edited by

            @btastic also, in your css file, you should prefix the classes with your modulename

            .MMM-octoprint .colum

            as all the stylesheets are loaded into the same namespace…
            it could collide with another module defining the same class name

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • B Offline
              btastic @sdetweil
              last edited by

              @sdetweil Thank you for testing :) I fixed up the documentation to include a position.

              As for the missing thumbnails, did you install the plugin like I mentioned in the readme file? The plugins site also describes how to add thumbnails in your slicer software.

              You should only enable the showThumbnail flag once you have thumbnails working. Otherwise it can lead to unexpected behaviour, like you’re experiencing.

              The same for the layer progress. It can only be properly shown when the plugin and slicer are properly configured.

              I added some remarks about those flags in the readme file.

              S 1 Reply Last reply Reply Quote 0
              • B Offline
                btastic @sdetweil
                last edited by

                @sdetweil Thanks for the heads up, just added it.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  btastic @sdetweil
                  last edited by

                  @sdetweil I added a fallback thumbnail

                  b1MoU4LExz.png

                  1 Reply Last reply Reply Quote 1
                  • BKeyportB Offline
                    BKeyport Module Developer @btastic
                    last edited by

                    @btastic Slick. I like it.

                    The "E" in "Javascript" stands for "Easy"

                    1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @btastic
                      last edited by sdetweil

                      @btastic I did install the plugins

                      and went into thumbnails and scanned the gcode files…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        jasondreher
                        last edited by

                        Great module, but mine keeps flipping between fine and unavailable. When it flips to unavailable I look at the ip address and all looks fine…

                        any idea what the issue is?

                        1 Reply Last reply Reply Quote 0
                        • X Offline
                          xIExodusIx
                          last edited by

                          Interessantes Modul,
                          leider wird bei mir außer “Lade…” nichts weiter angezeigt, auch nach 24 Std. nicht.

                          Hard- & Software Infos:
                          Magic Mirror: 2.30 on Raspberry Pi4, 4GB
                          OctoPrint: 1.10.3, Python: 3.11.2, OctoPi: 1.1.0 on Raspberry Pi4, 8GB

                          KristjanESPERANTOK 1 Reply Last reply Reply Quote -1
                          • KristjanESPERANTOK Online
                            KristjanESPERANTO Module Developer @xIExodusIx
                            last edited by

                            @xIExodusIx Try this: Remove this line const fetch = require("fetch"); from node_helper.js in the module directory. If it doesn’t work, show us the log output.

                            S X 2 Replies Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @KristjanESPERANTO
                              last edited by

                              @KristjanESPERANTO or just comment out

                              // const fetch = require(“fetch”);

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 1
                              • X Offline
                                xIExodusIx @KristjanESPERANTO
                                last edited by

                                @KristjanESPERANTO & @sdetweil
                                Danke für die Hilfe, es scheint zu funktionieren, jetzt wird nicht mehr nur “Lade…” angezeigt, sondern die angegebenen Druck-Infos. Ich muss das aber noch mit einem Druck-Auftrag testen.

                                Thanks for the help, it seems to work, now it’s not just showing “loading…” anymore, now it shows the specified print information. But I still have to test this with a print job.

                                Thank you :-)

                                S 1 Reply Last reply Reply Quote 1
                                • S Do not disturb
                                  sdetweil @xIExodusIx
                                  last edited by

                                  @xIExodusIx great!! thx for the feedback

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  X 1 Reply Last reply Reply Quote 0
                                  • X Offline
                                    xIExodusIx @sdetweil
                                    last edited by

                                    @sdetweil & @KristjanESPERANTO
                                    Yes, everything is working now, even the thumbnail and the layer progress are displayed. Only downside: It is displayed very, very small on the left edge of the screen. Not as I specified “middle_center”. I’m trying to figure out why.

                                    But thanks for your great and fast Help :-)

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @xIExodusIx
                                      last edited by sdetweil

                                      @xIExodusIx

                                      please don’t double post… all posts from users with reputation below 2 are reviewed (by me)… surprizingly I DO do other things than MM…!!

                                      from the doc, middle_center is all the way across the screen (magenta here)

                                      https://docs.magicmirror.builders/modules/configuration.html#position

                                      regions.png

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      • 1 / 1
                                      • First post
                                        Last post
                                      Enjoying MagicMirror? Please consider a donation!
                                      MagicMirror created by Michael Teeuw.
                                      Forum managed by Sam, technical setup by Karsten.
                                      This forum is using NodeBB as its core | Contributors
                                      Contact | Privacy Policy