{"id":217468,"date":"2021-04-02T15:00:51","date_gmt":"2021-04-02T12:00:51","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/monitoring-temperature-on-the-raspberry-pi-cloudsavvy-it\/"},"modified":"2021-04-02T15:00:51","modified_gmt":"2021-04-02T12:00:51","slug":"monitoring-temperature-on-the-raspberry-pi-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/monitoring-temperature-on-the-raspberry-pi-cloudsavvy-it\/","title":{"rendered":"#Monitoring Temperature on The Raspberry Pi \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a40e4c7839c8\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a40e4c7839c8\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/monitoring-temperature-on-the-raspberry-pi-cloudsavvy-it\/#Monitoring_Temperature_on_The_Pi\" >Monitoring Temperature on The Pi<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/monitoring-temperature-on-the-raspberry-pi-cloudsavvy-it\/#Testing_Temperature_on_the_Pi_Manually\" >Testing Temperature on the Pi Manually<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/monitoring-temperature-on-the-raspberry-pi-cloudsavvy-it\/#How_Much_is_Too_Much\" >How Much is Too Much?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/monitoring-temperature-on-the-raspberry-pi-cloudsavvy-it\/#Scripting_Temperature_and_More\" >Scripting Temperature and More<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/monitoring-temperature-on-the-raspberry-pi-cloudsavvy-it\/#Wrapping_up\" >Wrapping up<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#Monitoring Temperature on The Raspberry Pi \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<figure style=\"width: 700px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10484 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/03\/57dffed4.png?width=1200&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"700\" height=\"350\" src=\"https:\/\/www.shutterstock.com\/image-photo\/infrared-thermometer-laser-point-measures-chipset-657139810\" data-credittext=\"Shutterstock\/Paolo De Gasperis\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\"><span class=\"imagecredit\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.shutterstock.com\/image-photo\/infrared-thermometer-laser-point-measures-chipset-657139810\">Shutterstock\/Paolo De Gasperis<\/a><\/span><\/figcaption><\/figure>\n<p>Is your Raspberry Pi running hot? The Raspberry Pi runs a great factory-default temperature when idle, but when you use it extensively in a heated office, does it run too hot? Find out with a few simple steps.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Monitoring_Temperature_on_The_Pi\"><\/span>Monitoring Temperature on The Pi<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We will assume that you already have setup your Raspberry Pi, are using Raspbian, and that you are able to access a console prompt \u2013 either via SSH or via a desktop based login.<\/p>\n<p>If you h<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>en to have a brand new Ubuntu installation on your Pi instead, checkout <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/2byt.es\/post\/vcgencmd\/\">vcgencmd for Ubuntu 20.04 aarch64 on RPi 4B<\/a> by Hamid Elaosta.<\/p>\n<p>Once you are at the terminal prompt, you will first want to check that the <code>vcgencmd<\/code> utility is available to you. It will likely be present if you are using Raspbian. Let\u2019s check:<\/p>\n<pre>whereis vcgencmd&#13;\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9997\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/03\/15fa4d32.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"whereis vcgencmd output\" width=\"418\" height=\"51\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you received output, which had more information then a leading <code>vcgencmd:<\/code>, then you are good to go.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Testing_Temperature_on_the_Pi_Manually\"><\/span>Testing Temperature on the Pi Manually<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Go ahead and execute the following command:<\/p>\n<pre>vcgencmd measure_temp&#13;\n<\/pre>\n<p>You should receive output similar to the following:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9998\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/03\/de3c0be6.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"372\" height=\"51\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Note that the temperature on your Pi may be higher, for example 45 degrees Celsius. Mine (a Raspberry Pi 4) runs in a tight metal enclosure (the <i>armour twin fan aluminum radiator housing<\/i>) with a single cooling fan running, and it is quite cool here tonight. I have another Raspberry Pi 3 with a plastic shell, a couple of heat sinks and no fan, and that one is running at 44.4 Degrees Celsius currently.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_Much_is_Too_Much\"><\/span>How Much is Too Much?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Good question. The Raspberry Pi foundation recommends to keep your Raspberry Pi below 85 degrees Celsius. That is an upper limit, and you should note that there may some chips on the Raspberry mainboard which are only qualified to go up to 70 Degrees Celsius. In <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/general\/\" data-internallinksmanager029f6b8e52c=\"3\" title=\"General\" target=\"_blank\" rel=\"noopener\">general<\/a>, if you can run at 50 degrees Celsius or less, it seems you should be in the green zone.<\/p>\n<p>Even if you should go above it, you may be able to add a little fan, some cooling sinks, and quickly drive down the temperature. The environment\/room temperature is off importance too. If your environment gets hotter (summer weather etc.) expect your Raspberry Pi to go up in temperature also.<\/p>\n<p>And it is good to keep in mind that the Raspberry Pi will generally throttle (i.e. slow down) when the temperature reaches a certain point. Unless you\u2019re doing something non-default like overclocking, or changing settings.<\/p>\n<p>There is also a lot to be said about which case you choose for your Raspberry Pi 4. Various choices will lead to either much better or much worse cooling results. For a solid overview on cases, see <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.martinrowan.co.uk\/2019\/09\/raspberry-pi-4-cases-temperature-and-cpu-throttling-under-load\/\">Raspberry Pi 4 Cases, Temperature and CPU Throttling Under Load<\/a> by Martin Rowan.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Scripting_Temperature_and_More\"><\/span>Scripting Temperature and More<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The <code>vcgencmd<\/code> command is quite versatile. You can read more about it on the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.raspberrypi.org\/documentation\/raspbian\/applications\/vcgencmd.md\">vcgencmd manual page<\/a>. Let\u2019s create a small script with a few of the most useful commands, which we store as <code>~\/temperature.sh<\/code>:<\/p>\n<pre>#!\/bin\/bash &#13;\nvcgencmd measure_temp&#13;\nvcgencmd get_throttled&#13;\nvcgencmd measure_volts&#13;\nvcgencmd get_mem arm&#13;\nvcgencmd get_mem gpu&#13;\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9999\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/03\/96b89409.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Measuring more with vcgencmd\" width=\"685\" height=\"324\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Here, we checked the temperature, the throttle status (see the website link above for more info), a Volts readout and the memory available to the GPU and to the ARM processor. Note that your total memory may be larger than what shows available to ARM. You can see your total memory by using a tool like <code>htop<\/code> (sudo apt install htop &amp;&amp; htop), or simply by running <code>free -mh<\/code> at the command line (first result, top left, is your total memory size).<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Wrapping_up\"><\/span>Wrapping up<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Keeping your Raspberry Pi Cool is surely one important aspect of running your Pi well. Invest in a case which optimizes temperature, add one or two fans, and most importantly, monitor the temperature performance of the system regularly, including under load. Enjoy the multitude of information <code>vcgencmd<\/code> can provide you with, and keep an eye on that temperature!\n<\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/9996\/monitoring-temperature-on-the-raspberry-pi\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#Monitoring Temperature on The Raspberry Pi \u2013 CloudSavvy IT&#8221; Shutterstock\/Paolo De Gasperis Is your Raspberry Pi running hot? The Raspberry Pi runs a great factory-default temperature when idle, but when you use it extensively in a heated office, does it run too hot? Find out with a few simple steps. Monitoring Temperature on The Pi&#8230;<\/p>\n","protected":false},"author":1,"featured_media":217469,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/03\/57dffed4.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-217468","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/217468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=217468"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/217468\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/217469"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=217468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=217468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=217468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}