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 5.3k 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.
    • G Offline
      grena Module Developer
      last edited by

      Hello everyone,

      To complete my first Magic Mirror Module, MMM-APOD, I created another Module, MMM-SolarPicture, it displays the last Solar Dynamics Observatory (SDO) picture :

      MMM-SolarPicture ScreenShots

      I hope you like the module.
      Please inform me of any problems.

      Grena

      Mykle1M 1 Reply Last reply Reply Quote 4
      • qu1queQ Offline
        qu1que Project Sponsor
        last edited by qu1que

        Very nice module!! I just tested it and it looks great next to the MMM-Lunartic module.

        0_1577009374696_IMG_20191222_110145_8.jpg

        I wonder if it will be possible to show all the images from the SDO website one after the other, setting the time between one and another, so you can see them all consecutively.

        Great work. Thanks for sharing!

        Greetings, Quique.

        Mykle1M G 2 Replies Last reply Reply Quote 1
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @grena
          last edited by

          @grena said in MMM-SolarPicture:

          I hope you like the module.

          Nice work! I wish I thought of it first. ;-)

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 1
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @qu1que
            last edited by

            @qu1que said in MMM-SolarPicture:

            looks great next to the MMM-Lunartic module.

            :thumbsup:

            Create a working config
            How to add modules

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

              @qu1que said in MMM-SolarPicture:

              I wonder if it will be possible to show all the images from the SDO website one after the other, setting the time between one and another, so you can see them all consecutively.

              This functionality was simple to integrate into the module… It’s now possible to activate an automatic slideshow of all images !

              To do this, simply add the transitionInterval option in your configuration with display time of one image before moving to the next in milliseconds ;)

              To update the module:

              cd ~/MagicMirror/modules/MMM-SolarPicture
              git pull
              

              Happy Christmas :christmas_tree:

              qu1queQ 1 Reply Last reply Reply Quote 2
              • qu1queQ Offline
                qu1que Project Sponsor @grena
                last edited by

                @grena

                Cool!! It works like a charm! Thanks for your work.

                1 Reply Last reply Reply Quote 0
                • 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 Do not disturb
                    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.
                              MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                              Running Trixie and the latest MM version.

                              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

                                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