Git Product home page Git Product logo

mmm-school-schedule's Introduction

Module for MagicMirror: School schedule

The MMM-school-schedule module shows school schedule.

Screenshot

  • School schedule

School schedule screenshot

Using the module

  1. Clone this repository under MagicMirror/modules folder
  2. Run npm install in MagicMirror/modules/MMM-school-schedule folder
  3. Add to the modules array in the MagicMirror/config/config.js file:
modules: [
	{
		module: "MMM-school-schedule",
		position: "top_left",
		header: "School schedule",
		config: {
			schedules: [{
				times: [ "08:30 - 09:15", "09:15 - 10:00", "10:30 - 12:15", "12:30 - 13:15"],
				days: {
					mo: [ "A", "X", "B", "B" ],
					tu: [ "X", "X", "X", "" ],
					we: [ "", "X", "X", "A" ],
					th: [ "", "X", "X", "B" ],
					fr: [ "A", "X", "X", "X" ]
				},
				valid: { // optional
					from: '2023-04-18 08:00:00', // valid from
					to: '2023-05-18 16:00:00' // valid to
				}
			}],
			updateInterval: 1 * 60 * 60 * 1000 // every hour
		}
	}]

Configuration options

The following properties can be configured:

Option Description
schedules Schedules Array of Schedule Object(s), contains times, days keys and optionally also valid Object with optional from and/or to keys.
Schedule Object:
timesTimes String array
daysDays keys and String array of lessons. Days can be mo, tu, we , th, fr, sa or su. And value is Array of lessons (same length. than times Array)
validWhen schedule is valid. Object contains from or to keys or both from and to keys.
fromOptional start time when schelude is valid, format yyyy-mm-dd hh:mm:ss
toOptional end time when schelude is valid, format yyyy-mm-dd hh:mm:ss
updateInterval Update interval in milliseconds, default 1800000

mmm-school-schedule's People

Contributors

kuosman avatar

Watchers

 avatar

mmm-school-schedule's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.