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.

    MMM-SolarPicture

    Scheduled Pinned Locked Moved Entertainment
    14 Posts 7 Posters 3.8k Views 8 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.
    • B Offline
      bugphunk
      last edited by

      Hello everyone!

      First of all: Thanks for the module! I like it a lot.

      I tried to move the picture around by adding a new position in my custom.css but it is not moving at all. The MMM.MoonPhase module moves without a problem, but these paramaters don´t work for the sun (because of the missing *.css file, I guess). I´m no expert at all, therefore a little help would be highly appreciated!

      My goal is to push the sun “outside” the screen so that only the upper left corner of the sun is on the bottom right side of the screen.

      Thanks in advance and kind regards,
      Marco

      S G 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @bugphunk
        last edited by

        @bugphunk i do not know, but use the developer window elements tab to discover and set css styles to determine what needs to go in custom.css

        see the second link in my signature below

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • G Offline
          grena Module Developer @bugphunk
          last edited by

          Hello @bugphunk,

          I’m not sure I fully understand what you want to do… But to move a module, use the position option. An illustration of the different zones is available here

          If you do not get the desired result, you must look for the custom CSS code!

          The module displays a simple img in a div… The absence of a CSS file in MMM-SolarPicture should simplify things because everything is managed by MM!

          Grena

          1 Reply Last reply Reply Quote 0
          • B Offline
            bugphunk
            last edited by

            Thanks for your support. The developer window elements tab might do the trick.

            1 Reply Last reply Reply Quote 0
            • B Offline
              bugphunk
              last edited by

              1749311378245.jpg

              Got it! Thanks again!

              R plainbrokeP 2 Replies Last reply Reply Quote 0
              • R Offline
                rkorell @bugphunk
                last edited by

                @bugphunk cool!
                It would be nice if you post here, how you did this get done…

                Regards,
                Ralf

                1 Reply Last reply Reply Quote 0
                • plainbrokeP Offline
                  plainbroke @bugphunk
                  last edited by

                  @bugphunk
                  Ditto on how you got to this point that looks really nice.

                  Slow learner. But trying anyways.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bugphunk
                    last edited by

                    Hi folks, I’m no expert at all and it was a lot of trial and error. I used the lower_third position because there aren’t any other modules in that position which were also moving around the screen when changing the position of MMM-Solar-Picture. Also the NASA-watermark is still there in the upper left corner of the shown solar picture. It is just hidden behind the Earth module, so that worked out for me. My config.js on a 1080p screen

                    {
                            module: "MMM-SolarPicture", //IGNORED
                            position: "lower_third",
                            config: {
                                    imageType: 'AIA 304',
                                    updateInterval: 1 * 60 * 60 * 1000, //(1 hour)
                                    maxMediaWidth: 1200,  
                                    maxMediaHeight: 1200 
                                        }
                            },
                    

                    I added these lines to my custom.css

                    .MMM-SolarPicture img {
                    position: absolute;
                    top: +100px;     
                    left: +1100px;   
                    opacity: 1 !important;
                    }
                    

                    Good luck with moving around your sun and kind regards

                    1 Reply Last reply Reply Quote 1
                    • 1
                    • 2
                    • 2 / 2
                    • 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