It is currently October 19th, 2021, 3:28 pm

Bell ring clock skin

Help with creating, editing & fixing problems with skins
User avatar
Yincognito
Rainmeter Sage
Posts: 4069
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Bell ring clock skin

Post by Yincognito »

death.crafter wrote: July 18th, 2021, 3:40 am

Code: Select all

Formula=Round(MinuteRaw/15)
So sorry to insist on this again, but are you sure using Round() is the way to do it? I mean ... 7/15<0.5, so Round(7/15)=0, all good till now. However, 8/15>=0.5, so Round(8/15)=1, meaning its OnChangeAction will fire after 8 minutes in this case ... and will not fire at the 15th minute, since Round(14/15)=Round(15/15)=Round(16/15)=1.
death.crafter wrote: July 18th, 2021, 4:28 amToday I am unconciously disturbed :rolmfao:
Yeah, I noticed that. :D Mark the day in the calendar, do not try to play on the stock market on this day...
User avatar
death.crafter
Posts: 1045
Joined: April 24th, 2021, 8:13 pm

Re: Bell ring clock skin

Post by death.crafter »

Yincognito wrote: July 18th, 2021, 4:37 am So sorry to insist on this again, but are you sure using Round() is the way to do it? I mean ... 7/15<0.5, so Round(7/15)=0, all good till now. However, 8/15>=0.5, so Round(8/15)=1, meaning its OnChangeAction will fire after 8 minutes in this case ... and will not fire at the 15th minute, since Round(14/15)=Round(15/15)=Round(16/15)=1.


Yeah, I noticed that. :D Mark the day in the calendar, do not try to play on the stock market on this day...
Oh my god. I did it again. It should be Floor(). Thanks again.
from the Realm of Death
My Current Desktop
User avatar
Yincognito
Rainmeter Sage
Posts: 4069
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Bell ring clock skin

Post by Yincognito »

death.crafter wrote: July 18th, 2021, 4:49 am Oh my god. I did it again. It should be Floor(). Thanks again.
No problem, it happens sometimes. :confused:
User avatar
FreeRaider
Posts: 816
Joined: November 20th, 2012, 11:58 pm

Re: Bell ring clock skin

Post by FreeRaider »

Thanks all for answers. It works, but I have a couple of questions:

1) How can I have two rings of bell2 every 30 minutes. Bell2 currently rings every 15 minutes.
2) I would like to add a time range, let's say from 07:00 to 22:00. How do I create this range?
User avatar
FreeRaider
Posts: 816
Joined: November 20th, 2012, 11:58 pm

Re: Bell ring clock skin

Post by FreeRaider »

FreeRaider wrote: July 18th, 2021, 1:44 pm 1) How can I have two rings of bell2 every 30 minutes. Bell2 currently rings every 15 minutes.
I think I solved this point using

Code: Select all

Formula=((Trunc(Minutes/30))*2)
User avatar
Yincognito
Rainmeter Sage
Posts: 4069
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Bell ring clock skin

Post by Yincognito »

FreeRaider wrote: July 18th, 2021, 1:55 pm I think I solved this point using

Code: Select all

Formula=((Trunc(Minutes/30))*2)
Yes, indeed .- sorry for the delay, I'm on mobile now. As for the 2nd question, a disable (or pause?) of this measure from the HourRings measure when it's past 22:00 (and enable or unpause just before 07:00) through an IfCondition there should do.
User avatar
death.crafter
Posts: 1045
Joined: April 24th, 2021, 8:13 pm

Re: Bell ring clock skin

Post by death.crafter »

FreeRaider wrote: July 18th, 2021, 1:44 pm Thanks all for answers. It works, but I have a couple of questions:

1) How can I have two rings of bell2 every 30 minutes. Bell2 currently rings every 15 minutes.
2) I would like to add a time range, let's say from 07:00 to 22:00. How do I create this range?
Depending on what way you go, you can add, Disabled=(([Hour]>22) || ([Hour]<7) ? 1 : 0), to all the measures that matter. Not on Hour itself tho. But you already know that.
from the Realm of Death
My Current Desktop
User avatar
Yincognito
Rainmeter Sage
Posts: 4069
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Bell ring clock skin

Post by Yincognito »

death.crafter wrote: July 18th, 2021, 2:16 pm Depending on what way you go, you can add, Disabled=(([Hour]>22) || ([Hour]<7) ? 1 : 0), to all the measures that matter. Not on Hour itself tho. But you already know that.
This is actually a better idea indeed, if placed on the Minute triggerring measure. That being said, it's better to include the original minute related measure in the conditional, since, as it is now, it will disable itself at 23:00 instead of 22:00. Or, use 21 instead of 22, but then you won't hear the 22:00 ringing...
User avatar
death.crafter
Posts: 1045
Joined: April 24th, 2021, 8:13 pm

Re: Bell ring clock skin

Post by death.crafter »

Yincognito wrote: July 18th, 2021, 2:33 pm This is actually a better idea indeed, if placed on the Minute triggerring measure. That being said, it's better to include the original minute related measure in the conditional, since, as it is now, it will disable itself at 23:00 instead of 22:00. Or, use 21 instead of 22, but then you won't hear the 22:00 ringing...
>= exists.
from the Realm of Death
My Current Desktop
User avatar
Yincognito
Rainmeter Sage
Posts: 4069
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Bell ring clock skin

Post by Yincognito »

death.crafter wrote: July 18th, 2021, 2:50 pm >= exists.
LOL, yes, of course. But it will still cut out the 22:00 ringing, now won't it? Anyway, what's clear is that it can be done just by slightly altering some little things in whichever approach, so I guess it's not that big of a deal. ;-)