Giter Club home page Giter Club logo

mmm-shopifyorders's Introduction

MMM-ShopifyOrders

This is a module for the MagicMirror².

For Shopify store owners!

Display your open order count on your MagicMirror. Set an urgency threshold so the text glows if orders are piling up.

A count of "25 Orders" glowing brightly, with urgency, over a black background.

Supports internationalization of "Orders" via translation json files.

Setting up Shopify

This is a big involved, so here is a detailed tutorial:

https://help.shopify.com/en/manual/apps/app-types/custom-apps

You just need to make a personal dev app, name it whatever you want, add the scope read_orders, and install it to get your Admin API Access Token.

Using the module

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

var config = {
  modules: [
    {
      module: 'MMM-ShopifyOrders',
      config: {
        // See below for configurable options
        updateInterval: 60000,
        urgentLevel: 10,
        shopify: {
          accessToken: 'your secret developer app admin api access token',
          storeUrl: 'https://your-dev-store.myshopify.com',
          orderFilter: 'unfulfilled', // any, fulfilled, unfulfilled, etc
        }
      }
    }
  ]
}

Configuration options

Option Type Default Necessity Description
updateInterval int(milliseconds) 60000ms (1 minute) Optional How often to update the order count (by hitting the Shopify API).
urgentLevel int (count) 10 Optional If there are more orders than this, the count will glow with ugency.
shopify:accessToken string Required Shopify developer app Admin API Access Token.
shopify:storeUrl url Required Your Shopify dev store url. The myshopify.com one.
shopify:orderFilter string 'unfulfilled' Optional Which order statuses to count: any, unfulfilled, fulfilled

This module was bootstrapped using https://github.com/roramirez/MagicMirror-Module-Template

mmm-shopifyorders's People

Contributors

fith avatar

Watchers

 avatar

mmm-shopifyorders's Issues

need to install modules before use

Hi, this is awesome but I encountered an error when installing this which was easily fixed just by running 'npm install' within the module home. Can you add this to the read me?

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.