It is currently May 19th, 2024, 4:46 am

Skin update every hour

Get help with creating, editing & fixing problems with skins
User avatar
xenium
Posts: 871
Joined: January 4th, 2018, 9:52 pm

Re: Skin update every hour

Post by xenium »

balala wrote:Just one more question: does your skin uses WebParser measure(s) and that/those measure(s) should have to be updated from 10 to 10 minutes, plus at entire hours? Because if this is the situation, a completely different approach should have to be used.
Yes.
I'm working on a weather skin, which will also contain a weather forecast for every hour.
Every hour, the current hour (along with the forecast) is displayed at the top of the list.
If the skin update is only done every 10 minutes, the previous hour will be displayed for another 3,5 ... 10 minutes until the update takes place at the new hour.
That's why I would like an additional update every hour
User avatar
jsmorley
Developer
Posts: 22633
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Skin update every hour

Post by jsmorley »

Bring Me A Rock is like my least favorite game...
User avatar
balala
Rainmeter Sage
Posts: 16238
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Skin update every hour

Post by balala »

xenium wrote:Yes.
I'm working on a weather skin, which will also contain a weather forecast for every hour.
Every hour, the current hour (along with the forecast) is displayed at the top of the list.
If the skin update is only done every 10 minutes, the previous hour will be displayed for another 3,5 ... 10 minutes until the update takes place at the new hour.
That's why I would like an additional update every hour
Then definitely Update=1000 should have to be used.
Please post the code you have so far. Or if there are used resources (images, eventually some .lua script files and so on), pack the whole config and upload it.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5411
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Skin update every hour

Post by eclectic-tech »

jsmorley wrote:Bring Me A Rock is like my least favorite game...
:lol: Here is how I approach Problem Solving:
If offended by language, don't look in the spoiler...
Image
User avatar
xenium
Posts: 871
Joined: January 4th, 2018, 9:52 pm

Re: Skin update every hour

Post by xenium »

It's done !
Thanks jsmorley for the code posted above !

Code: Select all

[MeasureTime]
Measure=Time
Format=%#M.%#S
IfCondition=(Trunc(MeasureTime) = 0) && (Frac(MeasureTime) = 0)
IfTrueAction=[!CommandMeasure MeasureParent "Update"]