Skip to content

A Magic Mirror 2 module to display lunch menus from Mashie.com

License

Notifications You must be signed in to change notification settings

Alvinger/MMM-Mashie-Skolmat

Repository files navigation

MMM-Mashie-Skolmat

A MagicMirror² module that shows school lunch menus from Mashie.com (mpi.mashie.com/public/app).

Installation

  1. Clone repo:
	cd MagicMirror/modules/
	git clone https://github.com/Alvinger/MMM-Mashie-Skolmat
  1. Install dependencies:
	cd MMM-Mashie-Skolmat/
	npm install
  1. Add the module to the ../MagicMirror/config/config.js, example:
                {
                        module: "MMM-Mashie-Skolmat",
                        header: "Matsedel Bromma",
                        position: "bottom_left",
                        config: {
                                days: 1,
                                url: "https://mpi.mashie.com/public/icalendar/.....ics",
				cutoffHour: 23
                        }
                },

Configuration

By default the module will show lunch menu for today (or next day if no entry for today or after cutoff).

You can choose how the many days should be shown by setting the parameter "days" to the number of days to be shown. If "days" are set to 1 and no menu item exists for today, the module will try to show tomorrow's menu. You can change when the modules starts displaying next day's menu by setting cutoffHour.

Getting the correct URL

Go to the Mashie web app (https://mpi.mashie.com/public/app) and search for your school.

Note: This module can also be used for "Köket by Sodexo" menus as they use Mashie but with a different URL. The "Köket by Sodexo" URL is https://sodexo.mashie.com/public/app.

Click on the school to see the current menu.

Right-click on "Calendar" in the left hand menu and copy the hyperlink.

Replace "webcal" with "https" and use the result as the URL in the configuration.

About

A Magic Mirror 2 module to display lunch menus from Mashie.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published