• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

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

Scheduled Pinned Locked Moved Education
11 Posts 3 Posters 8.0k 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.
  • H Offline
    hoyski
    last edited by hoyski Feb 15, 2017, 12:35 PM Feb 15, 2017, 3:36 AM

    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:

    [card:hoyski/MM-orrery]

    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

    M H 2 Replies Last reply Feb 15, 2017, 10:36 PM Reply Quote 3
    • M Offline
      Mykle1 Project Sponsor Module Developer @hoyski
      last edited by Feb 15, 2017, 10:36 PM

      @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

      Create a working config
      How to add modules

      B 1 Reply Last reply Feb 15, 2017, 11:14 PM Reply Quote 0
      • B Offline
        broberg Project Sponsor @Mykle1
        last edited by Feb 15, 2017, 11:14 PM

        @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

        M 1 Reply Last reply Feb 16, 2017, 12:45 AM Reply Quote 1
        • M Offline
          Mykle1 Project Sponsor Module Developer @broberg
          last edited by Feb 16, 2017, 12:45 AM

          @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

          Create a working config
          How to add modules

          B 1 Reply Last reply Feb 16, 2017, 12:55 AM Reply Quote 0
          • B Offline
            broberg Project Sponsor @Mykle1
            last edited by Feb 16, 2017, 12:55 AM

            @Mykle1 we are men, we don’t rtfm unless we have to B-)

            M 1 Reply Last reply Feb 16, 2017, 12:58 AM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @broberg
              last edited by Feb 16, 2017, 12:58 AM

              @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)

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • H Offline
                hoyski
                last edited by Feb 16, 2017, 1:46 AM

                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. :-)

                M 1 Reply Last reply Feb 16, 2017, 2:00 AM Reply Quote 1
                • M Offline
                  Mykle1 Project Sponsor Module Developer @hoyski
                  last edited by Feb 16, 2017, 2:00 AM

                  @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!

                  Create a working config
                  How to add modules

                  H 1 Reply Last reply Dec 23, 2020, 12:12 PM Reply Quote 0
                  • H Offline
                    hoyski @hoyski
                    last edited by Mar 19, 2017, 12:37 PM

                    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 Offline
                      hoyski @Mykle1
                      last edited by Dec 23, 2020, 12:12 PM

                      @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.

                      M 1 Reply Last reply Dec 23, 2020, 3:14 PM 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 Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy