Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Display the CPU temperature of the raspberry pi card on qt
QtWS25 Last Chance

Display the CPU temperature of the raspberry pi card on qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 908 Views
  • 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.
  • J Offline
    J Offline
    julie546
    wrote on 4 Jun 2021, 07:12 last edited by julie546 6 Apr 2021, 07:16
    #1

    Hi all ,
    I am working on the raspberry pi 4 card with the qt I used a lot of sensors so I'm afraid that the card heats up so I would like to display the CPU temperature of the raspberry pi card on qt, j did a search on the internet but found nothing.
    can you help me please

    J 1 Reply Last reply 4 Jun 2021, 07:14
    0
    • J julie546
      4 Jun 2021, 07:12

      Hi all ,
      I am working on the raspberry pi 4 card with the qt I used a lot of sensors so I'm afraid that the card heats up so I would like to display the CPU temperature of the raspberry pi card on qt, j did a search on the internet but found nothing.
      can you help me please

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 4 Jun 2021, 07:14 last edited by
      #2

      @julie546 said in Display the temperature of the raspberry pi card on qt:

      temperature of the raspberry pi card

      What would that be? CPU temperature?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sierdzio
        Moderators
        wrote on 4 Jun 2021, 07:17 last edited by
        #3

        If you mean CPU temperature, it can be read from: "/sys/class/thermal/thermal_zone0/temp". It returns temperature in C * 1000. So 53069 means 53.069 degrees Celsius.

        (Z(:^

        J 1 Reply Last reply 4 Jun 2021, 07:38
        5
        • S sierdzio
          4 Jun 2021, 07:17

          If you mean CPU temperature, it can be read from: "/sys/class/thermal/thermal_zone0/temp". It returns temperature in C * 1000. So 53069 means 53.069 degrees Celsius.

          J Offline
          J Offline
          julie546
          wrote on 4 Jun 2021, 07:38 last edited by julie546 6 Apr 2021, 07:38
          #4

          @sierdzio yes CPU temperature, theres any exemple please, i would like to display that on the QT

          J 1 Reply Last reply 4 Jun 2021, 07:40
          0
          • J julie546
            4 Jun 2021, 07:38

            @sierdzio yes CPU temperature, theres any exemple please, i would like to display that on the QT

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 4 Jun 2021, 07:40 last edited by
            #5

            @julie546 You simply read the file /sys/class/thermal/thermal_zone0/temp
            https://doc.qt.io/qt-5/qfile.html

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            3

            4/5

            4 Jun 2021, 07:38

            • Login

            • Login or register to search.
            4 out of 5
            • First post
              4/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved