LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 06-12-2017, 02:10 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
Knowing Temperature and Power Supply levels of the Raspberry PI ?


Hello,

So far, I have this little tpitemp that does the job for the temperature. Temperature of 53-55 is usually as server use on raspbian.

How would you get the power supply level, in any case that we do not supply sufficiently with the mini usb.

tpitemp.c
Code:
#include <stdio.h> 
#include <stdlib.h> 

int main()
{ 
    printf( "TERMINAL4PI TEMPERATURE \n" ); 
    system( " echo $(( `cat /sys/class/thermal/thermal_zone0/temp ` / 1000 )) "       );
    return 0; 
}
 
Old 06-12-2017, 01:33 PM   #2
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Here it is:
https://github.com/spartrekus/terminal4tinypc

Enjoy !



--
more info: https://www.raspberrypi.org/forums/v...2236&p=1050297

Last edited by Xeratul; 06-12-2017 at 03:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Poorly designed power supply or power strip? - Wasted space Jeebizz General 8 02-14-2015 08:22 PM
LXer: Power to the PC: How to Select a Computer Power Supply LXer Syndicated Linux News 0 09-16-2010 08:12 PM
Does Power Supply, supply power? --> Need comments SHENGTON Linux - Hardware 4 07-04-2009 11:46 AM
Power Supply Help EIGHT Linux - Hardware 7 10-01-2007 06:54 AM
Power Supply brokenflea Linux - Hardware 6 02-24-2005 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration