/MMM-DigClock

A modified version of the default clock showing only the digital part. I wanted to be able to place it on another page of my MM2

Primary LanguageJavaScriptMIT LicenseMIT

Module: MMM-DigClock

The clock module is one of the default modules of the MagicMirror. This module is a variation only showing the Digital Clock. I made this because I wanted to be able to use the 'clock' module on separate pages of my Mirror. This module displays the current date, week, and time. The information will be updated realtime.

Screenshots

ScreenShot ScreenShot ScreenShot ScreenShot

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
	{
		module: "MMM-DigClock",
		position: "top_left",	// This can be any of the regions.
		config: {
			showDate: true,
			showWeek: false,
			showSeconds: false,
			dateFormat: "ddd, ll",
			timezone: "America/Chicago"
		}
	},
]

Configuration options

The following properties can be configured:

Option Description
showDate Turn off or on the Date section.

Possible values: true or false
Default value: true
showWeek Turn off or on the Week section.

Possible values: true or false
Default value: false
showSeconds Turn off or on the Seconds.

Possible values: true or false
Default value: false
dateFormat Configure the date format as you like.

Possible values: Docs
Default value: "dddd, LL"
timezone Specific a timezone to show clock.

Possible examples values: "America/New_York", "America/Santiago", Etc/GMT+10
Default value: "America/Chicago". See more informations about configuration value here