A MagicMirror² module that shows school lunch menus in Sweden from www.skolmaten.se.
- Clone repo:
cd ~/MagicMirror/modules
git clone https://github.com/retroflex/MMM-Skolmaten
- Install dependencies:
cd MMM-Skolmaten
npm install
- Add the module to the
~/MagicMirror/config/config.js
, example:
{
module: 'MMM-Skolmaten',
header: 'Furuhällskolan',
position: 'bottom_right',
config: {
url: 'https://skolmaten.se/furuhallskolan/rss/'
}
},
Using the https://skolmaten.se/furuhallskolan/rss/ URL will show lunch for the next seven days (including today).
You can choose how many days should be shown by using another URL, although I haven't tested that. More info here: https://skolmaten.se/about/rss/furuhallskolan/
Go to the module’s folder inside MagicMirror modules folder and pull the latest version from GitHub and install:
cd ~/MagicMirror/modules/MMM-Skolmaten
git pull
npm install
This module simply shows an RSS feed, with some limitations (which are not a problem with skolmaten.se):
- Hard coded to update RSS feed once an hour.
- Always shows all entries in the RSS feed.
- Hard coded in Swedish.
I still wanted to keep this as a separate module instead of a generic RSS module, too keep things simple and allow for future specific features.
Handle invalid URL's.