This skin shows the Sunrise/Sunset, respectively the Moonrise / Moonset for current day. Important is that these information aren't downloaded from internet (as many skins does), they are calculated offline by two lua scripts, based on geographical coordinates and date. These scripts are not mine, I've downloaded them, many thanks to the developers.
The skin also shows the current icon of the Sun and Moon (How is visible the Sun over the horizont and the aproximative phase of the Moon).
When you install the skin, first a Settings tool is loaded. Using it you can set your location (important, without this step, the skin won't work!). The simplest way to do this is to click to the Detect button (it appears just when your IP address is determined and shown). With this button, the skin will (try to) detect your country, city and the geographical coordinates (the latitude and the longitude) and if succeed, shows them. Then you can click the OK to save them and switch to the main skin, which will show the moments of Sun/Moon rise/set.
If your IP address isn't detected, the Detect button won't appear. In such cases you can enter manually the coordinates, using the InputText plugin. If you do so, the skin will try to detect the country and the city, based on the entered geographical coordinates. If it fails, or the names are not accurate enough, you can also add/modify them manually.
The skin writes each day, the day length into the DayLength.inc file (into the @Resources folder). Through the year, you can follow how this length changes.
It is currently November 29th, 2023, 5:05 am
SunMoon
-
- Rainmeter Sage
- Posts: 15813
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
SunMoon
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 5230
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: SunMoon
Works great! Detected my location close enough that time is not an issue (40 miles away, due to my rural location).
One suggestion: I would lie to see a version I can scale.
I do not resize Rainmeter skins to the same Win 10 DPI scale on my plasma monitor (my default DPI setting is 150%) because I want to see the appearance of the skins as originally written. On higher resolution monitors, the skins are usually too small to recognize characters; adding scaling allows end user to adjust the size to fit their set up.
Enough 'whinning' from me...
Great find on those scripts!

One suggestion: I would lie to see a version I can scale.
I do not resize Rainmeter skins to the same Win 10 DPI scale on my plasma monitor (my default DPI setting is 150%) because I want to see the appearance of the skins as originally written. On higher resolution monitors, the skins are usually too small to recognize characters; adding scaling allows end user to adjust the size to fit their set up.
Enough 'whinning' from me...

Great find on those scripts!

:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 332
- Joined: December 8th, 2016, 6:45 am
-
- Rainmeter Sage
- Posts: 15813
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: SunMoon
The location is detected based on your IP address. How close to the reality is this depends I think on many things.eclectic-tech wrote:Works great! Detected my location close enough that time is not an issue (40 miles away, due to my rural location).
At least with some limits, it's not impossible at all. Ok, I'll create a same working bigger skin and will come back with it.eclectic-tech wrote:One suggestion: I would lie to see a version I can scale.
I do not resize Rainmeter skins to the same Win 10 DPI scale on my plasma monitor (my default DPI setting is 150%) because I want to see the appearance of the skins as originally written. On higher resolution monitors, the skins are usually too small to recognize characters; adding scaling allows end user to adjust the size to fit their set up.
For sure. I searched them long time, until finally I found them.eclectic-tech wrote:Great find on those scripts!
-
- Rainmeter Sage
- Posts: 15813
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: SunMoon
My pleasure. Try it and let me know how is it working.sephirotess wrote:It's interesting, I should try it. Thank you very much for sharing.
-
- Posts: 332
- Joined: December 8th, 2016, 6:45 am
Re: SunMoon
Hi,
Good detection of the Country. I change the city, because the skin has chosen an other, but not very far. The values of sunrise and sunset are the same values indicated by my skin Weather (weather.com), so, it's good! Great job
.
Good detection of the Country. I change the city, because the skin has chosen an other, but not very far. The values of sunrise and sunset are the same values indicated by my skin Weather (weather.com), so, it's good! Great job

-
- Rainmeter Sage
- Posts: 15813
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: SunMoon
Thanks. As I could see so far, at least in my case, the skin calculates pretty good the moment of Sunrise / Sunset / Moonrise / Moonset.sephirotess wrote:Hi,
Good detection of the Country. I change the city, because the skin has chosen an other, but not very far. The values of sunrise and sunset are the same values indicated by my skin Weather (weather.com), so, it's good! Great job.
-
- Rainmeter Sage
- Posts: 15813
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: SunMoon
Here is one, with two different sizes. The default size is the same as the previous one, but when you're hovering your mouse over the skin a small menu will appear in its right side. You can use it to open the Settings tool (removed its button from the main surface of the skin), to scale the skin (with the right arrow) or to close it.eclectic-tech wrote:One suggestion: I would lie to see a version I can scale.
I also partially rewrote the Settings tool. Now it has an option to can set the desired time format (12 or 24 hours). The smaller size don't look good with the 12 hours format, because there are no enough spaces between the shown times.
Please let me know what you think about this newer version.
You do not have the required permissions to view the files attached to this post.
Last edited by balala on January 1st, 2017, 8:36 am, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 5230
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: SunMoon
Double-size looks good, and the additional setting.
Thanks for taking the time to do this, hopefully other will appreciate it as much as I do.
Thanks Again!
Thanks for taking the time to do this, hopefully other will appreciate it as much as I do.
Thanks Again!

:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 15813
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: SunMoon
I'm glad if you appreciate my work. Obviously I'm glad when anybody does, but even more when a such experimented user like you does.eclectic-tech wrote:Thanks for taking the time to do this, hopefully other will appreciate it as much as I do.