It is currently April 28th, 2024, 7:30 am

Display image based on sunrise / sunset measures

Get help with creating, editing & fixing problems with skins
User avatar
xenium
Posts: 868
Joined: January 4th, 2018, 9:52 pm

Re: Display image based on sunrise / sunset measures

Post by xenium »

balala wrote: November 21st, 2019, 7:42 pm Ok, finally it seems I succeeded figuring out what's going on. There was a really stupid mistake: a missing equality sign from the Formula option of the [MeasureSinceMoonrise] measure. Please add it and check the skin again:

Code: Select all

[MeasureSinceMoonrise]
Measure=Calc
Formula=(( MeasureMoonsetMoment > MeasureMoonriseMoment ) ? (( 60 * MeasureHour + MeasureMinute - MeasureMoonriseMoment ) / ( 0.00001 + MeasureDayLength )) : ((( 60 * MeasureHour + MeasureMinute ) >= MeasureMoonriseMoment ) ? (( 60 * MeasureHour + MeasureMinute - MeasureMoonriseMoment ) / ( 0.00001 + MeasureDayLength )) : (( 1440 - MeasureMoonriseMoment + 60 * MeasureHour + MeasureMinute ) / ( 0.00001 + MeasureDayLength ))))
The missing equality is the following one: (( 60 * MeasureHour + MeasureMinute ) >= MeasureMoonriseMoment ).
It took me long before I found this issue. Stupid mistake...
Now it's OK !
Thank you very much ! :bow:
User avatar
balala
Rainmeter Sage
Posts: 16183
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Display image based on sunrise / sunset measures

Post by balala »

xenium wrote: November 21st, 2019, 8:57 pm Now it's OK !
Thank you very much ! :bow:
I'm glad if it is. And you're welcome.