It is currently March 28th, 2024, 11:13 am

need help with switching weather images

Get help with creating, editing & fixing problems with skins
Post Reply
User avatar
nzdawghaus
Posts: 11
Joined: November 20th, 2009, 3:58 pm

need help with switching weather images

Post by nzdawghaus »

I've been cobbling together a yahoo weather skin that switches between 3 different locations, and for the most part, I've got things working right. The only problem I'm having is the images don't want to change, they're just stuck at the first location. Everything else switches like it's supposed to, so I'm guessing I screwed up some syntax somewhere.

What it looks like...
Image

And here's the ini. Forgive the mess, it's in progress. [CurrentIcon], [TodayIcon], and [TomorrowIcon] are the meters I'm having the problem with. Any help would be muchly appreciated...

Code: Select all

;===========================================
  [Rainmeter]
;===========================================
	Update=1000
;===========================================
  [Variables]
;===========================================
	Zipcode1=48342
	Zipcode2=48446
	Zipcode3=49709
	Unit=f
	BGh=180
	Images=#CURRENTPATH#WeatherImages\
	ZipVar=1
	Max=3
	SubstWind="360":"N","350":"N","340":"NNW","330":"NNW","320":"NW","310":"NW","300":"WNW","290":"WNW","280":"W","270":"W","260":"W","250":"WSW","240":"WSW","230":"SW","220":"SW","210":"SSW","200":"SSW","190":"S","180":"S","170":"S","160":"SSE","150":"SSE","140":"SE","130":"SE","120":"ESE","110":"ESE","100":"E","90":"E","80":"E","70":"ENE","60":"ENE","50":"NE","40":"NE","30":"NNE","20":"NNE","10":"N","0":"N"
;===========================================
;  .Styles
;===========================================
[MeterStyle_1]
	FontColor=255,255,255,220
	AntiAlias=1
	FontFace=Tahoma
	FontSize=9
	StringEffect=Shadow
	FontEffectColor=0,0,0,120
[MeterStyle_2]
	FontColor=220,220,220,200
	AntiAlias=1
	FontFace=Tahoma
	FontSize=8
	StringEffect=Shadow
	FontEffectColor=20,20,20,160
;===========================================
;  .Switches
;===========================================
[Mse_Timer]
	Measure=Time
	Format=%S
[Mse_TimerSwitch]
	Measure=Calc
	Formula=Mse_Timer
	IfEqualValue=15
	IfEqualAction=!Execute [!RainmeterSetVariable ZipVar [Mse_Next]]
[Mse_TimerSwitch2]
	Measure=Calc
	Formula=Mse_Timer
	IfEqualValue=30
	IfEqualAction=!Execute [!RainmeterSetVariable ZipVar [Mse_Next]]
[Mse_TimerSwitch3]
	Measure=Calc
	Formula=Mse_Timer
	IfEqualValue=45
	IfEqualAction=!Execute [!RainmeterSetVariable ZipVar [Mse_Next]]
[Mse_TimerSwitch4]
	Measure=Calc
	Formula=Mse_Timer
	IfEqualValue=59
	IfEqualAction=!Execute [!RainmeterSetVariable ZipVar [Mse_Next]]
[Mse_Next]
	Measure=Calc
	Formula=(#ZipVar#+1)%#MAX#=0?#MAX#:(#ZipVar#+1)%#MAX#
	DynamicVariables=1
[Mse_Prev]
	Measure=Calc
	Formula=(#ZipVar#-1)%#MAX#=0?#MAX#:(#ZipVar#-1)%#MAX#
	DynamicVariables=1
;===========================================
;  .Measures
;===========================================
[MeasureYahooWeather1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	UpdateRate=600
	URL=http://weather.yahooapis.com/forecastrss?p=#Zipcode1#&u=#Unit#
	RegExp="(?siU)<title>.*- (.*)</title>.*<link>(.*)/\*(.*)</link>.*<description>(.*)</description>.*<language>(.*)</language>.*<lastBuildDate>(.*)</lastBuildDate>.*<yweather:location city="(.*)".*region="(.*)".*country="(.*)".*<yweather:units temperature="(.*)".*distance="(.*)".* pressure="(.*)".*speed="(.*)".*<yweather:wind chill="(.*)".*direction="(.*)".*speed="(.*)".*<yweather:atmosphere humidity="(.*)".* visibility="(.*)".*pressure="(.*)".* rising="(.*)".*<yweather:astronomy sunrise="(.*)".*sunset="(.*)".*<title>(.*)</title>.*<width>(.*)</width>.*<height>(.*)</height>.*<link>(.*)</link>.*<url>(.*)</url>.*<title>(.*)</title>.*<geo:lat>(.*)</geo:lat>.*<geo:long>(.*)</geo:long>.*<link>(.*)/\*(.*)</link>.*<pubDate>(.*)</pubDate>.*<yweather:condition  text="(.*)".*code="(.*)".*temp="(.*)".*date="(.*)".*<img src="(.*)".*Current Conditions:</b><br />(.*)<BR />.*Forecast:</b><BR />(.*)<br />.*(.*)<br />.*<a href="(.*)/\*(.*)">.*provided by <a href="(.*)" >(.*)</a>.*<yweather:forecast day="(.*)".*date="(.*)".*low="(.*)".*high="(.*)".*text="(.*)".*code="(.*)".*<yweather:forecast day="(.*)".*date="(.*)".*low="(.*)".*high="(.*)".*text="(.*)".*code="(.*)".*"
[MeasureYahooWeather2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	UpdateRate=600
	URL=http://weather.yahooapis.com/forecastrss?p=#Zipcode2#&u=#Unit#
	RegExp="(?siU)<title>.*- (.*)</title>.*<link>(.*)/\*(.*)</link>.*<description>(.*)</description>.*<language>(.*)</language>.*<lastBuildDate>(.*)</lastBuildDate>.*<yweather:location city="(.*)".*region="(.*)".*country="(.*)".*<yweather:units temperature="(.*)".*distance="(.*)".* pressure="(.*)".*speed="(.*)".*<yweather:wind chill="(.*)".*direction="(.*)".*speed="(.*)".*<yweather:atmosphere humidity="(.*)".* visibility="(.*)".*pressure="(.*)".* rising="(.*)".*<yweather:astronomy sunrise="(.*)".*sunset="(.*)".*<title>(.*)</title>.*<width>(.*)</width>.*<height>(.*)</height>.*<link>(.*)</link>.*<url>(.*)</url>.*<title>(.*)</title>.*<geo:lat>(.*)</geo:lat>.*<geo:long>(.*)</geo:long>.*<link>(.*)/\*(.*)</link>.*<pubDate>(.*)</pubDate>.*<yweather:condition  text="(.*)".*code="(.*)".*temp="(.*)".*date="(.*)".*<img src="(.*)".*Current Conditions:</b><br />(.*)<BR />.*Forecast:</b><BR />(.*)<br />.*(.*)<br />.*<a href="(.*)/\*(.*)">.*provided by <a href="(.*)" >(.*)</a>.*<yweather:forecast day="(.*)".*date="(.*)".*low="(.*)".*high="(.*)".*text="(.*)".*code="(.*)".*<yweather:forecast day="(.*)".*date="(.*)".*low="(.*)".*high="(.*)".*text="(.*)".*code="(.*)".*"
[MeasureYahooWeather3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	UpdateRate=600
	URL=http://weather.yahooapis.com/forecastrss?p=#Zipcode3#&u=#Unit#
	RegExp="(?siU)<title>.*- (.*)</title>.*<link>(.*)/\*(.*)</link>.*<description>(.*)</description>.*<language>(.*)</language>.*<lastBuildDate>(.*)</lastBuildDate>.*<yweather:location city="(.*)".*region="(.*)".*country="(.*)".*<yweather:units temperature="(.*)".*distance="(.*)".* pressure="(.*)".*speed="(.*)".*<yweather:wind chill="(.*)".*direction="(.*)".*speed="(.*)".*<yweather:atmosphere humidity="(.*)".* visibility="(.*)".*pressure="(.*)".* rising="(.*)".*<yweather:astronomy sunrise="(.*)".*sunset="(.*)".*<title>(.*)</title>.*<width>(.*)</width>.*<height>(.*)</height>.*<link>(.*)</link>.*<url>(.*)</url>.*<title>(.*)</title>.*<geo:lat>(.*)</geo:lat>.*<geo:long>(.*)</geo:long>.*<link>(.*)/\*(.*)</link>.*<pubDate>(.*)</pubDate>.*<yweather:condition  text="(.*)".*code="(.*)".*temp="(.*)".*date="(.*)".*<img src="(.*)".*Current Conditions:</b><br />(.*)<BR />.*Forecast:</b><BR />(.*)<br />.*(.*)<br />.*<a href="(.*)/\*(.*)">.*provided by <a href="(.*)" >(.*)</a>.*<yweather:forecast day="(.*)".*date="(.*)".*low="(.*)".*high="(.*)".*text="(.*)".*code="(.*)".*<yweather:forecast day="(.*)".*date="(.*)".*low="(.*)".*high="(.*)".*text="(.*)".*code="(.*)".*"

[Mse_Link1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=3
[Mse_Location1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=1
[Mse_CurrentIcon1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=35
[Mse_Sunrise1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=21
[Mse_Sunset1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=22
[Mse_Barom1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=19
[Mse_BaromUnits1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=12
[Mse_BaromStatus1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=20
	Substitute="0":"Steady","1":"Rising","2":"Falling"
[Mse_Humidity1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=17
[Mse_WindSpeed1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=16
[Mse_WindUnits1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=13
[Mse_WindDirection1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=15
	Substitute=#SubstWind#
[Mse_TempUnits1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=10
[Mse_WindChill1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=14
[Mse_Vis1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=18
[Mse_VisUnits1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=11
[Mse_CurrentConditions1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=34
[Mse_CurrentTemp1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=36
[Mse_CurrentTempHigh1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=49
[Mse_CurrentTempLow1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=48
[Mse_TodayIcon1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=51
[Mse_TomorrowLabel1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=52
[Mse_TomorrowTempHigh1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=55
[Mse_TomorrowTempLow1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=54
[Mse_TomorrowIcon1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather1]
	StringIndex=57

[Mse_Link2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=3
[Mse_Location2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=1
[Mse_CurrentIcon2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=35
[Mse_Sunrise2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=21
[Mse_Sunset2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=22
[Mse_Barom2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=19
[Mse_BaromUnits2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=12
[Mse_BaromStatus2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=20
	Substitute="0":"Steady","1":"Rising","2":"Falling"
[Mse_Humidity2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=17
[Mse_WindSpeed2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=16
[Mse_WindUnits2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=13
[Mse_WindDirection2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=15
	Substitute=#SubstWind#
[Mse_TempUnits2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=10
[Mse_WindChill2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=14
[Mse_Vis2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=18
[Mse_VisUnits2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=11
[Mse_CurrentConditions2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=34
[Mse_CurrentTemp2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=36
[Mse_CurrentTempHigh2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=49
[Mse_CurrentTempLow2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=48
[Mse_TodayIcon2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=51
[Mse_TomorrowLabel2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=52
[Mse_TomorrowTempHigh2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=55
[Mse_TomorrowTempLow2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=54
[Mse_TomorrowIcon2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather2]
	StringIndex=57

[Mse_Link3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=3
[Mse_Location3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=1
[Mse_CurrentIcon3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=35
[Mse_Sunrise3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=21
[Mse_Sunset3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=22
[Mse_Barom3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=19
[Mse_BaromUnits3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=12
[Mse_BaromStatus3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=20
	Substitute="0":"Steady","1":"Rising","2":"Falling"
[Mse_Humidity3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=17
[Mse_WindSpeed3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=16
[Mse_WindUnits3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=13
[Mse_WindDirection3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=15
	Substitute=#SubstWind#
[Mse_TempUnits3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=10
[Mse_WindChill3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=14
[Mse_Vis3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=18
[Mse_VisUnits3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=11
[Mse_CurrentConditions3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=34
[Mse_CurrentTemp3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=36
[Mse_CurrentTempHigh3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=49
[Mse_CurrentTempLow3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=48
[Mse_TodayIcon3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=51
[Mse_TomorrowLabel3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=52
[Mse_TomorrowTempHigh3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=55
[Mse_TomorrowTempLow3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=54
[Mse_TomorrowIcon3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[MeasureYahooWeather3]
	StringIndex=57
;===========================================
;  .Meters
;===========================================
[BG1]
	Meter=IMAGE
	ImageName=#Images#BarBG.png
	W=225
	H=#BGh#
[Sep1]
	Meter=IMAGE
	ImageName=#Images#divider.png
	X=10
	Y=4
	W=192
	H=3
	LeftMouseDownAction=!RainmeterRefresh
[Edit]
	Meter=IMAGE
	ImageName=#Images#edit.png
	X=206
	Y=1
	LeftMouseDownAction=!Execute ["#CURRENTPATH#_Weather.ini"]
[CurrentTemp]
	Meter=STRING
	MeterStyle=MeterStyle_1
	X=135
	Y=15
	Fontsize=13
	StringAlign=Right
	Text="[Mse_CurrentTemp#ZipVar#]°[Mse_TempUnits#ZipVar#]"
	DynamicVariables=1
[CurrentIcon]
	MeasureName=Mse_CurrentIcon#ZipVar#
	Meter=IMAGE
	Path=#Images#
	X=135
	Y=7
	W=75
	PreserveAspectRatio=1
	LeftMouseDownAction=!Execute [[Mse_Link#ZipVar#]]
	DynamicVariables=1
[Location]
	Meter=STRING
	MeterStyle=MeterStyle_1
	X=10
	Y=12
	Text=[Mse_Location#ZipVar#]
	DynamicVariables=1
[CurrentConditions]
	Meter=STRING
	MeterStyle=MeterStyle_1
	X=10
	Y=15r
	Text=[Mse_CurrentConditions#ZipVar#]
	DynamicVariables=1
[Sep2]
	Meter=IMAGE
	ImageName=#Images#divider3.png
	Y=R
	W=135
	H=2
[WindChill]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=10
	Y=2r
	Text="Feels: [Mse_WindChill#ZipVar#]°[Mse_TempUnits#ZipVar#]"
	DynamicVariables=1
[Wind]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=10
	Y=R
	Text="Wind: [Mse_WindSpeed#ZipVar#][Mse_WindUnits#ZipVar#] [Mse_WindDirection#ZipVar#]"
	DynamicVariables=1
[Humidity]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=10
	Y=R
	Text="Hum: [Mse_Humidity#ZipVar#]%"
	DynamicVariables=1
[Visibility]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=10
	Y=R
	Text="Vis: [Mse_Vis#ZipVar#][Mse_VisUnits#ZipVar#]"
	DynamicVariables=1
[Sunrise]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=195
	Y=0r
	StringAlign=Right
	Text="Rise: [Mse_Sunrise#ZipVar#]"
	DynamicVariables=1
[Barometer]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=10
	Y=R
	Text="Bar: [Mse_Barom#ZipVar#][Mse_BaromUnits#ZipVar#] [Mse_BaromStatus#ZipVar#]"
	DynamicVariables=1
[Sunset]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=195
	Y=0r
	StringAlign=Right
	Text="Set: [Mse_Sunset#ZipVar#]"
	DynamicVariables=1
[SunriseIcon]
	Meter=IMAGE
	ImageName=#Images#32.png
	X=199
	Y=-15r
	W=15
	PreserveAspectRatio=1
[SunsetIcon]
	Meter=IMAGE
	ImageName=#Images#31.png
	X=201
	Y=16r
	W=12
	PreserveAspectRatio=1
[Sep3]
	Meter=IMAGE
	ImageName=#Images#divider3.png
	Y=14r
[TodayLabel]
	Meter=STRING
	MeterStyle=MeterStyle_1
	X=10
	Y=2r
	Text="Today:"
[TomorrowLabel]
	Meter=STRING
	MeterStyle=MeterStyle_1
	X=117
	Y=0r
	Text="[Mse_TomorrowLabel#ZipVar#]:"
	DynamicVariables=1
[TodayTempHigh]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=10
	Y=R
	Text="High: [Mse_CurrentTempHigh#ZipVar#]°[Mse_TempUnits#ZipVar#]"
	DynamicVariables=1
[TomorrowTempHigh]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=117
	Y=0r
	Text="High: [Mse_TomorrowTempHigh#ZipVar#]°[Mse_TempUnits#ZipVar#]"
	DynamicVariables=1
[TodayTempLow]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=10
	Y=R
	Text="Low: [Mse_CurrentTempLow#ZipVar#]°[Mse_TempUnits#ZipVar#]"
	DynamicVariables=1
[TomorrowTempLow]
	Meter=STRING
	MeterStyle=MeterStyle_2
	X=117
	Y=0r
	Text="Low: [Mse_TomorrowTempLow#ZipVar#]°[Mse_TempUnits#ZipVar#]"
	DynamicVariables=1
[TodayIcon]
	MeasureName=Mse_TodayIcon#ZipVar#
	Meter=IMAGE
	Path=#Images#
	X=73
	Y=-24r
	W=35
	PreserveAspectRatio=1
	LeftMouseDownAction=!Execute [[Mse_Link#ZipVar#]]
	DynamicVariables=1
[Sep4]
	Meter=IMAGE
	ImageName=#Images#divider4.png
	X=113
	Y=-2r
	W=2
	H=40
[TomorrowIcon]
	MeasureName=Mse_TomorrowIcon#ZipVar#
	Meter=IMAGE
	Path=#Images#
	X=180
	Y=2r
	W=35
	PreserveAspectRatio=1
	LeftMouseDownAction=!Execute [[Mse_Link#ZipVar#]]
	DynamicVariables=1
[Sep5]
	Meter=IMAGE
	ImageName=#Images#Divider3.png
	Y=(#BGh#-18)
[Prev]
	Meter=STRING
	X=10
	Y=R
	MeterStyle=MeterStyle_2
	Text="<<Prev"
	LeftMouseDownAction=!RainMeterSetVariable ZipVar [Mse_Prev]
[Next]
	Meter=STRING
	X=215
	Y=0r
	MeterStyle=MeterStyle_2
	StringAlign=Right
	Text="Next>>"
	LeftMouseDownAction=!RainMeterSetVariable ZipVar [Mse_Next]
[SepEnd]
	Meter=IMAGE
	ImageName=#Images#Divider3.png
	Y=(#BGh#-2)
;===========================================
;  .End
;===========================================
Last edited by nzdawghaus on May 17th, 2010, 11:15 pm, edited 1 time in total.
User avatar
nzdawghaus
Posts: 11
Joined: November 20th, 2009, 3:58 pm

Re: need help with switching weather images

Post by nzdawghaus »

:hopeful bump:
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: need help with switching weather images

Post by dragonmage »

I notice your meters reference Measurenames that include #ZipVar# I had no idea that would work, but I don't see any measures that include #ZipVar# in the name.
User avatar
nzdawghaus
Posts: 11
Joined: November 20th, 2009, 3:58 pm

Re: need help with switching weather images

Post by nzdawghaus »

the #ZipVar# was just my best guess at getting DynamicVariables to work on the images. You're probably right that it won't work. I've been going crosseyed trying to force this thing into submission, maybe I need to do the disable/enable thing.
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: need help with switching weather images

Post by dragonmage »

That would be my guess. Have the switcher disable the icon measures you don't want displayed.
User avatar
nzdawghaus
Posts: 11
Joined: November 20th, 2009, 3:58 pm

Re: need help with switching weather images

Post by nzdawghaus »

Another thing I was wondering about, is it too much to hit Yahoo with webparser three different times (one for each zipcode)?
User avatar
nzdawghaus
Posts: 11
Joined: November 20th, 2009, 3:58 pm

Re: need help with switching weather images

Post by nzdawghaus »

Hah, I figured it out! Naturally it was something simple. Instead of using MeasureName, I switched it to ImageName, and now its all good. Thank you, dragonmage, for taking a look. :D

original/borked...

Code: Select all

[CurrentIcon]
   MeasureName=Mse_CurrentIcon#ZipVar#
   Meter=IMAGE
   Path=#Images#
   X=135
   Y=7
   W=75
   PreserveAspectRatio=1
   LeftMouseDownAction=!Execute [[Mse_Link#ZipVar#]]
   DynamicVariables=1
[TodayIcon]
   MeasureName=Mse_TodayIcon#ZipVar#
   Meter=IMAGE
   Path=#Images#
   X=73
   Y=-24r
   W=35
   PreserveAspectRatio=1
   LeftMouseDownAction=!Execute [[Mse_Link#ZipVar#]]
   DynamicVariables=1
[TomorrowIcon]
   MeasureName=Mse_TomorrowIcon#ZipVar#
   Meter=IMAGE
   Path=#Images#
   X=180
   Y=2r
   W=35
   PreserveAspectRatio=1
   LeftMouseDownAction=!Execute [[Mse_Link#ZipVar#]]
   DynamicVariables=1
new/working...

Code: Select all

[CurrentIcon]
	Meter=IMAGE
	ImageName=[Mse_CurrentIcon#ZipVar#]
	Path=#Images#
	X=135
	Y=7
	W=75
	PreserveAspectRatio=1
	LeftMouseDownAction=!Execute [[Mse_Link#ZipVar#]]
	DynamicVariables=1
[TodayIcon]
	Meter=IMAGE
	ImageName=[Mse_TodayIcon#ZipVar#]
	Path=#Images#
	X=73
	Y=-24r
	W=35
	PreserveAspectRatio=1
	LeftMouseDownAction=!Execute [[Mse_Link#ZipVar#]]
	DynamicVariables=1
[TomorrowIcon]
	Meter=IMAGE
	ImageName=[Mse_TomorrowIcon#ZipVar#]
	Path=#Images#
	X=180
	Y=2r
	W=35
	PreserveAspectRatio=1
	LeftMouseDownAction=!Execute [[Mse_Link#ZipVar#]]
	DynamicVariables=1
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: need help with switching weather images

Post by dragonmage »

Hitting Yahoo 3 times probably isn't the best way to do it. You could set the UpdateRates differently so they don't all fire at the same time.
wasky1
Posts: 127
Joined: June 10th, 2009, 8:26 am

Re: need help with switching weather images

Post by wasky1 »

you could set the update rates massively infrequent then using a counter to "pluginbang" the measures equally spaced out so they dont clash update
User avatar
nzdawghaus
Posts: 11
Joined: November 20th, 2009, 3:58 pm

Re: need help with switching weather images

Post by nzdawghaus »

thanks, guys. I'll probably just go with different update rates. This thing is bloated enough without adding more counters to it.
Post Reply