Extract Temperature Data from CoreTemp

A place to discuss topics related to Core Temp
Post Reply
tko1982
Registered User
Registered User
Posts: 7
Joined: Sun Apr 21, 2019 2:02 am

Extract Temperature Data from CoreTemp

Post by tko1982 »

I'm interested in logging CPU temperatures into an Influxdb database using the Telegraf service on Windows 10. What is the recommended way to get the current temperature readings from Coretemp? I know that Rainmeter, for instance, is able to access the current temperatures from Coretemp directly, but I'm not sure how it's accomplishing that.

Any help is appreciated!!

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: Extract Temperature Data from CoreTemp

Post by The Coolest »

You can enable logging, and Core Temp will create csv log files with temperature, frequency and other info.
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

tko1982
Registered User
Registered User
Posts: 7
Joined: Sun Apr 21, 2019 2:02 am

Re: Extract Temperature Data from CoreTemp

Post by tko1982 »

Is there no way to pull the data directly from Coretemp at the current time?

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: Extract Temperature Data from CoreTemp

Post by The Coolest »

You can, through the shared memory interface, or by using the SDK.
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

tko1982
Registered User
Registered User
Posts: 7
Joined: Sun Apr 21, 2019 2:02 am

Re: Extract Temperature Data from CoreTemp

Post by tko1982 »

So I ended up using the Delphi library posted on the developers page... it works great and I now have a program that can return the data I need for Telegraf. However, when the Telegraf service runs the program, it only returns "Error: Core Temp's shared memory could not be read."

The Core Temp application is running, and the delphi program returns data when I run it manually. Do you have any idea why the shared memory can't be read?

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: Extract Temperature Data from CoreTemp

Post by The Coolest »

Is the service running under a different username? You may need to enable the global shared memory option in Core Temp's Advanced settings.
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

tko1982
Registered User
Registered User
Posts: 7
Joined: Sun Apr 21, 2019 2:02 am

Re: Extract Temperature Data from CoreTemp

Post by tko1982 »

That did it!!

The service is running as local system. So is the shared memory not available to users other than the one running the CoreTemp application, unless you check the "Enable Global Shared Memory" checkbox?

Thanks for your help!!

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: Extract Temperature Data from CoreTemp

Post by The Coolest »

Yes, by default the shared memory is only available to the user which started Core Temp.
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

tko1982
Registered User
Registered User
Posts: 7
Joined: Sun Apr 21, 2019 2:02 am

Re: Extract Temperature Data from CoreTemp

Post by tko1982 »

In case anybody is interested, I've made my program available for download.

This program outputs data in a format that can be easily read by Telegraf, an agent that submits data to a logging database. Once the data is logged, it can be visualized using a program like Grafana.

Download and more info is available here: http://www.tomk.xyz/k/coretemptelegraf

Source Code is available here: https://github.com/tkohhh/CoreTempTelegraf

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: Extract Temperature Data from CoreTemp

Post by The Coolest »

This is great! Thanks :)
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

User avatar
Gorlash
Registered User
Registered User
Posts: 4
Joined: Wed Mar 17, 2021 9:45 pm

Re: Extract Temperature Data from CoreTemp

Post by Gorlash »

tko1982 wrote: Sun Jun 14, 2020 6:23 pm In case anybody is interested, I've made my program available for download.

This program outputs data in a format that can be easily read by Telegraf, an agent that submits data to a logging database. Once the data is logged, it can be visualized using a program like Grafana.

Download and more info is available here: http://www.tomk.xyz/k/coretemptelegraf

Source Code is available here: https://github.com/tkohhh/CoreTempTelegraf
Hi @tko1982 ... sorry for a bit of a necro here, but I'm looking at your source code, and it references another file:
GetCoreTempInfoDelphi in 'libraries\GetCoreTempInfoDelphi.pas';
I pulled your project from github, using --recursive, but either way this file does not appear to be included.
Is that the library that you are referring to (at github) as being at 74.cz ?? I looked over that site, but don't see anything related to CoreTemp...

Otherwise, where can I find this file??
not all those who wander are lost

tko1982
Registered User
Registered User
Posts: 7
Joined: Sun Apr 21, 2019 2:02 am

Re: Extract Temperature Data from CoreTemp

Post by tko1982 »

If anybody else is looking for the GetCoreTempInfoDelphi.pas, it is here: http://74.cz/download/GetCoreTempInfoDelphi.zip

Sorry about that!

Post Reply

Return to “Discussion”