{"id":1790,"date":"2017-08-24T00:17:20","date_gmt":"2017-08-23T22:17:20","guid":{"rendered":"https:\/\/stls.eu\/blog\/?p=1790"},"modified":"2017-08-24T00:17:20","modified_gmt":"2017-08-23T22:17:20","slug":"raspberry-pi-sensors","status":"publish","type":"post","link":"https:\/\/stls.eu\/blog\/2017\/08\/24\/raspberry-pi-sensors\/","title":{"rendered":"Raspberry Pi Sensors"},"content":{"rendered":"<p>bash file<\/p>\n<pre>#!\/bin\/bash\r\nCPUtemp=$(cat \/sys\/class\/thermal\/thermal_zone0\/temp)\r\necho \"CPU temp=$CPUtemp'mC\"\r\nGPUtemp=$(\/opt\/vc\/bin\/vcgencmd measure_temp)\r\necho \"GPU $GPUtemp\"\r\necho \"CPU freq=$(cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_cur_freq)\"\r\necho \"CPU maxf=$(cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_max_freq)\"\r\necho \"GPU RAM $(\/opt\/vc\/bin\/vcgencmd get_config sdram_freq)\"\r\necho \"GPU Video core $(\/opt\/vc\/bin\/vcgencmd get_config core_freq)\"\r\necho \"GPU 3D core $(\/opt\/vc\/bin\/vcgencmd get_config gpu_freq)\"<\/pre>\n<p>to steadily view run<\/p>\n<pre>watch -n1 file.bash<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>bash file #!\/bin\/bash CPUtemp=$(cat \/sys\/class\/thermal\/thermal_zone0\/temp) echo &#8220;CPU temp=$CPUtemp&#8217;mC&#8221; GPUtemp=$(\/opt\/vc\/bin\/vcgencmd measure_temp) echo &#8220;GPU $GPUtemp&#8221; echo &#8220;CPU freq=$(cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_cur_freq)&#8221; echo &#8220;CPU maxf=$(cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_max_freq)&#8221; echo &#8220;GPU RAM $(\/opt\/vc\/bin\/vcgencmd get_config sdram_freq)&#8221; echo &#8220;GPU Video core $(\/opt\/vc\/bin\/vcgencmd get_config core_freq)&#8221; echo &#8220;GPU 3D core $(\/opt\/vc\/bin\/vcgencmd get_config &hellip; <a href=\"https:\/\/stls.eu\/blog\/2017\/08\/24\/raspberry-pi-sensors\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[84],"tags":[],"class_list":["post-1790","post","type-post","status-publish","format-standard","hentry","category-raspberrypi"],"_links":{"self":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/1790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/comments?post=1790"}],"version-history":[{"count":1,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/1790\/revisions"}],"predecessor-version":[{"id":1791,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/1790\/revisions\/1791"}],"wp:attachment":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/media?parent=1790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/categories?post=1790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/tags?post=1790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}