MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    WeatherBackground using AI generated images

    Scheduled Pinned Locked Moved Utilities
    4 Posts 4 Posters 303 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      ajocham
      last edited by

      Hey

      The “old” weatherBackground did not always work for me, and given the new possibilities with AI I created a new module that can generate new background images on the fly using AI.
      You can add additional parameters to modify it. Parameters are based on time, month and general parameters…
      See code here: https://github.com/AJOCHAM/MMM-AIWallpaper

      Any feedback?

      B C 2 Replies Last reply Reply Quote 1
      • B Offline
        brandao.rafael @ajocham
        last edited by

        @ajocham This is interesting, but I think the repo would profit a lot from having some screenshots of the module running

        1 Reply Last reply Reply Quote 0
        • C Offline
          CuddlyCow @ajocham
          last edited by

          @ajocham Great idea! I have tried the module on my MagicMirror and it works, somewhat… A few thoughts:

          Public keys seem to be deprecated in pollinations.ai and you can no longer create them on their website. The module seems to work fine with a secret key though, which I created and used. Perhaps you could change that in the README to prevent confusion for future users.

          The module does generate and download images. Unfortunately, in my case the image does not appear properly as a background image but modules will appear on top of the background with a black background. In my main.css I have defined a 60px gap between the edges of the screen and my modules. Only there the image appears…

          Bildschirmfoto vom 2026-04-27 17-37-12.png

          This is what my module configuration looks like:

          {
            module: "MMM-AIWallpaper",
            position: "fullscreen_below",
            config: {
              weatherApiKey:    "*****************************",
              pollinationsKey:  "*****************************",   // pk_...
              city:             "*****************************",
              mediaType:        "image",                   // "image" or "video"
              width:            600,
              height:           1024,
              imagemodel:       "flux",
              videomodel:       "nova-reel",
              videoDuration:    5,
              videoAspectRatio: "9:16",
              videoAudio:       false,
              muteVideo:        true,
              loopVideo:        true,
              enhance:          true,
              styles: [
                "impressionist painting, oil on canvas, artistic, moody, expressive brushstrokes",
                "Comic style, atmospheric, science fiction elements, modern european",
                "anime background art, studio ghibli style, detailed, beautiful",
                "photorealistic landscape, ultra detailed, 8k"
              ],
              updateInterval:   60 * 60 * 1000,            // 1 hour in ms
              debug:            false,
            }
          },
          

          Any ideas?

          W 1 Reply Last reply Reply Quote 0
          • W Online
            Woz @CuddlyCow
            last edited by

            @CuddlyCow @ajocham

            I am still kind of new to this, but I am seeing a similar problem. I was trying to create a page with just weather related modules. Currrent, forecast, rain map and thought that adding this as a background would work, but I get the black box as well. So, I removed one module at a time until the only one I had left was the background module and still get the black box. I turned on Debug and it said it was ok.

            65f6bb6f-0036-490d-b7ec-3d04f45596c3-image.jpeg

            The config is essentially the example on, with sk_ instead of pk_ as mentioned and changed the city.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy