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

Help: Rainmeter Skins • Re: Edit weather condition text?

$
0
0
Hello. Is it possible to edit the weather condition(s) value returned by the API? For instance, if it returns "Snow", change that to "snowing". Same for "Rain", change that to "raining"? I tried using Substitute, but that had no effect.

If the returned value can't be edited, I'd need to figure out how to edit some other static text to better match the current conditions, like "Currently, it's sunny" or "Currently, there's snow/wind" etc. Any suggestions are greatly appreciated!

Code:

[MeterDisplayWeatherInfo]Meter=StringMeasureName=MeasureConditionMeasureName2=MeasureTempX=(#size#*245)Y=(#size#*50)W=(#size#*300)H=(#size#*150)FontColor=#FontColor#FontSize=(#size#*12)StringStyle=normalStringEffect=SHADOWFontFace=#FontFace#StringAlign=leftFontEffectColor=0,0,0,50AntiAlias=1ClipString=1Text=Currently, it's#CRLF#%1 andSubstitute="Snow":"Snowing","Rain":"Raining","Sunny":"test"
Substitutions only work on the string values of Measures, so you need to add the Substitute line to the [MeasureCondition] measure in your code.
Then the meter should use the substituted values in your string text.

Statistics: Posted by eclectic-tech — 51 minutes ago



Viewing all articles
Browse latest Browse all 1056

Trending Articles