Skip to content
display Timetable for school or work
JavaScript CSS
Branch: master
Clone or download
Latest commit c0fc836 Aug 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Aug 6, 2018
MMM-Timetable.css add example Aug 7, 2018
MMM-Timetable.js fixdisplayEndTimeBug Aug 5, 2019
README.md Update README.md Sep 2, 2018
test.csv change to read comma separated file Sep 2, 2018
ttable_1.png add example Aug 7, 2018
ttable_2.png add example Aug 7, 2018

README.md

MMM-Timetable

Display timetable for school or work.

Screenshot

screenshot

screenshot

Installation

  1. Install Module
cd ~/MagicMirror/modules
git clone https://github.com/eouia/MMM-Timetable.git
  1. Configuration
{
  //disabled:true,
  module: "MMM-Timetable",
  position: "top_right",
  config: {
    timeFormat: "hh:mm A",
    height: "800px",
    width: "150px",
    mode: "5days", // "today", "5days", "7days"
    refreshInterval: 1000*60,
    displayEndTime:true, //whether display endTime on timeline or not.
    schedules: [ //array of schedules
      {
        title: "Slytherin 2nd Year",
        file: null, // or "test.csv" - comma separated text file. (see `test.csv`)
        schedule: [
          // [weekday, starttime(24h), endtime(24h), title, subtitle, backgroundColor(optional)]
          // weekday : 1 for Monday, 2 for Tuesday, ... 7 for Sunday
          [1, "0730", "0900", "Breakfast", "", "rgba(0,255,0, 0.5)"],
          [2, "0730", "0900", "Breakfast", "", "rgba(0,255,0, 0.5)"],
          [3, "0730", "0900", "Breakfast", "", "rgba(0,255,0, 0.5)"],
          [4, "0730", "0900", "Breakfast", "", "rgba(0,255,0, 0.5)"],
          [5, "0730", "0900", "Breakfast", "", "rgba(0,255,0, 0.5)"],
          [1, "1200", "1300", "Lunch", "", "rgba(0,255,0, 0.5)"],
          [2, "1200", "1300", "Lunch", "", "rgba(0,255,0, 0.5)"],
          [3, "1200", "1300", "Lunch", "", "rgba(0,255,0, 0.5)"],
          [4, "1200", "1300", "Lunch", "", "rgba(0,255,0, 0.5)"],
          [5, "1200", "1300", "Lunch", "", "rgba(0,255,0, 0.5)"],
          [1, "1800", "1900", "Dinner", "", "rgba(0,255,0, 0.5)"],
          [2, "1800", "1900", "Dinner", "", "rgba(0,255,0, 0.5)"],
          [3, "1800", "1900", "Dinner", "", "rgba(0,255,0, 0.5)"],
          [4, "1800", "1900", "Dinner", "", "rgba(0,255,0, 0.5)"],
          [5, "1800", "1900", "Dinner", "", "rgba(0,255,0, 0.5)"],
          [1, "1100", "1145", "Transfiguration", "w/Ravenclaw"],
          [1, "1315", "1400", "Charms", "w/Hufflepuff"],
          [2, "0915", "1045", "Transfiguration", "w/Ravenclaw"],
          [2, "1500", "1630", "Herbology", "w/Ravenclaw"],
          [3, "0915", "1045", "Defense Against The Dark Art", "w/Gryffindor", "rgba(255,0,0,0.5)"],
          [3, "1100", "1145", "Charms", "w/Hufflepuff"],
          [3, "1315", "1445", "History of Magic", "w/Hufflepuff"],
          [3, "1500", "1630", "Potions", "w/Gryffindor"],
          [4, "1100", "1145", "Defense Against The Dark Art", "w/Gryffindor"],
          [5, "1315", "1400", "Potions", "w/Gryffindor"],
        ]
      },
      {
        title: "Slytherin 2nd Year (only classes)",
        schedule: [
          [1, "1100", "1145", "Transfiguration", "w/Ravenclaw"],
          [1, "1315", "1400", "Charms", "w/Hufflepuff"],
          [2, "0915", "1045", "Transfiguration", "w/Ravenclaw"],
          [2, "1500", "1630", "Herbology", "w/Ravenclaw"],
          [3, "0915", "1045", "Defense Against The Dark Art", "w/Gryffindor", "rgba(255,0,0,0.5)"],
          [3, "1100", "1145", "Charms", "w/Hufflepuff"],
          [3, "1315", "1445", "History of Magic", "w/Hufflepuff"],
          [3, "1500", "1630", "Potions", "w/Gryffindor"],
          [4, "1100", "1145", "Defense Against The Dark Art", "w/Gryffindor"],
          [5, "1315", "1400", "Potions", "w/Gryffindor"],
        ]
      },
    ]
  }
},
  1. Warning. When you use CSV(comma separated), check time format. use "0900" instead "900".
You can’t perform that action at this time.