Git Product home page Git Product logo

octomirror-module's People

Contributors

dongerzonie avatar geogeocutcut avatar grenagit avatar jopyth avatar mwaldegg avatar nerradia avatar roramirez avatar shbatm avatar viddi87 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

octomirror-module's Issues

Won't work with magicmirroros (or any Docker container version of MM2)

Because Docker won't let you access other assets on the local network, I could not get this module to work on the magicmirroros version. I'm guessing it won't work on any other Docker container version of MM2 without substantial work to enable mDNS and/or local networking access to the container.

I'm not a seasoned raspi guy, but I'm not a total noob, either, but I've been pulling my hair out for 2 straight days trying to get the most basic version of MM2 loaded and it's incredibly frustrating

Won't load dependencies

When the module goes to load lo_dash, jquery, etc. it opens the file in the root octomirror-module folder but does not go to the installed source in node_modules. I replaced the placeholder files with the actual files but I would like to get it working normally. How are the files supposed to be loaded?

octomirror-module not loading at all

I've gone over this 10 ways from Sunday. I'm using the MagicMirrorOS build on a Pi Zero 2 W. Everything else loads fine, but nothing shows up at all on my display.
I ran the install from inside the docker container following all the steps listed, did the wget to pull the client.js from my octoprint instance and updated config.js to add the module.

Here's my config settings for octomirror-module:

           {
                    module: "octomirror-module",
                    position: "middle-center",
                    config: {
                            url: 'http://192.168.1.8',
                            api_key: '48AD4581A491431AA51CBDB7093DACA3'
                    }
            },

I'm at a loss.

G-Code viewer available?

In the readme it says you can view the G-Code viewer. Does anyone know how to call this function? I don't see it in the example code.

Module doesn't update when started after octoprint

Hello, thanks for the module !

As said in the title, when my MM (on rasp pi 3) is started before my Octoprint (on a Debian PC, Started only when needed), the module stays N/A everywhere, only a soft restart of MM put everything back as normal.

Am i missing something ?

Currently Showing N/A for all stats

All stats from Octoprint are showing as N/A.

Switched on debug mode, but no messages are coming through either. The stream works great, and I've got the same API key set as I do in Cura. I'm on version 1.3.9 of Octoprint

showTemps not work

hello, I have a problem with the display of temperatures, it does not work. I have communication with the printer for the camera but not the temperatures. is there anything to set on octoprint?

{
module: "octomirror-module",
header: "",
position: "bottom_bar",
config: {
url: "http://192.168.
",
showStream: false,
interactive: false,
showDetailsWhenOffline: true,
api_key: "[
**************************]"
}
},

IMG_20190729_110904

Auto Format Text for Different Widths

Need to automatically format the text and dividers (" | ") for different module widths. Also need to be able to set the width to control the image size from the camera.

Support Multiple Printers

It would be great if this module supported multiple instances, so that those of us with more than one printer can display multiple statuses.

interactive dosent work

Helo mate
interactive , won't hide the drop downs menu.

             {
    		module: "octomirror-module",
    		position: "top_right",
    			config: {
        			url: ".............",
    	    		api_key: "[.......]",
        	    	interactive: false,
    			}
		},

Uncaught TypeError: Cannot read property 'bed' of undefined"

Hi!

Found this error in my log:

[1285:0115/010134.827469:INFO:CONSOLE(234)] "Uncaught TypeError: Cannot read property 'bed' of undefined", source: http://0.0.0.0:8080/modules/octomirror-module//octomirror-module.js (234)

Seems like "data.temps" sometimes is empty.

Happens here:
var temps = data.temps[data.temps.length - 1];
if (typeof(temps.bed) === 'undefined')

Fixed the exeption with: if (data.temps.length)

New part:

if (data.temps.length) {
var temps = data.temps[data.temps.length - 1];
if (typeof(temps.bed) === 'undefined') { // Sometimes the last data point is time only, so back up 1.
temps = data.temps[data.temps.length - 2];
}
$("#opNozzleTemp")[0].innerHTML = (temps.tool0.actual) ? temps.tool0.actual.round10(1) + "°C" : $
$("#opNozzleTempTgt")[0].innerHTML = (temps.tool0.target) ? Math.round(temps.tool0.target) + "°C$
$("#opBedTemp")[0].innerHTML = (temps.bed.actual) ? temps.bed.actual.round10(1) + "°C" : "N/A";
$("#opBedTempTgt")[0].innerHTML = (temps.bed.target) ? Math.round(temps.bed.target) + "°C" : "N/$
}

Module don't update infos

Hello,

My printer is printing with OctoPrint on, but the module on the MM does not update infos.
What can I check ?

Here is my config.js :
{ module: "octomirror-module", disabled: false, header: "Impression 3D", position: "bottom_left", config: { url: "http://192.168.0.180", api_key: 'XXX', showStream: false, showDetailsWhenOffline: false, interactive: false }

error install

Hello, I try to install the module on my magicmirror. but I have one error.

When I lauch the npm start dev, I have this :

starting module: octomirror-module
octomirror-module.js:110 Uncaught ReferenceError: OctoPrintClient is not defined
at Class.start (octomirror-module.js:110:29)
at startModules (loader.js:51:11)
at loader.js:38:6
at HTMLLinkElement.stylesheet.onload (loader.js:210:7)

in the config.js I have
{
module: “octomirror-module”,
position: “middle_center”,
config: {
//js octomirror stream.setAttribute (‘width’, ‘300’);
debugMode: true,
url: “http://192.168.0.30/”,
printerName: “D12 230”,
api_key: “CC9E078BF70443DC94CB4C664E13E236”,
streamUrl: ‘http://192.168.0.30/webcam/?action=stream/’,
interactive: false,
showDetailsWhenOffline: false,
}
},

thanks for help.

failed to load source map sockjs.min.js.map

Hi,
I installed the module and have been trying to get it to work ever since. The module is displayed, but all values are N/A.

In the Browser Console I get the following error:

DevTools failed to load source map: Could not load content for http://192.168.178.138:8080/modules/octomirror-module/sockjs.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

How can I fix this?
Thanks
Josef

Displays Info when octoprint is offline

I cant get the module to turn off when the printer is online. I have tried setting the show offiline to both true and false in the Config.js file and the .js file of the module.

Videostream changegable size and position

As I don't have enough space above the octo mirror module it would be great to have an option to select wether the streaming window should be placed above, under, left or right of the normal informations. Also it would be nice to select the size of the streaming area.

Multiple instances not supported

I have 2 printers configured as 2 module instances in magic mirror. The information only displays in the first module. The information of both printers cycles through. So for a second it shows printer 1, then it updates and shows printer 2. It basically cycles between the 2 printers. I would like to be able to configure more than one printer to have a kind of dashboard where I can see everything at one glance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.