shbatm / octomirror-module Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dongerzonie/octomirror-module
Magic Mirror Module that can interact with an Octoprint instance
License: MIT License
This project forked from dongerzonie/octomirror-module
Magic Mirror Module that can interact with an Octoprint instance
License: MIT License
Module is not getting any info from OctoPi 0.18, only showing NA on all stats
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
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?
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.
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.
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 ?
It also appears to cause a soft-reset of the web UI when it makes a request now
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
Hello,
Would it be possible to auto hide the module when the printer is Offline ?
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: "[**************************]"
}
},
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.
It would be great if this module supported multiple instances, so that those of us with more than one printer can display multiple statuses.
Helo mate
interactive , won't hide the drop downs menu.
{
module: "octomirror-module",
position: "top_right",
config: {
url: ".............",
api_key: "[.......]",
interactive: false,
}
},
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)
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];
}
$("#opBedTemp")[0].innerHTML = (temps.bed.actual) ? temps.bed.actual.round10(1) + "°C" : "N/A";
}
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 }
I have it correctly set up within the config of the module, but it will not make the buttons disappear.
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.
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
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.
A little related to this, my stream us upside down because that was the best way to mount my webcam. Octoprint has a way to flip or rotate the webcam stream. It would be nice to do this also.as it is the right way on my octoprin ui screen
Originally posted by @CrazyBonze in #14 (comment)
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.
Need to be able to automatically hide the camera stream when offline.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.