I would like my weather app to refresh 15 seconds after my computer wakes up.
I have been able to put together the following:
OnWakeAction=!Refresh
but can't figure out how to stagger the action by 15 seconds.
Thanks!
It is currently April 27th, 2024, 1:25 am
refresh weather skin 15 seconds after wakeup
-
- Posts: 3
- Joined: February 15th, 2014, 2:34 pm
-
- Posts: 1173
- Joined: January 22nd, 2011, 4:23 pm
- Location: GMT +8
Re: refresh weather skin 15 seconds after wakeup
Just out of interest, why would you want the weather skin to update 15 seconds after start-up?
-
- Posts: 3
- Joined: February 15th, 2014, 2:34 pm
Re: refresh weather skin 15 seconds after wakeup
My laptop doesn't always connect to the internet immediately on wakeup. Sometimes it takes a few seconds, and when this happens I have to manually refresh my weather app.Mordasius wrote:Just out of interest, why would you want the weather skin to update 15 seconds after start-up?
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: refresh weather skin 15 seconds after wakeup
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
OnWakeAction=[!EnableMeasure MeasureDelay]
[Variables]
SecondsToDelay=14
[MeasureDelay]
Measure=Calc
Formula=MeasureDelay + 1
IfAboveValue=#SecondsToDelay#
IfAboveAction=[!Refresh]
Disabled=1
-
- Posts: 3
- Joined: February 15th, 2014, 2:34 pm
Re: refresh weather skin 15 seconds after wakeup
Thank you, JSMorley, your code worked!
-
- Posts: 1
- Joined: June 26th, 2022, 12:10 pm
Re: refresh weather skin 15 seconds after wakeup
Hi,
Noob question...how do I input this script?
Cheers
Noob question...how do I input this script?
Cheers
-
- Rainmeter Sage
- Posts: 5407
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: refresh weather skin 15 seconds after wakeup
Add the above code provided by JSMorley (copy/paste) into your weather skin, save the file.
Load/refresh your weather skin.
When your computer wakes, the weather skin will refresh after 15 seconds.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: refresh weather skin 15 seconds after wakeup
Just to be a little bit more precise, I add to eclectic-tech's reply the followings:
- Add the OnWakeAction option from jsmorley's post to your [Rainmeter] section. If there is no [Rainmeter] section (not too probably, but possible) add the jsmorley's section to the code. If on the other hand there is an OnWakeAction option in the [Rainmeter] section, just add the [!EnableMeasure MeasureDelay] bang to the existing option.
- Add the SecondsToDelay variable to the [Variables] section, besides the existing variables. In most cases there should be such a section, but if there is not, just add jsmorely's one.
- Finally add the [MeasureDelay] measure to the code.