Once you have exited out of the terminal session and gone back in, you will now be able to use the temp command to get your Raspberry Pi’s temperature. ![]() Once you have entered this line, please save the file by pressing CTRL + X then Y followed by ENTERģ.Before you can use this new alias you need to quit out of the current session and open a new one. What this line does is make it so that whenever we type in the word temp, the temperature of the Raspberry Pi will be outputted to the command line. alias temp='/usr/bin/vcgencmd measure_temp' Within this file, enter the following line. Let’s go ahead and start creating the bash aliases file within the pi user’s home directory by running the command below. If you check the Raspberry Pi’s temperature often and would like to simplify the command, you can make use of bash aliases.ġ. usr/bin/vcgencmd measure_temp | awk -F "" '' Creating an Alias to Retrieve the Pi’s Temperature If you are in a country that uses Fahrenheit, then you can convert this number by using the following formula (celsius * 1.8) + 32Īlternatively, you can utilize the following command, which will automatically retrieve the value and convert the Raspberry Pi’s temperature to Fahrenheit for you. One thing that you will notice is that all results from this command are provided in degrees centigrade.ģ. From this command, you should get a result like we have below with specifying the temperature of your Raspberry Pi. To retrieve the temperature of your Raspberry Pi, we can utilize the following command. Once you have access to the terminal through SSH or physical access, then you can proceed.ġ. To be able to retrieve the temperature of the Raspberry Pi, you will need terminal access. Luckily for us, the Raspberry Pi’s processor features an inbuilt temperature probe that we can access. Getting the Raspberry Pi Temperature Using the Terminal ![]() Reading the temperature of your Raspberry Pi’s processing core is a simple task and can be done using a single command. ![]() The throttling can be extra problematic when you are trying to overclock your device. This throttling makes it crucial to manage your Raspberry Pi’s temperature to stop the device from losing performance. Officially the Raspberry Pi’s processor is built to withstand temperatures from -40☌ to 85☌.Īs the Raspberry Pi’s temperature gets closer to its upper limit, the system will automatically begin to throttle the processor to try and help the board cool back down. This is especially true when you are using the device in areas with little airflow. Monitoring the temperature of your Raspberry Pi can be a critical task.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |