MMM-FlagRise is a MagicMirror2 module that displays a flag based on specific rules for flag raising and lowering. The module fetches sunrise and sunset times for a given city using an external API and shows the flag image during daytime based on predefined regulations. Change the flag image in the module folder to fit your nationality.
-
Clone this repository into the
modules
directory of your MagicMirror2 installation:git clone https://github.com/ItsMeBrille/MMM-FlagRise.git
-
Configure the module by adding it to your
config/config.js
file:{ module: "MMM-FlagRise", position: "top_right", config: { city: "Oslo", // Your location } }
-
(Optional) Customize the appearance by modifying the
MMM-FlagRise.css
file. -
Start your MagicMirror2 application.
city
: The city for which to fetch sunrise and sunset times.
MIT License. See LICENSE for details.