The clock
module is one of the default modules of the MagicMirror.
This module displays the current date and time. The information will be updated realtime.
For configuration options, please check the MagicMirror² documentation.
cd modules
git clone https://github.com/declan-fitzpatrick/clock2.git
{
module: "clock2",
position: "middle_center",
config: {
displayType: "analog",
analogFace: "face-003",
analogSize: "600px",
displaySeconds: "true",
timeFormat: "24",
showPeriod: "false",
analogShowDate: "false",
clockBold: "true",
analogPlacement: "top"
}
},
I have duplicated this clock module so that I can create two instances (an analogue and digital) of it on my Magic mirror some context, to use with MMM-Pages. Changes compared to default clock are:
clock.js
renamed toclock2.js
.- renamed the module registration in
clock2.js
toclock2
.
...
Module.register("clock2", {
...
});
...
Did not overwrite clock_styles.css
or its contents, as I am happy that both of my modules share the same css, I just need two copies.