{"id":859,"date":"2020-11-15T09:53:46","date_gmt":"2020-11-14T23:53:46","guid":{"rendered":"http:\/\/www.nickdu.com\/?p=859"},"modified":"2020-11-15T09:53:46","modified_gmt":"2020-11-14T23:53:46","slug":"monitor-raspberry-pi-cpugpu-temperature","status":"publish","type":"post","link":"https:\/\/nickdu.com\/?p=859","title":{"rendered":"Monitor Raspberry Pi CPU&#038;GPU temperature"},"content":{"rendered":"\n<p>This is a small script from <a rel=\"noreferrer noopener\" href=\"https:\/\/www.cyberciti.biz\/faq\/linux-find-out-raspberry-pi-gpu-and-arm-cpu-temperature-command\/\" target=\"_blank\">https:\/\/www.cyberciti.biz\/faq\/linux-find-out-raspberry-pi-gpu-and-arm-cpu-temperature-command\/<\/a> to monitor Raspberry Pi CPU&amp;GPU temperature.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n# Script: my-pi-temp.sh\n# Purpose: Display the ARM CPU and GPU  temperature of Raspberry Pi\n# Author: Vivek Gite &lt;www.cyberciti.biz> under GPL v2.x+\n# -------------------------------------------------------\ncpu=$(&lt;\/sys\/class\/thermal\/thermal_zone0\/temp)\necho \"$(date) @ $(hostname)\"\necho \"-------------------------------------------\"\necho \"GPU => $(\/opt\/vc\/bin\/vcgencmd measure_temp)\"\necho \"CPU => $((cpu\/1000))'C\"<\/code><\/pre>\n\n\n\n<p>Save and close the file. Set permission:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x my-pi-temp.sh<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is a small script from https:\/\/www.cyberciti.biz\/faq\/linux-find-out-raspberry-pi-gpu-and-arm-cpu-temperature-command\/ to monitor Raspberry Pi CPU&amp;GPU temperature. Save and close the file. Set permission:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-859","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts\/859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=859"}],"version-history":[{"count":0,"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts\/859\/revisions"}],"wp:attachment":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}