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.
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,
}
}
]
}
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) |