Skip to content

Bird of the Day module for MagicMirror that displays a random image of a bird every day

License

Notifications You must be signed in to change notification settings

cgillinger/MMM-BirdOfTheDay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-BirdOfTheDay

A MagicMirror² module to display a random bird with an image and optional information such as its name, region, scientific name, and conservation status. Powered by the Nuthatch API by Last Elm Software.

Layout Options

Text Below Image (Default)

Text Below Layout

Text on Left

Text Left Layout

Text on Right

Text Right Layout

Features

  • Displays a random bird with an image
  • Configurable rotation: Hourly, Daily, or Weekly
  • Optional details: Name, scientific name, region, and conservation status
  • Flexible layout options: text below, left, or right of image
  • Customizable styles for images and text
  • Smart history tracking to prevent duplicate birds
  • Configurable title formatting

Powered By

Bird of the Day uses the Nuthatch API by Last Elm Software. A big thanks to them for providing this free resource! 🌟

Installation

  1. Navigate to your MagicMirror's modules directory:
    cd ~/MagicMirror/modules
  2. Clone this repository:
    git clone https://github.com/cgillinger/MMM-BirdOfTheDay

Configuration

  1. Get Your Free API Key:

  2. Add the Module to config.js: Edit your MagicMirror/config/config.js file and add the following configuration:

    {
        module: "MMM-BirdOfTheDay",
        position: "top_center", // Choose your preferred position
        config: {
            apiKey: "YOUR_API_KEY_HERE", // Replace with your Nuthatch API key
            rotation: "Daily", // Options: "Hourly", "Daily", "Weekly"
            imageWidth: "400px", // Customize the image size
            fontSize: "medium", // Font size for text
            textPosition: "below", // Options: "below", "left", "right"
            showTitleLine: true, // Show/hide line under title
            maxHistory: 50, // Number of birds to track before repeating
            showName: true, // Display the bird's common name
            showSciName: true, // Show the scientific name
            showRegion: true, // Display the region(s)
            showStatus: true, // Show conservation status
        },
    },

Configuration Options

Option Description Default Required
apiKey The API key for the Nuthatch API null Yes
rotation How often to update (Hourly, Daily, Weekly) "Daily" No
imageWidth Width of the bird image "400px" No
fontSize Font size for the text (small, medium, large) "medium" No
textPosition Position of text relative to image "below" No
showTitleLine Show horizontal line under the title true No
maxHistory Number of birds to track before allowing repeats 50 No
showName Whether to display the bird's common name true No
showSciName Whether to display the bird's scientific name true No
showRegion Whether to display the region(s) true No
showStatus Whether to display the conservation status true No

Layout Examples

Text Below (Default)

{
    config: {
        textPosition: "below",
        // ... other config options
    }
}

Text on Left

{
    config: {
        textPosition: "left",
        // ... other config options
    }
}

Text on Right

{
    config: {
        textPosition: "right",
        // ... other config options
    }
}

Customization

You can further customize the styles by editing the MMM-BirdOfTheDay.css file, located in the module's folder.

License

This project is licensed under the MIT License.


Credits

This module uses the Nuthatch API by Last Elm Software to fetch bird data. All rights for the bird data and images belong to the respective contributors.


Happy birdwatching! 🐦

About

Bird of the Day module for MagicMirror that displays a random image of a bird every day

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published