MagicMirror² module that displays a parrot GIF or any other GIF on the screen. The GIF can be shown continuously or at specific intervals.
Here are some screenshots of the module in action:
-
Clone this repository into the
modules
folder of your MagicMirror directory:git clone https://github.com/yourusername/MMM-parrot-or-gif.git
-
Navigate to the module folder:
cd MMM-parrot-or-gif
-
Install the dependencies:
npm install
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,
}
},
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 |
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.
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).