Skip to main content

Timeline for Get PI's temperature using C

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
May 3, 2020 at 18:28 comment added Seamus According to the "official" documentation, vcgencmd measure_temp and the value in /sys/class/thermal/thermal_zone0/temp are different temperatures. The documentation is rather vague on this (as it is on many hardware-related items), but it suggests that vcgencmd provides the GPU temp, and /sys.../temp is the CPU temp. In any event, the values are typically close.
S Feb 5, 2018 at 14:14 history suggested Morgoth CC BY-SA 3.0
Broken code
Feb 5, 2018 at 10:27 review Suggested edits
S Feb 5, 2018 at 14:14
Apr 13, 2017 at 12:56 history edited CommunityBot
replaced http://raspberrypi.stackexchange.com/ with https://raspberrypi.stackexchange.com/
Apr 13, 2013 at 15:21 comment added Frepa @goldilocks Interesting! I did not know this, thought it just behaves like any file. You may very well be right.
Apr 13, 2013 at 11:58 comment added goldilocks Experience has lead me to believe the high level stream interface is not reliable on proc/sys files, and you should use open() and read() instead -- but YMMV. There's also a "libsysfs", but it's been abandoned and the kernel devs have explicitly told people to stay away from it.
Apr 12, 2013 at 11:31 vote accept opc0de
Apr 12, 2013 at 11:10 history answered Frepa CC BY-SA 3.0