A MagicMirror² module that shows school lunch menus in Sweden from skolmaten.se.
Clone or download
retroflex Updated dependency version
Changed rss-parser version to 2.12.0 to fix exception.
Latest commit fc4e42d Jan 25, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css Added css file Nov 24, 2017
LICENSE Initial commit Nov 23, 2017
MMM-Skolmaten.js Added js files Nov 24, 2017
README.md Update README.md Nov 27, 2017
node_helper.js Added js files Nov 24, 2017
package.json Updated dependency version Jan 25, 2018

README.md

MMM-Skolmaten

A MagicMirror² module that shows school lunch menus in Sweden from www.skolmaten.se.

image

Installation

  1. Clone repo:
	cd MagicMirror/modules/
	git clone https://github.com/retroflex/MMM-Skolmaten
  1. Install dependencies:
	cd MMM-Skolmaten/
	npm install
  1. 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/'
			}
		},

Configuration

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/

Details

This module simply shows an RSS feed, with some limitations (which are not a problem with skolmaten.se):

  1. Hard coded to update RSS feed once an hour.
  2. Always shows all entries in the RSS feed.
  3. 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.

To Do

Handle invalid URL's.