A MagicMirror² module that shows school lunch menus in Sweden from Köket by Sodexo (sodexo.mashie.com/public/app).
Köket by Sodexo uses the Mashie app. Mashie provides lunch menus for many suppliers. Therefore this module is deprecated and replaced by MMM-Mashie-Skolmat (https://github.com/Alvinger/MMM-Mashie-Skolmat). It is only a name change, the functionality and code is exactly the same but further developments will only be done on MMM-Mashie-Skolmat.
To migrate to MMM-Mashie-Skolmat, install the new module and change "MMM-Koket-by-Sodexo" to "MMM-Mashie-Skolmat" in the config.js file.
- Clone repo:
cd MagicMirror/modules/
git clone https://github.com/Alvinger/MMM-Koket-by-Sodexo
- Install dependencies:
cd MMM-Koket-by-Sodexo/
npm install
- Add the module to the ../MagicMirror/config/config.js, example:
{
module: 'MMM-Koket-by-Sodexo',
header: 'Norra real',
position: 'bottom_right',
config: {
days: 1,
url: 'https://sodexo.mashie.com:443/public/icalendar/St%20Eriks%20gymnasium/6639b607.ics'
}
},
By default the module will show lunch menu for today (or next day if no entry for today).
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.
Go to the Köket by Sodexo web app (https://sodexo.mashie.com/public/app) and search for your school. 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.