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

2Bars plugin

Announcements of new plugins or updates.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
elesquiador
Plugin Author
Posts: 18
Joined: February 9th, 2007, 10:47 pm

2Bars plugin

Post by elesquiador »

Attached is a plugin to display a single custom character that shows two vertical bar graphs. The function number (1-8) determines which character will be used, and each of the 2 parameters is the value of one of the bars. The minimum and maximum values are assumed to be 0 and 100.

syntax is:
$dll(2bars, <custom character number to use>, <value of left bar>, <value of right bar>)

You can use this to get a graph of the CPU usage of each of your dual cores:

$dll(2bars, 1, $dll(perf,4,5,\Processor(0)\% Processor Time), $dll(perf,4,5,\Processor(1)\% Processor Time))

The C++ source code is in the plugin development forum, if anybody would like to modify or improve this plugin.
You do not have the required permissions to view the files attached to this post.

fishthecat
LCD Smartie Fanatic
Posts: 132
Joined: March 9th, 2005, 2:21 pm
Location: UK

Post by fishthecat »

This works really well. Thanks!
I use it to show both my system volume and winamp volume in the same block. :)

makarona
Posts: 30
Joined: March 15th, 2009, 10:59 pm

Post by makarona »

Not work for me. Just blank screen, when i use example from .txt file. Sorry:)

custommx3
Posts: 1
Joined: June 26th, 2009, 2:18 am

Post by custommx3 »

same here.. nothing

Vista 32bit.

mattcro
Forum Supporter
Posts: 590
Joined: March 8th, 2006, 1:58 pm
Location: Scotland

Post by mattcro »

If your language/locale setting is not English, you will have to change the performance counter names in the 2bars example.

To test the plugin itself, try something simple like
$dll(2bars, 1, 30, 100)

Post Reply