Python Forum
Get system info from PI (cpu load and temp)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get system info from PI (cpu load and temp)
#1
Hello ,
wanted to know
how can I read the cpu temperture and load of the pi once every 5 seconds ?

Thanks ,
Reply
#2
What operating system is on your pi?

If your running linux you can run the command top or htop and parse the results every 5 seconds. As for cpu temp...check here as it would be similar to any linux distro.
Recommended Tutorials:
Reply
#3
debain
I will ask at PI forum and then I will ask here again

Thanks ,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Deleting Windows temp folder Raysz 7 405 Apr-02-2024, 12:36 PM
Last Post: Raysz
  What is all the info in the info window in Idle? Pedroski55 3 683 Jul-08-2023, 11:26 AM
Last Post: DeaD_EyE
  pyspark creating temp files in /tmp folder aliyesami 1 4,975 Oct-16-2021, 05:15 PM
Last Post: aliyesami
  Help with storing temp data for each day then recording min/max in app. trthskr4 3 2,405 Sep-10-2021, 10:51 PM
Last Post: trthskr4
  How to save Matplot chart to temp file? Morkus 2 4,513 Jun-12-2021, 10:52 AM
Last Post: Morkus
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 16,615 Jan-11-2021, 06:30 PM
Last Post: ykumar34
Question Difference between Python's os.system and Perl's system command Agile741 13 6,807 Dec-02-2019, 04:41 PM
Last Post: Agile741
  temp analysis Simba 13 5,858 Apr-25-2019, 09:13 PM
Last Post: Simba
  Fatal Python error: Py_Initialize: unable to load the file system codec ecg1g15 0 3,564 Feb-12-2019, 12:16 PM
Last Post: ecg1g15
  Temp folder creation ste1605 7 5,264 Oct-03-2018, 10:39 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020