Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

    MM-orrery - Show the planets and their current relation to the Sun

    Education
    3
    11
    5126
    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.
    • H
      hoyski last edited by hoyski

      Hello -

      I created an orrery module. The module shows the planets and their current relation to the Sun. (And in the interest of full disclosure I should say that I didn’t know the word orrery before I started on this little adventure. :- )

      You can clone the module from here:

      Here’s how it looks on my mirror:

      0_1487129425737_ScreenShot.png

      This is my first module, and first foray into JavaScript for that matter, so any and all comments or suggestions on the module itself or the code behind it would be appreciated.

      Thanks,
      Dave

      Mykle1 H 2 Replies Last reply Reply Quote 3
      • Mykle1
        Mykle1 Project Sponsor Module Developer @hoyski last edited by

        @hoyski said in MM-orrery - Show the planets and their current relation to the Sun:

        This is my first module, and first foray into JavaScript for that matter, so any and all comments or suggestions on the module itself or the code behind it would be appreciated.

        I’m just and end user so I’m only stating what I would like to see in this module. I’m an amateur astronomer (in the loosest sense), with amateur Celestron and Meade telescopes, but I make great use of them, weather permitting. I have Planetrise on my mirror because of my enthusiasm for sky watching. I saw your module and immediately added it to my array.

        I’d like to see better coloring for the planets, or an option to colorize each.
        I’d like to see the orbits of the planets, or the option to see the orbits. If you are familiar with “Stellarium” then you know what I mean.
        I’d like to see a more realistic scaling, even if that means the sun will occupy a great amount of real estate, or an option for scaling the sun and/or the planets.

        Thank you for your module

        0_1487198200823_IMG_1172edit.jpg

        broberg 1 Reply Last reply Reply Quote 0
        • broberg
          broberg Project Sponsor @Mykle1 last edited by

          @Mykle1

          According to the modules config options you can change each planets color with :
          planetColor (So mercuryColor for changing color on mercury)

          and you can change the size of the planets with

          planetRadius (samething here, if you want to change the neptunes size you change it to neptuneRadius)

          https://github.com/hoyski/MM-orrery#config

          Mykle1 1 Reply Last reply Reply Quote 1
          • Mykle1
            Mykle1 Project Sponsor Module Developer @broberg last edited by

            @broberg said in MM-orrery - Show the planets and their current relation to the Sun:

            https://github.com/hoyski/MM-orrery#config

            Thanks for pointing that out. I guess I should RTFM before I start asking for things

            broberg 1 Reply Last reply Reply Quote 0
            • broberg
              broberg Project Sponsor @Mykle1 last edited by

              @Mykle1 we are men, we don’t rtfm unless we have to 😎

              Mykle1 1 Reply Last reply Reply Quote 0
              • Mykle1
                Mykle1 Project Sponsor Module Developer @broberg last edited by

                @broberg said in MM-orrery - Show the planets and their current relation to the Sun:

                we are men, we don’t rtfm unless we have to

                That’s effing hilarious. (Don’t know if I am allowed to curse here)

                1 Reply Last reply Reply Quote 0
                • H
                  hoyski last edited by

                  Thank you, @Mykle1 and @broberg, for your replies. I’m glad you like the module, Mykle1. I’m an amateur astronomer, as well. I’ve got an 8" Celestron on a Dobsonian mount that I like bumping around the the sky when time and weather permit.

                  broberg, you’re exactly right. You can adjust the color, drawing radius, and scale of each planet via config settings. I’ve updated the documentation in the README file to give some examples.

                  On a geeky astronomy aside, what was really eye opening to me as I was developing this module was to set jupiterScale to 1.0 and see how the inner planets clump around the Sun. Then to set neptuneScale to 1.0 and see how Jupiter clumps in with the inner planets. Neptune is way, way out there.

                  As far as showing the orbits, that’s a feature I’m hoping to have “real soon now”. I’ll let you know once I get it added o the module.

                  Thanks,
                  Dave

                  P.S. It’s fun to see that Mercury has moved a couple of pixels since I first started developing this module. On the flip side, it’ll be about 80 years before Neptune moves from the lower right to the upper left of the display. 🙂

                  Mykle1 1 Reply Last reply Reply Quote 1
                  • Mykle1
                    Mykle1 Project Sponsor Module Developer @hoyski last edited by

                    @hoyski said in MM-orrery - Show the planets and their current relation to the Sun:

                    As far as showing the orbits, that’s a feature I’m hoping to have “real soon now”. I’ll let you know once I get it added o the module.

                    Fantastic!

                    P.S. It’s fun to see that Mercury has moved a couple of pixels since I first started developing this module. On the flip side, it’ll be about 80 years before Neptune moves from the lower right to the upper left of the display.

                    That’s awesome!

                    I’ve been sort of looking for a new scope. What I really want is a Meade LX90 10" or an LX200 but I’ll likely settle for an LX90 8" ACF or a LightSwitch 8". You know how expensive it can get.

                    I’m going to play with your module some more. Thanks again. Good stuff!

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      hoyski @hoyski last edited by

                      To anyone using this module, please perform a “git pull” to get the latest code. This will resolve the issue of the module not refreshing its display.

                      Thanks,
                      Dave

                      1 Reply Last reply Reply Quote 0
                      • H
                        hoyski @Mykle1 last edited by

                        @Mykle1 Well, “real soon now” turned out to be nearly four years but… the module now displays orbits. They’re displayed by default and drawn with a dark gray line. The line’s color can be modified via the config.

                        Mykle1 1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy