Skip to content

declan-fitzpatrick/clock2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Module: Clock

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.

Installation

cd modules
git clone https://github.com/declan-fitzpatrick/clock2.git

Usage

    {
        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"
        }
    },

Duplication of the clock module

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 to clock2.js.
  • renamed the module registration in clock2.js to clock2.
...
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.

About

A duplication of https://github.com/MichMich/MagicMirror/tree/master/modules/default/clock, so that I can run/reference two instances of the clock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published