Speedfan query

Comments about any other application I have on my website.
Please don't post about XMBC or Inpout32 here - use the correct forum!
Forum rules
Please post to the correct forum, otherwise your post may not be seen.
Before posing, be sure to read and respect the forum rules
Post Reply
michalikt
New User
Posts: 1
Joined: Wed Dec 16, 2009 5:23 pm

Speedfan query

Post by michalikt »

I am interested in getting a copy of the commandline program of yours that MRTG calls to query the speedfan shared memory.
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Speedfan query

Post by phil »

I will package it up for you tonight if I can, if you don't have anything by tomorrow, PM me :)
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
rastogig
New User
Posts: 1
Joined: Mon Oct 04, 2010 10:36 pm

Re: Speedfan query

Post by rastogig »

Hello Phil,

Can you share the Windows command-line version of the utility that get the Speedfan shared memory data. I am interested in the 32-bit Vista & 64-bit Win7 version.

Thanks
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Speedfan query

Post by phil »

This should work for all versions of windows (x86 and x64) to read the data from speedfan
It outputs it in a mrtg suitable format.

Thanks,
Phil
You do not have the required permissions to view the files attached to this post.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Irios
New User
Posts: 4
Joined: Wed Mar 28, 2012 3:29 am

Re: Speedfan query

Post by Irios »

Hi there

ReadSpeedFan.exe outputs decimal values on my system, and mrtg is complaining with evaluated to 'NaN' instead of a number in the log file.

Example output:

Code: Select all

38,0
84,5

Temperature sensor 1
Temperature sensor 2
Is SpeedFan to blame for using a comma, or is it just your program that's being very polite and sticking with the system's regional settings? ;)

Got any tips for how to fix this?
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Speedfan query

Post by phil »

I guess my program is sticking with the regional settings - thats not surprising because it just does a string format/printf which would do that.

I hadn't even considered that being a problem but I guess it wont be difficult to fix (assuming I can find the original code :))

I'll try and take a look when I get home from work.
Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Speedfan query

Post by phil »

Have a go with this one...
I'm now forcing the format specifically rather than forcing a regional setting that can be modified in Windows!
ReadSpeedfan.zip
Thanks,
Phil
You do not have the required permissions to view the files attached to this post.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Irios
New User
Posts: 4
Joined: Wed Mar 28, 2012 3:29 am

Re: Speedfan query

Post by Irios »

o.O

Wow, fast response.
And now it works :D
Superthanks, mate.


I have a request for you, though...
With the newer versions of SpeedFan you have possibility to pull data from SpeedFan with xAP.
Maaaaybe, a small program to use xAP instead of snatching data from shared memory? :angel:
(In this way you can poll a SpeedFan installed on a remote computer.)
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Speedfan query

Post by phil »

I'm not familiar with xAP I will have to read up on that :)
Maybe thats for someone else as I'm rather busy with my other projects right now, but I will try and have a look at some point!

Thanks, and glad it works now :)
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Irios
New User
Posts: 4
Joined: Wed Mar 28, 2012 3:29 am

Re: Speedfan query

Post by Irios »

Hi again!

Just a small note - nothing important...
Your exe outputs 5 lines in total, but MRTG requires 4 lines.
The two first lines are of course ok, but the two last lines should be
- uptime in human readable form
- computer name

I didnt notice this until now as I only use the two first lines in my MRTG config.
(I'm generating the two last lines myself using windows commands)

I've been using readspeedfan.exe for a couple of weeks now, and it work's beautifully :)
http://demux.net/mrtg/tyrell/summary.html
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Speedfan query

Post by phil »

interesting, I don't understand why that is not a problem on my graphing then. I will see what I can do about it :)
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Irios
New User
Posts: 4
Joined: Wed Mar 28, 2012 3:29 am

Re: Speedfan query

Post by Irios »

Well, the three last lines in the current readspeedfan.exe output is like this

3) *blank line*
4) sensor name 1
5) sensor name 2

MRTG reads only line 3 and 4. So system uptime = blank, and computer name = sensor name 1. Thats why it doesnt really pose a problem. Like I said, it's not something to worry about. But if you're gonna make any changes to your code in the future, you might look into fixing it.

I'm writing a HOWTO/FAQ on cofiguring MRTG for Windows, and I'd like to link to your website if it's OK, as your readspeedfan.exe is quite interesting for people wanting to graphs their sensors :)

EDIT: typo
Last edited by Irios on Thu Apr 12, 2012 10:26 pm, edited 1 time in total.
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Speedfan query

Post by phil »

No problem with the links - my config examples are ancient now, and I'm using RRDTool more than just mrtg because it works with negative numbers eg. (outside temperature) where as mrtg alone does not.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply