• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 2.8k 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 May 29, 2023, 11:58 AM

    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 B 4 Replies Last reply May 29, 2023, 12:23 PM Reply Quote 2
    • S Away
      sdetweil @btastic
      last edited by May 29, 2023, 12:23 PM

      @btastic awesome…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 2 Replies Last reply May 29, 2023, 8:24 PM Reply Quote 0
      • S Away
        sdetweil @btastic
        last edited by sdetweil May 29, 2023, 5:53 PM May 29, 2023, 5:49 PM

        @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 May 29, 2023, 8:24 PM Reply Quote 0
        • S Away
          sdetweil @btastic
          last edited by May 29, 2023, 6:58 PM

          @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 May 29, 2023, 8:24 PM

            @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 May 29, 2023, 10:46 PM Reply Quote 0
            • B Offline
              btastic @sdetweil
              last edited by May 29, 2023, 8:24 PM

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

              1 Reply Last reply Reply Quote 0
              • B Offline
                btastic @sdetweil
                last edited by May 29, 2023, 9:19 PM

                @sdetweil I added a fallback thumbnail

                b1MoU4LExz.png

                1 Reply Last reply Reply Quote 1
                • B Offline
                  BKeyport Module Developer @btastic
                  last edited by May 29, 2023, 10:33 PM

                  @btastic Slick. I like it.

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

                  1 Reply Last reply Reply Quote 0
                  • S Away
                    sdetweil @btastic
                    last edited by sdetweil May 29, 2023, 10:46 PM May 29, 2023, 10:46 PM

                    @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 Jun 13, 2023, 6:40 PM

                      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
                      • 1
                      • 2
                      • 1 / 2
                      • 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