It is currently April 26th, 2024, 6:17 am

Webparser graph for covid cases

Get help with creating, editing & fixing problems with skins
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Re: Webparser graph for covid cases

Post by Alloutofmercy »

wELL I had heard that to move a gif in rainmeter we got to convert it into indie png images. But unfortunately my gif turned out to be 51 images long.
https://docs.rainmeter.net/tips/animated-gif-files/#:~:text=Method%20Two%3A%20Converting%20a%20.gif%20to%20a%20multiple%20frame%20%22Bitmap%22%20image
Yes, so I made them all into png using giffframe.exe. Now I guess I can make a bitmap meter out of all those images?
And it was also working(Partially :Whistle )
BOOTY
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Webparser graph for covid cases

Post by death.crafter »

Dancing02_xx.rmskin
You do not have the required permissions to view the files attached to this post.
from the Realm of Death
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Webparser graph for covid cases

Post by death.crafter »

balala wrote: January 15th, 2022, 9:44 am But that's not a bitmap. There are 52 individual frames (.png images), which can be used on an Image meter. And that Image meter can be easily resized through the W and H options, no need to use TransformationMatrix. You said you want to use Bitmap meter, which is a completely different thing.
Additionally, it's almost impossible to download all those 52 images, one by one. Sorry, but I definitely won't do this...
May be you don't have to :Whistle
Screenshot 2022-01-15 153345.png
You do not have the required permissions to view the files attached to this post.
from the Realm of Death
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Re: Webparser graph for covid cases

Post by Alloutofmercy »

You... You are just awsome.
Btw, can you explain me how calc works here
BOOTY
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Webparser graph for covid cases

Post by death.crafter »

Alloutofmercy wrote: January 15th, 2022, 10:24 am You... You are just awsome.
Btw, can you explain me how calc works here
It's just an ternary operation.

The Calc = 50 ? is the condition. If true, it sets the value of the measure 0 otherwise, it increases the value of the measure by 1.

Look up ternary operator to get more information. But in most places, you'd find == as the equality operator, but somehow the developers of Rainmeter decided to use a single =.

Anyway, that's just it.
from the Realm of Death
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Re: Webparser graph for covid cases

Post by Alloutofmercy »

yeah so what if I have 25 images in total?
And I am guessing updatedivider wont work only update=45 in [Rainmeter] works right?
BOOTY
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Webparser graph for covid cases

Post by death.crafter »

Alloutofmercy wrote: January 15th, 2022, 12:04 pm yeah so what if I have 25 images in total?
And I am guessing updatedivider wont work only update=45 in [Rainmeter] works right?
I didn't understand the question
from the Realm of Death
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Re: Webparser graph for covid cases

Post by Alloutofmercy »

Never mind. I just figured it out. Thanks again
BOOTY
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Webparser graph for covid cases

Post by balala »

death.crafter wrote: January 15th, 2022, 11:56 am The Calc = 50 ? is the condition. If true, it sets the value of the measure 0 otherwise, it increases the value of the measure by 1.
In my opinion a much simpler formula would be Formula=(( Calc + 1 ) % 52 ). No condition required in this case.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Webparser graph for covid cases

Post by death.crafter »

balala wrote: January 15th, 2022, 2:37 pm In my opinion a much simpler formula would be Formula=(( Calc + 1 ) % 52 ). No condition required in this case.
Formula=Calc = 51 ? 0 : Calc + 1
Formula=(Calc + 1) % 52

:confused:
from the Realm of Death