Author Topic: [Release] LH_Dial (v1.03)  (Read 11284 times)

Triscopic

  • Moderator
  • Hero Member
  • *****
  • Posts: 729
  • ˙ǝıl ɐ sı ǝʞɐɔ ǝɥʇ
[Release] LH_Dial (v1.03)
« on: 2011-01-01 16:48:42 »
(You must be logged in to view these screen shots and download the plugin)
LH_Dial
Latest Version: 1.03

LH_Dial is a plugin that allows you to display various statistics in the form of a dial or "speedometer", such as CPU & Memory usage. Basically it offers the same data as LH_Bar (cpu usage, physical & virtual memory usage, network in/out), but instead of rendering data as a simple bar, it now appears as a dial.

Additionally this plugin also restores the original analogue clock functionality that early versions of LCDHost had but which was since removed.

Below are some dials in action:
Thanks to Ender91 for the excellent dial-based
layout shown above)

Download
(Download disabled as the current version is bundled with LCDHost)

Expect dials to be available to 3rd party monitoring apps soon. A major rewrite of the monitoring tools is underway and is about 95% complete which will bring a number of new features to the LCDHost's monitoring abilities. Dials will be one of those features.
« Last Edit: 2011-01-24 19:26:34 by Triscopic »

Triscopic

  • Moderator
  • Hero Member
  • *****
  • Posts: 729
  • ˙ǝıl ɐ sı ǝʞɐɔ ǝɥʇ
Re: [Release] LH_Dial
« Reply #1 on: 2011-01-01 16:48:55 »
(reserved)

SirReal

  • Administrator
  • Hero Member
  • *****
  • Posts: 735
    • linkdata.se
Re: [Release] LH_Dial (v1.00)
« Reply #2 on: 2011-01-01 17:07:24 »
Wordy Burdy Gurdy Hurdy!

Triscopic

  • Moderator
  • Hero Member
  • *****
  • Posts: 729
  • ˙ǝıl ɐ sı ǝʞɐɔ ǝɥʇ
Re: [Release] LH_Dial (v1.00)
« Reply #3 on: 2011-01-01 17:08:37 »
...hopefully not Børk Børk Børk.

Ender91

  • Sr. Member
  • ****
  • Posts: 336
  • Alpha & Omega
Re: [Release] LH_Dial (v1.00)
« Reply #4 on: 2011-01-01 17:10:48 »
Yeahhhh, let's have some fun.... :)
And by the way, happy new year!

Ender91

  • Sr. Member
  • ****
  • Posts: 336
  • Alpha & Omega
Re: [Release] LH_Dial (v1.00)
« Reply #5 on: 2011-01-01 17:32:52 »
I've a little issue, whene i use an image for the needle, i'm unable to use an image of a classic needle... (see the attachment).
Is it possible to use pngs with an already centered needle? (the plugin size should be in that case the image's one...)

Triscopic

  • Moderator
  • Hero Member
  • *****
  • Posts: 729
  • ˙ǝıl ɐ sı ǝʞɐɔ ǝɥʇ
Re: [Release] LH_Dial (v1.00)
« Reply #6 on: 2011-01-01 18:14:56 »
I thought about this, but there are a number of problems with it:

Firstly if you don't make your dial perfectly proportioned (square for circle/quarter dials or 1:2 for half circles) then the needle image needs to be resized as it turns to compensate. That means the dial has to know how to resize the image and really the only way to do that reliably is to say the needle is 50% of the height (or whatever).

Secondly if you have non-circular dials it doesn't work at all.

Thirdly there can be some issues with centering needles if the image isn't perfectly proportioned (sometimes their center point can jump around by one pixel) so you'd do better to create a static center marker as part of the image and use the gap setting to shift the needle's start point out a bit. That helps to mask the small jumping effect that can sometimes appear.

Insane

  • Jr. Member
  • **
  • Posts: 87
  • TRI SLI GTX480's
Re: [Release] LH_Dial (v1.00)
« Reply #7 on: 2011-01-01 18:44:48 »
awesome this looks cool!

now just need to find out how to export data from F1 2010 to txt file....
and create a speedo/gauges layout  :o

Triscopic

  • Moderator
  • Hero Member
  • *****
  • Posts: 729
  • ˙ǝıl ɐ sı ǝʞɐɔ ǝɥʇ
Re: [Release] LH_Dial (v1.01)
« Reply #8 on: 2011-01-01 19:54:47 »
Ooookaaaay...

I've updated the plugin so that is now supports full-face-sized needle images. This does allow you to have needles that overlap the centre. I was combing my code for ways to reduce the rounding issues that were plaguing the center point and I found a way to resolve about 95% of it. Yay. That said I still wouldn't recommend making a central knob part of a needle - the rotation doesn't do anti-aliasing , so the central part will sometimes look poor. I would suggest leaving a gap in the centre and adding the central knob to the background image.

Note that this only really works for full circle dials. There are some bugs if you use full-face needles with non full circles... but then again I don't think there's any reason to do so.
« Last Edit: 2011-01-01 20:08:35 by Triscopic »

Ender91

  • Sr. Member
  • ****
  • Posts: 336
  • Alpha & Omega
Re: [Release] LH_Dial (v1.01)
« Reply #9 on: 2011-01-01 20:40:41 »
Ok, i've thought to the fixe knob too....;) , but thanks for adding full-face needle.... (useful for old school needle....).
Publishing my layout right away...

Triscopic

  • Moderator
  • Hero Member
  • *****
  • Posts: 729
  • ˙ǝıl ɐ sı ǝʞɐɔ ǝɥʇ
Re: [Release] LH_Dial (v1.01)
« Reply #10 on: 2011-01-01 20:41:27 »
it's ok. I've got a fix for that too now... gimme an hour or three (dinner time soon)

Ender91

  • Sr. Member
  • ****
  • Posts: 336
  • Alpha & Omega
Re: [Release] LH_Dial (v1.01)
« Reply #11 on: 2011-01-01 20:56:26 »
Take your time... (and another request.... ::) , can you add an way to choose the beginning of the dials, for exemple for a quarter one, to have the 0 at 90° or at 0° (for a bottom left one...) ?)

Triscopic

  • Moderator
  • Hero Member
  • *****
  • Posts: 729
  • ˙ǝıl ɐ sı ǝʞɐɔ ǝɥʇ
Re: [Release] LH_Dial (v1.01)
« Reply #12 on: 2011-01-01 21:51:38 »
Damn - the reverse needle should do that, but doesn't work for non-full-circles correctly. Oh well. I'll fix that.

Insane

  • Jr. Member
  • **
  • Posts: 87
  • TRI SLI GTX480's
Re: [Release] LH_Dial (v1.01)
« Reply #13 on: 2011-01-01 22:55:12 »
yea i was thinking of having a 90degree dial starting at 45 thru to 135.....

eg fuel, gas gauges

Triscopic

  • Moderator
  • Hero Member
  • *****
  • Posts: 729
  • ˙ǝıl ɐ sı ǝʞɐɔ ǝɥʇ
Re: [Release] LH_Dial (v1.02)
« Reply #14 on: 2011-01-01 23:06:31 »
Release Notes:

Updated to 1.02:
  • Anti-aliased rotations
  • Fixed the needle reversal for non-circles
  • Fixed bug in the minute & hour hands of the clock
  • Added ability to manually tweak the time shown on the analogue clock (making time zone clocks possible)