I would like to add the color 3 for the first hour after the current hour and the color 4 for the second hour after the current hour.
I tried the variant below but it does not work:

Remove the Format=%#I option from the [msHour] measure.
Additionally, if you need the value returned by the [msHour] measure, you can add a new Time measure, which will have no Format option and be used only into the [msHour+1] and [msHour+2] measures:

balala wrote: ↑December 26th, 2018, 2:33 pm
Remove the Format=%#I option from the [msHour] measure.
Additionally, if you need the value returned by the [msHour] measure, you can add a new Time measure, which will have no Format option and be used only into the [msHour+1] and [msHour+2] measures:

If the Format=%#I option from the [msHour] measure is removed, the 2 extra hours appear colored, but the current hour is not colored.
If the option is not removed, the current hour is colored but not the other 2 hours.

There is an issue with the [cHourXX] measures (where obviously XX varies from 1 to 12): these measures are returning 0, up to the corresponding hour, when they get their non-zero values. This is cause by the (msHour>=XX) inequalities, contained into their formula.
There would be two simple solutions (choose one of them, which you prefer):

Modify the Formula option of the [cHourXX] measure, decreasing the values which the value of the [msHour] measure is compared with, with 2. For example the Formula option of the [cHour3] measure should become Formula=#HourAngle#*(msHour>=1). This solution would convert the Formula option of [cHour2] measure into Formula=#HourAngle# (same as the Formula of [cHour1]), making the first two sections always visible.

Modify the code in a way to not set the color of [mHourXX] meters, but those of [HourXX] meters. For this you have to modify the two !SetOption bangs of the OnUpdateAction option of [msHour] measure. Instead of the existing [!SetOption mHour[msHour+1] LineColor #Color3#][!SetOption mHour[msHour+2] LineColor #Color4#] bangs, use them as [!SetOption Hour[msHour+1] LineColor "#Color3#"][!SetOption Hour[msHour+2] LineColor "#Color4#"]. Leave untouched the other bangs of this option. This solution colors the [HourXX] meters, instead of [mHourXX], but I think this isn't a problem.

balala wrote: ↑December 26th, 2018, 5:10 pm
There is an issue with the [cHourXX] measures (where obviously XX varies from 1 to 12): these measures are returning 0, up to the corresponding hour, when they get their non-zero values. This is cause by the (msHour>=XX) inequalities, contained into their formula.
There would be two simple solutions (choose one of them, which you prefer):

Modify the Formula option of the [cHourXX] measure, decreasing the values which the value of the [msHour] measure is compared with, with 2. For example the Formula option of the [cHour3] measure should become Formula=#HourAngle#*(msHour>=1). This solution would convert the Formula option of [cHour2] measure into Formula=#HourAngle# (same as the Formula of [cHour1]), making the first two sections always visible.

Modify the code in a way to not set the color of [mHourXX] meters, but those of [HourXX] meters. For this you have to modify the two !SetOption bangs of the OnUpdateAction option of [msHour] measure. Instead of the existing [!SetOption mHour[msHour+1] LineColor #Color3#][!SetOption mHour[msHour+2] LineColor #Color4#] bangs, use them as [!SetOption Hour[msHour+1] LineColor "#Color3#"][!SetOption Hour[msHour+2] LineColor "#Color4#"]. Leave untouched the other bangs of this option. This solution colors the [HourXX] meters, instead of [mHourXX], but I think this isn't a problem.

Thanks a lot !
I will use the second solution, I see it works.
(Sarbatori fericite !)