Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1750

General Discussion • Re: Time shift

$
0
0
Let me try to give a more complete example:

First create a structure like this in ..Rainmeter\Skins:

DayAndNight
--Day
----Day.ini
--Night
----Night.ini

So the "root config" is DayAndNight, then there are two other configs under that, Day and Night.

Day.ini:

Code:

[Rainmeter]Update=1000DynamicWindowSize=1AccurateText=1[Variables][MeasureTime]Measure=TimeFormat=%#HIfCondition=(MeasureTime >= 19) && (MeasureTime <= 6)IfTrueAction=[!ActivateConfig "DayAndNight\Night" "Night.ini"][!DeactivateConfig][MeterOne]Meter=StringFontSize=11FontWeight=400FontColor=255,255,255,255SolidColor=47,47,47,255Padding=5,5,5,5AntiAlias=1Text=It's Day!
Night:

Code:

[Rainmeter]Update=1000DynamicWindowSize=1AccurateText=1[Variables][MeasureTime]Measure=TimeFormat=%#HIfCondition=(MeasureTime >= 7) && (MeasureTime <= 18)IfTrueAction=[!ActivateConfig "DayAndNight\Day" "Day.ini"][!DeactivateConfig][MeterOne]Meter=StringFontSize=11FontWeight=400FontColor=255,255,255,255SolidColor=47,47,47,255Padding=5,5,5,5AntiAlias=1Text=It's Night!
I altered the times a bit, to be more generally realistic with "day" and "night'. I just made a general assumption that "day" would be from 7am to 6pm, and "night" from 7pm to 6am.

Statistics: Posted by jsmorley — Today, 9:29 pm



Viewing all articles
Browse latest Browse all 1750

Trending Articles