It is currently September 21st, 2020, 11:54 am

An Orrery for Rainmeter

Post your work-in-progress and completed skins to share and discuss.
buckb
Posts: 43
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 self-contained 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

--buckb
You do not have the required permissions to view the files attached to this post.
Last edited by buckb on September 8th, 2020, 12:30 am, edited 1 time in total.
User avatar
Mordasius
Posts: 1077
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: 21373
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: 1397
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? ;-)
dvo
Posts: 969
Joined: February 7th, 2016, 6:08 am

Re: An Orrery for Rainmeter

Post by dvo »

see him go..... :17nodding
User avatar
balala
Rainmeter Sage
Posts: 11372
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: 43
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: 11372
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: 4112
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
Posts: 954
Joined: March 23rd, 2015, 5:26 pm

Re: An Orrery for Rainmeter

Post by SilverAzide »

Excellent job! :thumbup:
Gadgets Wiki GitHub More Gadgets...