Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

How to get value in percent

General discussion about LCD Smartie.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351

Post Reply
DotA_Player
Posts: 57
Joined: February 23rd, 2008, 7:42 pm

How to get value in percent

Post by DotA_Player »

Hello,

I want show my current fan speed in % of total speed, because I've connected 3 fans on single connector, but speed is being checked only from one fan. My idea is, that smartie may calculate it like this for 2200RPM fan :

(*current fan speed*/2200)x100=speed in percents

But I don't know how to do that ;(

Thank you.

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

math.dll or demo.dll have the functions needed for math calculations, have a look at them.

It is safe to nest them two times so that you will get your values. ;)

DotA_Player
Posts: 57
Joined: February 23rd, 2008, 7:42 pm

Working

Post by DotA_Player »

Yop, I made it like this :

$dll(math.dll,9,$dll(math.dll,5,$dll(Everest.dll,1,Fcha,value),2222),1)

Thanks

DotA_Player
Posts: 57
Joined: February 23rd, 2008, 7:42 pm

Re: How to get value in percent

Post by DotA_Player »

I am already using it with math.dll w/o problems, but I am wondering what can demo.dll do? Is there any list of functions or something?

limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Re: How to get value in percent

Post by limbo »

DotA_Player wrote: I am wondering what can demo.dll do? Is there any list of functions or something?
http://forums.lcdsmartie.org/viewtopic.php?p=640#p640

Post Reply