j7126 / OctoPrint-Dashboard

A dashboard for Octoprint
GNU Affero General Public License v3.0
288 stars 39 forks source link

MagicMirror 2 Module #337

Closed PineappleJama closed 2 years ago

PineappleJama commented 2 years ago

Can the information as the dials etc be added as a MagicMirror 2 module please?

j7126 commented 2 years ago

I have no plans of developing a MagicMirror Module any time soon. However as dashboard is just a web page, you could probably achieve what you want by using a MagicMirror module to display the page.

For example https://github.com/AgP42/MMM-SmartWebDisplay (I have not used this or anything just found it from a quick search) or something similar to display the dashboard webpage inside of MagicMirror. For this to work you probably would need to set up OctoPrint to auto-login from the IP of your MagicMirror instance.

Using that module you could use a config something like this:

modules: [
    {
        module: 'MMM-SmartWebDisplay',
        position: 'middle_center',
        config: {
            logDebug: false,
            height:"100%", // some height
            width:"100%", // some width
            updateInterval: 0,
            NextURLInterval: 0,
            displayLastUpdate: false,
            url: ["http://octopi.local/?dashboard=full#tab_plugin_dashboard"], // octoprint url
            scrolling: "no", 
        }
    },
]

And then you can set the visibility of each widget in octoprint dashboard settings here: image image

You could potentially also use something like this https://github.com/shbatm/octomirror-module/.

Hopefully this helps.