Displaying temperature from the RetroPie menu.
-
If you'd like to see the temperature from the Retropie menu, this works.
I added the below as temperature.sh to my retropiemenu directory:
#!/bin/bash
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo -e "\e[39m"
echo -e "\e[32m $(date) \e[93m @ \e[35m $(hostname)"
echo -e "\e[97m ___________________________________________"
echo -e "\e[34m GPU: \e[91m $(/opt/vc/bin/vcgencmd measure_temp)"
echo -e "\e[36m CPU: \e[31m $((cpu/1000))'C"
echo -e "\e[39m"
sleep 5I used this clipart as the icon of the new item (it should go into retropiemenu\icons, and be 512x512 - mine is named temperature.png):
https://i.imgur.com/JvTe2Vb.png
For the /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml, I added:
<game>
<path>./temperature.sh</path>
<name> Display Temperature</name>
<desc>Display CPU & GPU temperature.</desc>
<image>./icons/temperature.png</image>
<playcount>1</playcount>
<lastplayed>20170123T000000</lastplayed>
</game> -
This is a little neat thing.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.