GithubHelp home page GithubHelp logo

mmm-nutrislice-menu's Introduction

MMM-nutrislice-menu

This is a module for the MagicMirror².

This module is used to display the current weeks menu for a nenus that are hosted by nutrislice (www.nutrislice.com). It will display as a column for each day of the week with the menu items name underneath.

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-nutrislice-menu',
            position:	'top_left',
            header: 'School Menu',
            config: {
		        nutrisliceEndpoint: 'ENTER YOUR MENU ENDPOINT HERE',
		        itemLimit: 0,
		        showPast: true
                daysToShow: 5
                updateInterval: 3600000,
		        retryDelay: 60000,
            }
        }
    ]
}

Configuration options

Option Description
nutrisliceEndpoint Required Your menu endpoint

Type: string
example "https://pleasantvalley.nutrislice.com/menu/elementary/lunch/" or "https://polk-fl.nutrislice.com/m/davenport-elementary/lunch/"
itemLimit Optional Max number of items to show on a single day (0 = unlimited)

Type: int
Default 0
showPast Optional Should Days in the Past show (if this is false then come Tuesday you wont see Monday anymore)

Type: booleen
Default true
daysToShow Optional Max number of days to show

Type: int
Default 5
updateInterval Optional How often the module will call the API for new data

Type: int(milliseconds)
Default 3600000 milliseconds (1 hour)
retryDelay Optional How long to wait after a failed call to try again

Type: int(milliseconds)
Default 60000 milliseconds (1 minute)

mmm-nutrislice-menu's People

Contributors

dependabot[bot] avatar kblankenship1989 avatar maleriepace avatar sklinger519 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.