Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

OscarVsp/MMM-VUB-Resto

Repository files navigation

MMM-VUB-Resto

DOES NOT WORK ANYMORE DUE TO CHANGES ON THE VUB WEBSITE

A Module for MagicMirror designed to display the menu of the restaurant at the Vrije Universiteit Brussel.

The data of the menu of the week need to be in a json file on the directory of the module. To get the data, as there is no API, the scrapper made by m1dnight (https://github.com/m1dnight/vub-resto-scraper) is used. If a new version of it need to be used, simply change the file on the scraper folder and check if the command need to be change on the node_helper.js file, line 35.

Sample

alt text

Module installation

Clone the repository into MagicMirror/modules directory

cd ~/MagicMirror/modules
git clone https://github.com/OscarVsp/MMM-VUB-Resto.git

Install the dependencies

cd /MMM-VUB-Resto
npm install

Configuration

Basic Example:

{
  module: 'MMM-VUB-Resto',
  position: 'bottom_left',
},

Hide some meal:

{
  module: 'MMM-VUB-Resto',
  position: 'bottom_left',
  config: {
    hide: ["Veggie"]
  }
},

Parameters

Option Type Description
updateInterval Optional The interval of time for the update (in millisecond).
Type: int
Default: 60*60*1000 ==> 1 hour
headerIcon Optional The icon to use for the header. Type: Any FontAwesome Icon.
Default: "fa-utensils"
hides Optional The list of the menu name to hide.
Type: list
possible elements: Soup, Menu 1, Menu 2, Fish, Veggie, Pasta and Wok
Default: [] ==> none

Attribution

Based on MMM-Json from Daniel Habenicht https://github.com/DanielHabenicht/MMM-json for the part that display the json content.

Use the scraper made by m1dnight (https://github.com/m1dnight/vub-resto-scraper) to get the data.