I have issue with gnometer calendar with monday as starting day. Calendar will start with 2nd day and instead of 7th there is 37th.
I have only changed time format and zone.
It is currently March 29th, 2024, 5:28 am
Gnometer Monday Calendar
-
- Posts: 154
- Joined: May 14th, 2018, 4:46 pm
Gnometer Monday Calendar
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Gnometer Monday Calendar
Sorry for the very late reply, here is my (maybe not the best) advice, for now just for the above question.oZone wrote:instead of 7th there is 37th.
I think in some situations there can occur and error in the formula option of the [Sat0Day] measure, but if this does or doesn't depends on which day is the first of the month. This probably doesn't occur every month, just on some of them, which starts on Sundays. I probably would fix this by replacing the mentioned Formula option with the following one: Formula=((MonthStartDay>6) && (#MondayIsFirst#=1)?DaysInPrevMonth+7:7)-MonthStartDay. Again, not being the author of the skin and the calculations being hard enough to be followed, maybe I am wrong, but I think this could be a solution.
Maybe you should have to contact the author of the skin (poiru), for better help.
-
- Posts: 154
- Joined: May 14th, 2018, 4:46 pm
Re: Gnometer Monday Calendar
Thanks for suggestion, you're right that calculations are hard to follow.
I have decided to rewrite some formulas. Hopefully there are no mistakes.
This should also work with Sunday as starting day
I have decided to rewrite some formulas. Hopefully there are no mistakes.
This should also work with Sunday as starting day
Code: Select all
[CalcStartDay]
;Calculate start day (0=Sun, ... , 6=Sat)
Measure=Calc
Formula=(MeasureWeekday-MeasureDay%7+8)%7
[MonthStartDay]
;Substitute start day (Sun->7, Mon->8 if #MondayIsFirst#=1)
Measure=Calc
Formula=CalcStartDay=0?7:(CalcStartDay=1?(1+7*#MondayIsFirst#):CalcStartDay)
Code: Select all
[Sun0FontColor]
Measure=Calc
Formula=Sun0Day>7?(-1):((Sun0Day=MeasureDay) ? -4 : -2)
Substitute="-1":"#PrevMonthColor#","-2":"#color.Text#","-3":"0,0,0,1","-4":"#color.Highlight#"
[Mon0FontColor]
Measure=Calc
Formula=Mon0Day>1?(-1):((Mon0Day=MeasureDay) ? -4 : -2)
Substitute="-1":"#PrevMonthColor#","-2":"#color.Text#","-3":"0,0,0,1","-4":"#color.Highlight#"
[Tue0FontColor]
Measure=Calc
Formula=Tue0Day>2?(-1):((Tue0Day=MeasureDay) ? -4 : -2)
Substitute="-1":"#PrevMonthColor#","-2":"#color.Text#","-3":"0,0,0,1","-4":"#color.Highlight#"
[Wed0FontColor]
Measure=Calc
Formula=Wed0Day>3?(-1):((Wed0Day=MeasureDay) ? -4 : -2)
Substitute="-1":"#PrevMonthColor#","-2":"#color.Text#","-3":"0,0,0,1","-4":"#color.Highlight#"
[Thu0FontColor]
Measure=Calc
Formula=Thu0Day>4?(-1):((Thu0Day=MeasureDay) ? -4 : -2)
Substitute="-1":"#PrevMonthColor#","-2":"#color.Text#","-3":"0,0,0,1","-4":"#color.Highlight#"
[Fri0FontColor]
Measure=Calc
Formula=Fri0Day>5?(-1):((Fri0Day=MeasureDay) ? -4 : -2)
Substitute="-1":"#PrevMonthColor#","-2":"#color.Text#","-3":"0,0,0,1","-4":"#color.Highlight#"
[Sat0FontColor]
Measure=Calc
Formula=Sat0Day>6?(-1):((Sat0Day=MeasureDay) ? -4 : -2)
Substitute="-1":"#PrevMonthColor#","-2":"#color.Text#","-3":"0,0,0,1","-4":"#color.Highlight#"
[Sun0Day]
Measure=Calc
Formula=(MonthStartDay=8?DaysInPrevMonth+1:(1-#MondayIsFirst#)*DaysInPrevMonth+1)-MonthStartDay+#MondayIsFirst#*7
[Mon0Day]
Measure=Calc
Formula=(MonthStartDay>1?DaysInPrevMonth+2:2)-MonthStartDay
[Tue0Day]
Measure=Calc
Formula=(MonthStartDay>2?DaysInPrevMonth+3:3)-MonthStartDay
[Wed0Day]
Measure=Calc
Formula=(MonthStartDay>3?DaysInPrevMonth+4:4)-MonthStartDay
[Thu0Day]
Measure=Calc
Formula=(MonthStartDay>4?DaysInPrevMonth+5:5)-MonthStartDay
[Fri0Day]
Measure=Calc
Formula=(MonthStartDay>5?DaysInPrevMonth+6:6)-MonthStartDay
[Sat0Day]
Measure=Calc
Formula=(MonthStartDay>6?DaysInPrevMonth+7:7)-MonthStartDay
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Gnometer Monday Calendar
Many congratulations. Great work. It seems your own solution indeed fixed the issue. At least for now it definitely did.oZone wrote:I have decided to rewrite some formulas. Hopefully there are no mistakes.
This should also work with Sunday as starting day