MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. hoyski
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    H
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Groups 0

    Posts

    Recent Best Controversial
    • MM-orrery - Show the planets and their current relation to the Sun

      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

      posted in Education
      H
      hoyski
    • RE: MM-orrery - Show the planets and their current relation to the Sun

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

      posted in Education
      H
      hoyski
    • RE: MM-orrery - Show the planets and their current relation to the Sun

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

      posted in Education
      H
      hoyski
    • 1 / 1