Skip to content

tjmnmk/MMM-parrot-or-gif

Repository files navigation

MMM-parrot-or-gif

MagicMirror² module that displays a parrot GIF or any other GIF on the screen. The GIF can be shown continuously or at specific intervals.

Screenshots

Here are some screenshots of the module in action:

Screenshot 1

Installation

  1. Clone this repository into the modules folder of your MagicMirror directory:

    git clone https://github.com/yourusername/MMM-parrot-or-gif.git
  2. Navigate to the module folder:

    cd MMM-parrot-or-gif
  3. Install the dependencies:

    npm install

Configuration

Add the following configuration to your config.js file of MagicMirror:

{
    module: "MMM-parrot-or-gif",
    position: "lower_third", // or any other position of your choice
    config: {
        gif: "kuchtik.gif", // name of the GIF file in the gifs folder
        animationSpeed: 3000,
        alwaysOnTheScreen: false,
        showGifEvery: 60 * 3 * 1000, // 3 minutes
        showGifFor: 20000, // 20 seconds
        scaleGif: 0.25,
    }
},

Configuration Options

Option Description Default Value
gif Name of the GIF file in the gifs folder "kuchtik.gif"
animationSpeed Speed of the animation in milliseconds 3000
alwaysOnTheScreen Whether the GIF is always on the screen false
showGifEvery Interval in milliseconds to show the GIF 180000 (3 minutes)
showGifFor Duration in milliseconds to show the GIF 20000 (20 seconds)
scaleGif Scale of the GIF 0.25

Note

If the parrot GIF does not appear, please wait for the interval specified by showGifEvery or set alwaysOnTheScreen to true to have the GIF always displayed.

License

You can choose between the Beerware license, as defined in LICENSE_BEERWARE, and the Unlicense, as defined in LICENSE. (The Unlicense was added for compatibility with MagicMirror-3rd-Party-Modules).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published