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.

    [octomirror-module] Monitor & Control an OctoPrint 3D Printer Server

    Scheduled Pinned Locked Moved Productivity
    47 Posts 17 Posters 37.0k Views 18 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.
    • S Offline
      shbatm Module Developer
      last edited by shbatm

      Description:

      Monitor & Control an OctoPrint 3D Printer Server. Originally created by @DongerZonnie, expanded & updated by @shbatm

      The module will allow you to:
      View a live feed of the raspicam stream
      Start and stop prints
      View G-Code viewer
      Manually control the printer
      Recieve live updates on printer status

      Screenshots:

      Download:

      [card:shbatm/octomirror-module]


      Version 1.0.4

      • Implemented translations feature and added English & German
      • Added ability to show most recent temperatures
      • Added ability to hide additional details when the printer is offline.

      Version 1.0.3

      • Added options to disable camera feed and customize stream URL.

      Version 1.0.2

      • Refactored to use OctoPrint Client JS library and provide live updates via SockJS connection.
      1 Reply Last reply Reply Quote 3
      • B Offline
        barnosch
        last edited by

        Nice!
        Since i only have a 19" MM (going to update to 22" these days) i do not have enough space left for this nice little thing.

        I guess my wife would slowly start to kill me, if i would add a stream of the actual print ;)
        since the printer is only 5 meters away from the Mirror

        Need to build another mirror i guess :P

        1 Reply Last reply Reply Quote 0
        • B Offline
          barnosch
          last edited by

          Would it be possible to just see the
          status like ETA and % and the stream optional?

          Exactly like your screenshot, but without the stream?
          I guess i would find some place for that infromation ;)

          1 Reply Last reply Reply Quote 0
          • S Offline
            shbatm Module Developer
            last edited by

            @barnosch Yep! Done! Pull the updated version and add showStream: false to your config.

            Also FYI – right now I only include the information useful to me, but the module interacts with the full OctoPrint API, so if there’s something else you’d like to see, or want to customize how it’s displayed, please let me know!

            API Reference – http://docs.octoprint.org/en/master/api/push.html

            1 Reply Last reply Reply Quote 0
            • B Offline
              barnosch
              last edited by

              Awesome. Thanks, dude.
              0_1516468931273_c0a57a78-b5b3-443b-b61a-146cb8c97941-grafik.png

              made some little adustments to fit my needs.
              The only thing which i think could be also interesting is maybe the temperatures of the nozzle and the bed?

              B 1 Reply Last reply Reply Quote 0
              • S Offline
                shbatm Module Developer
                last edited by

                @barnosch: Made some more changes:

                • Implemented MM Translations and added English and what I could of German.
                • Added most recent nozzle & bed target & actual temperatures – can be enabled/disabled with showTemps config option.
                • Added option to hide the file, time, and temps when the printer is offline – can be enable/disabled with showDetailsWhenOffline option.

                You’ll have to move your lines around again after you update it–for now, anyway–I’m adding “Add Stylesheet and auto format for width” to my to-do list for the module, as well as hide camera window when not printing.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  barnosch
                  last edited by

                  Perfect! Already pulled and adjusted.
                  Thank you really much.
                  I appreciate your fast and nice work.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    barnosch
                    last edited by

                    Is there any chance to give the stream object a CSS name to override the common resolution of the webstream via CSS?

                    Right now, as i can see it, it fetches the stream from http://octopiIP:8080 as it is.
                    Thats killing my mirror ;)

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      shbatm Module Developer
                      last edited by shbatm

                      @barnosch - it’s on the To-do list.

                      For now, try setting the height/width in your custom.css file with something like:

                      div.octomirror-module img {
                          height: 150px;
                          width: 150px;
                      }
                      

                      EDIT: Removed the > in the selector line above.

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        barnosch
                        last edited by

                        Great. Good idea, since it is “only” a img tag, it is pretty easy.
                        i was thinking to complicated. Now it fits nicely.
                        0_1516814531991_005afc39-fe57-4c77-9773-6427357fe7f1-grafik.png

                        Looking forward for the “hide camera window when not printing” feature.
                        But no hurry.

                        Great work!

                        1 Reply Last reply Reply Quote 0
                        • michael24hM Offline
                          michael24h
                          last edited by

                          My stream showing upside down. any idea ?

                          1 Reply Last reply Reply Quote 0
                          • michael24hM Offline
                            michael24h
                            last edited by

                            this works for me:
                            div.octomirror-module img {
                            transform: rotate(180deg);

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              d3r
                              last edited by

                              Installed this on my pi3 for the Mp select mini today. This is great!

                              1 Reply Last reply Reply Quote 0
                              • citizendevpiC Offline
                                citizendevpi
                                last edited by

                                I can not seam to get the informatin to show up all items say n/a but my video shows no problem, would realy apricate any help

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  shbatm Module Developer
                                  last edited by

                                  Can you please post your config section? Have you enabled the API and provided an API key?

                                  citizendevpiC 2 Replies Last reply Reply Quote 0
                                  • michael24hM Offline
                                    michael24h
                                    last edited by

                                    @shbatm said in [octomirror-module] Monitor & Control an OctoPrint 3D Printer Server:
                                    please post your config section

                                    1 Reply Last reply Reply Quote 0
                                    • citizendevpiC Offline
                                      citizendevpi @shbatm
                                      last edited by yawns

                                      @shbatm

                                      }, {
                                              module: "octomirror-module",
                                              position: "bottom_left",
                                              config: {
                                                  url: "http://192.168.2.141",
                                                  api_key: "B7ACF3C4BDD04D61BF5176C75778661E",
                                              }
                                          },
                                      

                                      so i obviously cannot figure out how to copy paste my config i feel like i have some issues

                                      1 Reply Last reply Reply Quote 0
                                      • citizendevpiC Offline
                                        citizendevpi @shbatm
                                        last edited by

                                        @shbatm yes I have enabled the API as you can c it is in my config

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          shbatm Module Developer @citizendevpi
                                          last edited by

                                          @citizendevpi Try adding debugMode: true, to the config and see if you get any useful information in the logs. I can’t remember if they’ll show up in the console or DevTools. Also, it’s been a while since I’ve used the module, but it will only show data when it’s actually printing too.

                                          1 Reply Last reply Reply Quote 0
                                          • michael24hM Offline
                                            michael24h
                                            last edited by sdetweil

                                            @citizendevpi said in [octomirror-module] Monitor & Control an OctoPrint 3D Printer Server:

                                            url: “http://192.168.2.141”
                                            Looks like link isn’t complete. Should looks like this http://ip_address/webcam/?action=stream

                                            {
                                                    module: 'MMM-MotionEye',
                                                    position: 'top_right',
                                                        config:  {
                                                        width: "460px",
                                                        autoHide: false,
                                                        url: "http://octoprint IP address/webcam/?action=stream",
                                                        debug: false,    
                                                        user: "pi"  
                                                    }
                                                },   
                                            

                                            I hope this will help you

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