Git Product home page Git Product logo

octomirror-module's Introduction

Module: Display & Control OctoPrint Instance (Octomirror-module)

This is a module for MagicMirror that will interact with an Octoprint Instance.

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

If you have any suggest, please let me know by an issue.

Screenshot

Requirements

  • Raspberry Pi running an instance of Magic Mirror
  • Another Raspberry Pi running an instance of OctoPi (or other OctoPrint instance)
  • IP addresses for both (static IP preferred)

Installation

cd ~/MagicMirror/modules
git clone https://github.com/shbatm/octomirror-module.git
cd octomirror-module
npm install
# A version of OctoPrint's JS Client Library is included by default, but it's
# recommended to replace it with your server's version.
# Replace 'http://octopi.local' with your OctoPrint's URL/IP
wget http://octopi.local/static/webassets/packed_client.js -O packed_client.js

Using the Module

To use this module, add it to the modules array in the config/config.js file:

    {
        module: "octomirror-module",
        position: "middle_center",
        config: {
            url: "http://octopi.local",
            api_key: "[Octoprint API Key]"
        }
    },

Configuration Options:

Option Description
url Required - The url or IP address for the OctoPrint Instance.
api_key Required Your API Key from the OctoPrint service to be used. You can find this in Octoprint's Options>Features>API, while you're there also enable Cross-Origin-Resorce-Sharing.
printerName Optional Add a name to show on top of the module;
showStream Optional Whether or not to show the camera stream. By default a camera stream is shown, to disable, set to false;
streamUrl Optional Set a custom url for accessing the MJPEG camera stream. By default it uses: url:8080/?action=stream.
showTemps Optional Whether or not so show temperature info
Default: true
showDetailsWhenOffline Optional Whether or not to hide the printer details when the printer is offline (file name, time, temps)
interactive Optional Allow interactive control of the printer: choose files to print and upload new files.
Default: true. Set to false to hide the drop downs, if you don't use the Mirror to control anything.
debugMode Optional Prints all messages received from the printer socket to the console log, for debugging only and developing more features.

Development and Feature Requests

  • If you have any feature requests or find any bugs, please post about it on the MagicMirror Forum or open an Issue on this repo.
  • This module exposes the full client API for an OctoPrint instance and only displays the info that is useful to me at the moment, if there is something else you would like added, please let me know. The API is here:

octomirror-module's People

Contributors

dongerzonie avatar jopyth avatar mwaldegg avatar nerradia avatar roramirez avatar shbatm avatar

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.