It is currently March 29th, 2024, 12:09 am

An Orrery for Rainmeter

Skins that don't neatly fit into other categories
buckb
Posts: 64
Joined: February 12th, 2018, 12:47 am

An Orrery for Rainmeter

Post by buckb »

Orrery is a Rainmeter skin that displays the positions of the planets in the solar system. At the heart of the skin is a Lua dofile called Planets.lua. This dofile is an implementation of the algorithm described in "Keplerian Elements for Approximate Positions of the Major Planets" by E M Standish of JPL/CalTech.

The Orrery skin is mostly an exercise in Lua scripting. The skin meters are driven from the Lua script rather than by data from Rainmeter measures. There are two variants of the skin: Simple.ini and Orrery.ini. The Simple.ini variant demonstrates how to use Planets.lua. The Orrery.ini variant started life as a prettier version of Simple.ini, but I got a bit carried away.

I don't intend to support the skin and don't want to lead users to believe otherwise. Rather, I just wanted to publish some code that others might find useful. There is a readme included with the skin that describes how to configure the skin and control it at runtime.

Apologies in advance if I don't find the time to reply to comments and questions, but I'll try.

Many thanks to the Rainmeter developers. I've really enjoyed working with your software. Thanks to jsmorely for all the examples and user support. And thanks to the many contributors to the forum: Smurfier, Mordasius, Stone, SilverAzide, balala, and eclectic-tech to name a few.

Orrery.jpg


Update 2023-11-06

The original Orrery skin pictured above has been split into three separate skins: Orrey, SkyView, and StarMap.
The new skins support scaling.

Orrery.jpg
SkyView.jpg
StarMap.jpg


Update 2024-01-31

The skins have been updated:
  • Orrery, SkyView, and StarMap can now be incrementally scaled by hovering over the skin frame and scrolling the mouse wheel. Hover over the top-left corner of the frame for easiest scaling.
  • The stars files used by SkyView and StarMap have been updated with the latest IAU names. New example stars files have been created. Stars files can now be selected via the custom context menu.
Enabling Hardware Acceleration in Rainmeter is strongly recommended.
Please see readme.txt for configuration and operation details.
You do not have the required permissions to view the files attached to this post.
Last edited by buckb on January 31st, 2024, 6:06 pm, edited 7 times in total.
User avatar
Mordasius
Posts: 1167
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: An Orrery for Rainmeter

Post by Mordasius »

Nice work. Now if only there was a little moon orbiting planet earth......
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: An Orrery for Rainmeter

Post by jsmorley »

Where is the Tesla?
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: An Orrery for Rainmeter

Post by fonpaolo »

jsmorley wrote:Where is the Tesla?
Too small to be represented? ;-)
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: An Orrery for Rainmeter

Post by balala »

:17good :17nodding :17good :17nodding :17good

MANY CONGRATULATIONS buckb, for this excelent piece of software. I don't name it skin, because it is beyond that.

I saw a few skins previously, which were downloading this kind of information from internet, but never saw one, making all such calculations locally. That's why I consider this skin (calling it so, even if previously I said it's more than a skin) an excellent work.
I previously tried once to write something similar, but my skin calculated just the Sun/Moon rise/set, it was a weak work, besides this one.

Just one single thing I'd like to mention: the one tenth of second update is too low in my opinion. Instead of the initially used Update=100 ([Rainmeter] sections) in both skins, I think even the default Update=1000 is too low. For such skins it's not needed, because the changes are happening even more slower, so, I'd increase the Update, probably up to even 10000 (10 seconds) - especially in the Orrery.ini.

SO AGAIN buckb, CONGRATULATIONS AND KEEP WORKING ON THIS SKIN, TO FURTHER IMPROVE IT. YOU WAS GREAT!!!

:17good :17nodding :17good :17nodding :17good
buckb
Posts: 64
Joined: February 12th, 2018, 12:47 am

Re: An Orrery for Rainmeter

Post by buckb »

Wasn't that Falcon Heavy launch amazing? I am so glad SpaceX is streaming their launches. Elon Musk is quite the showman.

Mordasius:
I hadn't done any astronomical programming before I stumbled across some of your skins and their amazing graphics. I saw a thread between you and Stone talking about calculating Moon rise and set times. I got interested...


balala:
Thank you for your kind words. I feel a bit guilty regarding this skin. The whole point of Rainmeter is to make skins easy to build with only minimal programming. Yet this skin is overflowing with Lua.

I use Update=100 so that the Orrery animates smoothly when running in "time-lapse" mode. The script's Update function throttles back on redraws when possible, such as when the Orrery is in Realtime mode. When running in Realtime, redraws only occur every 10 updates. And when the Orrery is paused, redraws are skipped altogether.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: An Orrery for Rainmeter

Post by balala »

buckb wrote:I feel a bit guilty regarding this skin. The whole point of Rainmeter is to make skins easy to build with only minimal programming. Yet this skin is overflowing with Lua.
Don't have to feel guilty. Those kind of calculation as you made in the lua code, can't be made in Rainmeter, I think.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: An Orrery for Rainmeter

Post by eclectic-tech »

:17nodding : Very Nicely Done! : :17nodding
:17group :17group :17drums :17group :17group
User avatar
SilverAzide
Rainmeter Sage
Posts: 2588
Joined: March 23rd, 2015, 5:26 pm

Re: An Orrery for Rainmeter

Post by SilverAzide »

Excellent job! :thumbup:
Gadgets Wiki GitHub More Gadgets...
buckb
Posts: 64
Joined: February 12th, 2018, 12:47 am

Re: An Orrery for Rainmeter

Post by buckb »

Thank you, eclectic-tech and SilverAzide.