Lightquick Web Design - High Quality, Low Cost

LightQuick Web Design - Latest News

We are working to complete a new web shop for New Venture Products at Newventureproducts.co.uk . The new shop will feature a Joomla CMS front-end using a modern corporate template. LightQuick previously provided the older HTML site whilst the new development is be on-line shortly. The on-line shop will remain using the well known and respected shopping system OSCommerce.
You are here:
  • Decrease font size
  • Default font size
  • Increase font size
Steampunk thermometer gets an executable PDF Print
Friday, 15 April 2011

Steampunk thermometer gets an executable...

thermometers-tiny.png

I realised that extracting the temperatures from the Speedfan logs by
scraping the logs would be do-able but inefficient and slow. Looking at
how other widgets achieved this I found two widgets, one of which did
the extraction of temperatures the way I was originally proposing but
another that did it using a windows executable. This second method was
faster and neater and meant that the widget code would be a lot simpler.

Simply put, to extract the temperatures efficiently, I could use a
windows .exe which interfaces with the speedfan API, the trouble was
that I didn't have a clue how to create it. I asked the developer of the
second widget whether I could use the executable included in his widget
(crediting him) but he was completely unwilling to let me do so. I asked
for assistance but he wasn't willing to help in this respect. A pity.

So I did a search through the net to find out how to interface VB.NET
with the speedfan API using shared memory. The reason I did this was
that my only real programming experience is using visualbasic (6) and
even though my .net knowledge is severely limited it was still the best
bet. However, my search came back with nothing.

There was however, a solution found using C++. A kind developer had
pasted his code to do exactly what I required. All I now needed was an
environment to make code changes and compile it all in. Several
fruitless attempts at loading various C++ IDEs including some from
Microsoft, all failed for some reason or another (just couldn't get them
to work). In the end my friend Harry Whitfield came to the rescue and
provided a link to the free C++ IDE and compiler from
http://www.bloodshed.net/

This compiler created an executable first time it tried. Perfect. This
means I have a windows executable that can return the various
temperatures just as the 'other' widget does. It should run quickly. I
am pretty certain the other widget developer got his code from the same
place as me. Pity he wasn't prepared to share it. I have decided to
share my code and so I will bundle the C++ source code with the widget
as well as the executable.

So, what is the end result? Well it is positive. I have managed to get the
widget to read all the sensor names from speedfan's sensor configuration file.
the widget is also processing the information provided by the new windows
executable and is now using these to successfully prime the two graphic
thermometers. Bu@@er me, it works...

OK, due to the fact that all computers have different hardware with a
different number of sensors it will be difficult to determine whether it works for
all hardware combinations but I think it is time to start giving it a try.

Other changes include adding code to handle the installation of
speedfan.exe in the /Program Files (86)/ or the /Program Files/ folders.
There was a bug causing it to check both folders simultaneously causing
the non-flashing red light to display. I have added the 'about' pop-up
from the menu. Added code to c++ code for speedfan.exe to check whether
speedfan is actually running. Finally the printer bars and trunnions
have been coloured brass to match the rest of the widget. A few more
changes and the new widget will be made available for download.

mmsblog_00115_01.png

Comments (0)Add comments

Write comment

busy
Last Updated ( Sunday, 11 September 2011 )
 
< Prev   Next >

Steampunk Yahoo Widget

How about something special for the weekend sir?

Steampunk Yahoo clock/calendar widget download

Lightquick have a nice little Yahoo widget for you to download. Steampunk Stamp WidgetClick on the image above.

Do you need a stamp with that madam?

Yahoo Widget Downloads

Download the Joomla Multi-Sit... here

Joomla Multi-Sit...

Downloads: 32
Avg. Rating:
StarStarStarStarStar(5)

Download the Steampunk Orrery... here

Steampunk Orrery...

Downloads: 1160
Avg. Rating:
StarStarStarStarStar(2)

Download the Steampunk Weathe... here

Steampunk Weathe...

Downloads: 48182
Avg. Rating:
StarStarStarStarStar(38)

Download the Cyberpunk Yahoo ... here

Cyberpunk Yahoo ...

Downloads: 3301
Avg. Rating:
StarStarStarStarStar(15)

Download the Steampunk CPU / ... here

Steampunk CPU / ...

Downloads: 7906
Avg. Rating:
StarStarStarStarStar(26)

Virtuemart Assistance

If you require assistance regarding VM or Joomla then please contact lightquick here...

Contact me here

Site Total Page Views

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday511
mod_vvisit_counterYesterday756
mod_vvisit_counterThis week511
mod_vvisit_counterThis month19163
mod_vvisit_counterAll Visitors484114

Site Last Modified

Site Last Modified:Monday 21 May 2012, 11:30

Secure Login Form

Log In / Sign Up

Find us on the FreeIndex directory under Web Designers