It is currently September 29th, 2023, 2:25 pm

Gadgets 7.5.0 - inspired by AddGadgets.com Sidebar Gadgets

A package of skins with a "theme" or by a single author
mborghi
Posts: 10
Joined: May 28th, 2021, 7:51 pm

Re: Gadgets 7.5.0 - inspired by AddGadgets.com Sidebar Gadgets

Post by mborghi »

SilverAzide wrote: August 18th, 2023, 11:13 pm I noticed that; nice job! :thumbup:

OK, to adjust the Drives Meter, you'll need to add 26 Calc measures to calculate the percentage empty space. There are already measures for the filled space. In the Drives Meter.ini file, find the measure [MeasureDiskPercentFullA]. After this measure, add a new measure:

Code: Select all

[MeasureDiskPercentEmptyA]
Measure=Calc
Formula=MeasureDiskSpaceFreeA / MeasureDiskSpaceTotalA
Group=MeasureGroupA
Disabled=#HideDiskA#
Repeat this 25 more times for drives B to Z, changing the "A" suffix to the proper drive letter.

Next, open the DrivesText.inc file and find the pair of meters like these:

Code: Select all

[DriveUsedA]
...
Text="Used: #TextDiskSpaceUsedA#B"
...

[DriveFreeA]
...
Text="Free: #TextDiskSpaceFreeA#B"
...
Change these measures as follows:

Code: Select all

[DriveUsedA]
...
Text="Used: [MeasureDiskPercentFullA:%,2]%"
...

[DriveFreeA]
...
Text="Free: [MeasureDiskPercentEmptyA:%,2]%"
...
Repeat this for drives B to Z, changing the "A" suffix to the proper drive letter. I think that should do it; I didn't try it, but this should be close.
Thank you!!
User avatar
CoJoe
Posts: 13
Joined: August 12th, 2023, 2:34 am

Re: Gadgets 7.5.0 - inspired by AddGadgets.com Sidebar Gadgets

Post by CoJoe »

SilverAzide wrote: August 22nd, 2023, 11:54 am Sure, glad you got it looking the way you want!

Looks like something is wrong with the [CalcGPUPercentTempMax] measure. You can check the About > Skins > GPU Meter window and see if it is returning a value. If not, then check that the [MeasureGPUThermalLimit] measure is returning a non-zero value.
Good find, [CalcGPUPercentTempMax] is indeed returning a value of 0. [MeasureGPUThermalLimit] is also giving a value of 0, which might be the reason the formula doesn't work. I replaced the MeasureGPUThermalLimit value with a static value of 100, and it's working! Thanks for the insight! I'll wait until the update for a less jury-rigged version haha
User avatar
SilverAzide
Rainmeter Sage
Posts: 2465
Joined: March 23rd, 2015, 5:26 pm

Re: Gadgets 7.5.0 - inspired by AddGadgets.com Sidebar Gadgets

Post by SilverAzide »

CoJoe wrote: August 24th, 2023, 2:59 am Good find, [CalcGPUPercentTempMax] is indeed returning a value of 0. [MeasureGPUThermalLimit] is also giving a value of 0, which might be the reason the formula doesn't work. I replaced the MeasureGPUThermalLimit value with a static value of 100, and it's working! Thanks for the insight! I'll wait until the update for a less jury-rigged version haha
Ah, OK! Sounds like either you didn't define a variable named HWiNFO_GPU0_ThermalLimit, and/or you didn't set it to the HWiNFO sensor index for this sensor (and assuming you enabled reporting). Once you do that, you should be good to go.
Gadgets Wiki GitHub More Gadgets...
User avatar
CoJoe
Posts: 13
Joined: August 12th, 2023, 2:34 am

Re: Gadgets 7.5.0 - inspired by AddGadgets.com Sidebar Gadgets

Post by CoJoe »

SilverAzide wrote: August 24th, 2023, 11:54 am Ah, OK! Sounds like either you didn't define a variable named HWiNFO_GPU0_ThermalLimit, and/or you didn't set it to the HWiNFO sensor index for this sensor (and assuming you enabled reporting). Once you do that, you should be good to go.
Aye I had the sensors not set up correctly for AMD systems