RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Displaying temperature from the RetroPie menu.

    Scheduled Pinned Locked Moved Projects and Themes
    retropiemenu
    2 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MrVess
      last edited by MrVess

      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 5

      I 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
      thermometer

      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>

      PokeEngineerP 1 Reply Last reply Reply Quote 4
      • PokeEngineerP
        PokeEngineer @MrVess
        last edited by

        @mrvess

        This is a little neat thing.

        Don't sweat it.
        When in doubt, take a BYTE out of life.

        😎

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        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.