It is currently September 29th, 2024, 5:19 am
Weather wallpaper changer
-
- Posts: 18
- Joined: June 9th, 2010, 12:32 pm
Re: Weather wallpaper changer
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!
-
- Developer
- Posts: 22783
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Weather wallpaper changer
Good deal.
Have fun.
Have fun.
-
- Posts: 218
- Joined: August 5th, 2014, 5:04 pm
- Location: Luleå, Sweden
Re: Weather wallpaper changer
Hope it's alright to dump this thread 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?
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?
-
- Rainmeter Sage
- Posts: 16602
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Weather wallpaper changer
Maybe you could try to add an OnChangeAction option to the [MeasureImage] section:
To make this to work, you have to properly name your pngs.
Code: Select all
[MeasureImage]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeather]
StringIndex=1
OnChangeAction=[!SetWallpaper "[MeasureImage].png"]
DynamicVariables=1
-
- Posts: 2
- Joined: September 18th, 2016, 12:27 am
Re: Weather wallpaper changer
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.
-
- Rainmeter Sage
- Posts: 5534
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Weather wallpaper changer
Take a look at this rmskin by jsmorley: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.
[ Direct Link ]
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 2
- Joined: September 18th, 2016, 12:27 am