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.
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"
}
},
]
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 |