brax64 wrote: ↑September 2nd, 2020, 9:21 pm
I would like, if it's possible, to update my skin at a precise point in time. My skin has an UpdateRate=600 (every 10 min) so I would like that the very first update (or refresh) happening at the closest 10min mark, (like 15:00 15:10 15:20 and so on), I mean if I load the skin (ore refresh it...) at 15:02, it will update at 15:10. Hope to have made myself clear
This can be done. Here's one way:
First, on your main time measure, set the
UpdateInterval=-1 so it will update only once (the first time your skin loads).
Second, create a
Calc measure that will act as a trigger. The formula is something like
Formula=([your time measure:Timestamp] % 600). So this measure will return 0 every 10th minute (by the clock). Add an IfCondition or IfValue to test for zero, and then use an !UpdateMeasure bang to update your main time measure.
Depending on your skin you might not need a separate Calc measure, and instead you can handle the formula in an IfCondition of some other measure that can act as your trigger.
P.S.: For this to work, you should use the skin's default
Update=1000 (once per second). You'd use
UpdateRate=600 on a
WebParser measure, not the skin. If you want a WebParser to fire on the 10's, set
UpdateRate=-1 on the WebParser measure, then include the measure in your trigger measure and for the action add
[!CommandMeasure <your web measure> Update] to force it to update.