the1ulike wrote: ↑June 22nd, 2020, 6:27 pm
I think you misunderstand me. Let me say it here: It is gradual changing from black to orange then sudden change from Orange (white text) to Orange (black text) then, gradual change from orange to White. This is to avoid the problem of a gray face at the exact time of sunrise or sunset
Not sure if the OP is still checking, but this project caught my interest!
So I pursued the OP's request for gradual color changes and added a few enhancements
Here is a package that uses https://yandex.com/time/
for the on-line information for 8 locations (more or less can be utilized) and shows a "Sun Map" from http://www.e-callisto.org/
when the mouse hovers over the clock.
It will gradually change the clock face color towards red at sunrise and sunset, then towards white at sunrise and black at sunset. The transition time can be controlled by editing the 'TransitionSeconds' and the 'StepMax' variables. Default is 300 seconds (5 min) before/after sunrise/sunset, with 60 steps, so the color changes every 5 seconds over a 10 minute transition.
The 'IsNight' value from Yandex does not change immediately at sunrise/sunset, so I disable that measure and use IfConditions on the timestamp measures.
I created separate images for the clock face, white numerals, and black numerals.
I centered the clock hands from Y=20 to Y=15.
The transitions use 4 Loop measures that change a 'Step' value. That value is used in a ColorMatrix on the [MeterClockFace].
Added an optional location change at set intervals; see [MeasureRandom] on how to enable.
Added a 'Sun Map' that updates every 15 minutes.
Tested extensively, but may not have seen all possible scenarios
- the1ulike for the initial idea (especially!)
- balala for suggesting ColorMatrix
- Yandex/Time site
- e.callisto.org for the Sun Map
I recommend the1ulike to to make any changes he desires and share his creation on the forum. Also test for any possible bugs!
This is the only thread I plan to post this package.
Corrected time (disabled daylight savings correction in the skin, it is done on the site)
Corrected logic for night face color prior to dawn.
Removed extra duplicate skins (2 included)... Copy 'Clock1' folder and rename to add more locations
Sun Map site can fail access, no map will show (Re-start Rainmeter should correct, looking at alternatives)
You do not have the required permissions to view the files attached to this post.