It is currently April 16th, 2024, 7:09 pm

Weather wallpaper changer

General topics related to Rainmeter.
User avatar
WhiteBaron
Posts: 18
Joined: June 9th, 2010, 12:32 pm

Re: Weather wallpaper changer

Post by WhiteBaron »

Oh, well, that was and easy fix. Thanks for all the help, now I need to find ~30 weather related wallpapers to finish this off. Cheers!
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Weather wallpaper changer

Post by jsmorley »

Good deal.

Have fun.
User avatar
Niemil
Posts: 218
Joined: August 5th, 2014, 5:04 pm
Location: Luleå, Sweden

Re: Weather wallpaper changer

Post by Niemil »

Hope it's alright to dump this thread :D I wanted to make a skin that changes wallpaper on weather change, but I googled and found this now as well of your skin here ( http://white-baron.deviantart.com/art/Weatherwall-196718197 ), so then it's already made.

However I were almost about to make a thread to ask how I could make the wallpaper only change when the icon is different (so it wont update wallpaper on each load, instead it checks what wallpaper (number) it previously changed to before it changes.

I started write a code which looks like this, before I found this thread:

[img][Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Variables]
Location=SWXX0019
Unit=M

[MeasureWeather]
Measure=Plugin
Plugin=WebParser
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Unit#&dayf=0
RegExp=(?siU)<cc>.*<icon>(.*)</icon>
FinishAction=[!SetWallpaper "#@#Images\[MeasureImage].jpg" Stretch]

[MeasureImage]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeather]
StringIndex=1

[Meter]
Meter=Image[/img]


However, when I now see this thread and found the skin that is made with this thread, I wonder how it works?

There's no !SetWallpaper bang here, instead I see
FinishAction=!Execute ["#CurrentPath#Set.exe" "#CurrentPath#Wallpapers\[MeasureIcon].jpg"]
Is this before !SetWallpaper was made?

As well, wont this update on each time anything in the parsing link changes? So if temp only changes but not icon, it will go for another change wallpaper bang?
If so, how could I make it not do this?
User avatar
balala
Rainmeter Sage
Posts: 16142
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weather wallpaper changer

Post by balala »

Maybe you could try to add an OnChangeAction option to the [MeasureImage] section:

Code: Select all

[MeasureImage]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeather]
StringIndex=1
OnChangeAction=[!SetWallpaper "[MeasureImage].png"]
DynamicVariables=1
To make this to work, you have to properly name your pngs.
rainmeterwork
Posts: 2
Joined: September 18th, 2016, 12:27 am

Re: Weather wallpaper changer

Post by rainmeterwork »

Hi im tryng make work what read here, but if there is some skin that changing wallpaper, not only image, is better but didnt find any.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weather wallpaper changer

Post by eclectic-tech »

rainmeterwork wrote:Hi im tryng make work what read here, but if there is some skin that changing wallpaper, not only image, is better but didnt find any.
Take a look at this rmskin by jsmorley:
rainmeterwork
Posts: 2
Joined: September 18th, 2016, 12:27 am

Re: Weather wallpaper changer

Post by rainmeterwork »