It is currently April 23rd, 2024, 6:23 pm

GIF vs UPDATE RATE

Get help with installing and using Rainmeter.
bernardovs23
Posts: 28
Joined: April 6th, 2017, 2:43 pm

GIF vs UPDATE RATE

Post by bernardovs23 »

Hi! :welcome:

I'm working on a status widget, in which the colon blinks and the shadow changes color every second, so I wrote this on the Rainmeter section: Update=1000

Now I wanted to add a GIF and I needed to write this on the Rainmeter section so the timing was correct: Update=100

But I need both update rates! What can I do? :confused:

In case if you need, here is the code (looks a bit messy)
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Metadata]
Name= V A P O R W A V E
Author= @bernardovs23
Information= Vaporwave widgets
Version= 1.0
[Variables]
Shadow=199,116,232
[Measure.Time.Hour]
Measure=Time
Format=%I
[Measure.Time.Minute]
Measure=Time
Format=%M
[Measure.Time.AMPM]
Measure=Time
Format=%p
[Measure.Time.Blink]
Measure=Calc
Formula=Counter % 2

IfEqualValue=0
IfEqualAction=[!SetOption Meter.Time.Shadow Text "[Measure.Time.Hour] [Measure.Time.Minute]"][!SetOption Meter.Time Text "[Measure.Time.Hour] [Measure.Time.Minute]"][!SetVariable Shadow "255,106,213"]

IfAboveValue=0
IfAboveAction=[!SetOption Meter.Time.Shadow Text "[Measure.Time.Hour]:[Measure.Time.Minute]"][!SetOption Meter.Time Text "[Measure.Time.Hour]:[Measure.Time.Minute]"][!SetVariable Shadow "199,116,232"]
[Meter.Time.Shadow]
Meter=String
Text=[Measure.Time.Hour]:[Measure.Time.Minute]
X=5
Y=5
FontColor=#Shadow#
FontFace=VCR OSD Mono
FontSize=100
AntiAlias=1
DynamicVariables=1
[Meter.Time]
Meter=String
Text=[Measure.Time.Hour]:[Measure.Time.Minute]
FontColor=255,255,255
FontFace=VCR OSD Mono
FontSize=100
AntiAlias=1
DynamicVariables=1
[Measure.Day]
Measure=Time
Format=%A, %B %d, %G
[Meter.Day.Shadow]
Meter=String
MeasureName=Measure.Day
X=227
Y=-15R
FontColor=#Shadow#
FontFace=VCR OSD Mono
FontSize=20
StringAlign=Center
StringCase=Upper
AntiAlias=1
DynamicVariables=1
[Meter.Day]
Meter=String
MeasureName=Measure.Day
X=-2.5r
Y=-2.5r
FontColor=255,255,255
FontFace=VCR OSD Mono
FontSize=20
StringAlign=Center
StringCase=Upper
AntiAlias=1
DynamicVariables=1
[Measure.GIF]
Measure=Calc
Formula=Counter % 10
[Meter.GIF]
Meter=Image
ImageName=#@#GIF\[Measure.GIF].png
Y=R
DynamicVariables=1
Last edited by bernardovs23 on April 9th, 2017, 1:29 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16163
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: GIF vs UPDATE RATE

Post by balala »

In a single skin, you can use one single Update value. There is no possibility to use more.
However, there are two possibilities:
  • Use Update=100, then add UpdateDivider=10 to each meter and measure which should be updated once per second.
  • The alternative approach would be to use Update=100 and [url=https://docs.rainmeter.net/manual/skins/rainmeter-section/#DefaultUpdateDivider]DefaultUpdateDivider=10[/url] (both of them in the [Rainmeter] section), then add UpdateDivider=1 to each meter and measure which should be updated ten times per second.
bernardovs23
Posts: 28
Joined: April 6th, 2017, 2:43 pm

Re: GIF vs UPDATE RATE

Post by bernardovs23 »

balala wrote:In a single skin, you can use one single Update value. There is no possibility to use more.
However, there are two possibilities:
  • Use Update=100, then add UpdateDivider=10 to each meter and measure which should be updated once per second.
  • The alternative approach would be to use Update=100 and [url=https://docs.rainmeter.net/manual/skins/rainmeter-section/#DefaultUpdateDivider]DefaultUpdateDivider=10[/url] (both of them in the [Rainmeter] section), then add UpdateDivider=1 to each meter and measure which should be updated ten times per second.
Thanks for trying, but I tried both and none worked properly :confused:
User avatar
balala
Rainmeter Sage
Posts: 16163
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: GIF vs UPDATE RATE

Post by balala »

bernardovs23 wrote:Thanks for trying, but I tried both and none worked properly :confused:
Could you please pack the appropriate config and upload it? I'd like to see your actual code, as well as I'd need the content of the GIF folder (the images).
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: GIF vs UPDATE RATE

Post by kyriakos876 »

bernardovs23 wrote: Now I wanted to add a GIF [/snippet]
Hello bernardovs23, stating the obvious here but you never know, are you trying to display a .GIF file or you have many .png files? Because rainmeter doesn't support .GIF files on the Image meter and you have to brake it down to multiple frames. If that's not the case, make sure you have the names of every .png file named 0.png 1.png 2.png... and so on and the you are using the correct path in your meter.

If this is not the problem either, please, attach the skin for checking it deeper.

EDIT: Yeah... what balala above said :D
bernardovs23
Posts: 28
Joined: April 6th, 2017, 2:43 pm

Re: GIF vs UPDATE RATE

Post by bernardovs23 »

kyriakos876 wrote:Hello bernardovs23, stati...
They are different .png files
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: GIF vs UPDATE RATE

Post by kyriakos876 »

bernardovs23 wrote:They are different .png files
Do you mind uploading the whole skin? With the .png files included? If you are new and don't know how let me know, I'll tell you how to attach the skin if needed.
bernardovs23
Posts: 28
Joined: April 6th, 2017, 2:43 pm

Re: GIF vs UPDATE RATE

Post by bernardovs23 »

balala wrote:Could you please pack the appropriate config and upload it? I'd like to see your actual code, as well as I'd need the content of the GIF folder (the images).
kyriakos876 wrote:Do you mind uploading the whole skin? With the .png files included? If you are new and don't know how let me know, I'll tell you how to attach the skin if needed.
Here is the .rmskin file http://www.mediafire.com/file/aqiii1cc9c4wcne/V_A_P_O_R_W_A_V_E_%28unfinished%29_1.0.rmskin
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: GIF vs UPDATE RATE

Post by eclectic-tech »

bernardovs23 wrote:Thanks for trying, but I tried both and none worked properly :confused:
Both of balala's solutions work... what do you mean by 'worked properly'?

Here is your code using DefaultUpdateDivider approach:

Code: Select all

[Rainmeter]
Update=100
DefaultUpdateDivider=10
DynamicWindowSize=1

[Metadata]
Name= V A P O R W A V E
Author= @bernardovs23
Information= Vaporwave widgets
Version= 1.0

[Variables]
Shadow=199,116,232

[Measure.Time.Hour]
Measure=Time
Format=%I

[Measure.Time.Minute]
Measure=Time
Format=%M

[Measure.Time.AMPM]
Measure=Time
Format=%p

[Measure.Time.Blink]
Measure=Calc
Formula=Counter % 2
UpdateDivider=1

IfEqualValue=0
IfEqualAction=[!SetOption Meter.Time.Shadow Text "[Measure.Time.Hour]:[Measure.Time.Minute]"][!SetOption Meter.Time Text "[Measure.Time.Hour]:[Measure.Time.Minute]"][!SetVariable Shadow "255,106,213"]

IfAboveValue=0
IfAboveAction=[!SetOption Meter.Time.Shadow Text "[Measure.Time.Hour]:[Measure.Time.Minute]"][!SetOption Meter.Time Text "[Measure.Time.Hour]:[Measure.Time.Minute]"][!SetVariable Shadow "199,116,232"]

[Meter.Time.Shadow]
Meter=String
Text=[Measure.Time.Hour]:[Measure.Time.Minute]
X=5
Y=5
FontColor=#Shadow#
FontFace=VCR OSD Mono
FontSize=100
AntiAlias=1
DynamicVariables=1
UpdateDivider=1

[Meter.Time]
Meter=String
Text=[Measure.Time.Hour]:[Measure.Time.Minute]
FontColor=255,255,255
FontFace=VCR OSD Mono
FontSize=100
AntiAlias=1
DynamicVariables=1
UpdateDivider=1

[Measure.Day]
Measure=Time
Format=%A, %B %d, %G

[Meter.Day.Shadow]
Meter=String
MeasureName=Measure.Day
X=227
Y=-15R
FontColor=#Shadow#
FontFace=VCR OSD Mono
FontSize=20
StringAlign=Center
StringCase=Upper
AntiAlias=1
DynamicVariables=1
UpdateDivider=1

[Meter.Day]
Meter=String
MeasureName=Measure.Day
X=-2.5r
Y=-2.5r
FontColor=255,255,255
FontFace=VCR OSD Mono
FontSize=20
StringAlign=Center
StringCase=Upper
AntiAlias=1
DynamicVariables=1

[Measure.GIF]
Measure=Calc
Formula=Counter % 10
UpdateDivider=1

[Meter.GIF]
Meter=Image
ImageName=#@#GIF\[Measure.GIF].png
Y=R
DynamicVariables=1
UpdateDivider=1
bernardovs23
Posts: 28
Joined: April 6th, 2017, 2:43 pm

Re: GIF vs UPDATE RATE

Post by bernardovs23 »

eclectic-tech wrote:Both of balala's solutions work... what do you mean by 'worked properly'?

Here is your code using DefaultUpdateDivi...
Thanks for trying, but you're skin made the shadow blink as fast as the GIF (which I don't want) and the colon didn't blink