amuck-landowner

CPUVInf - Raspberry Pi CPU Temperature & Voltage Reader

Kokaku Kidotai

New Member
5RQ7WFk.png
CPUVInf - Raspberry Pi CPU Temperature & Voltage Reader by Nevil Verdoold
Version: 0.2 (Build 20)



Features:

  • Fairly small script (2.75 KB)
  • Temperature displayed in human readable °C (degree Celsius)
  • Voltage displayed in human readable V (Volt)
  • Current CPU temperature output
  • Core voltage output
  • SDRAM core voltage output
  • SDRAM I/O voltage output
  • SDRAM PHY voltage output
  • Reading values through utils from raspberrypi-firmware-tools
  • 100% support of all sensors on both Raspberry Pi models

Compatibility: Every Linux Distro with raspberrypi-firmware-tools installed!


Screenshot Gallery:

Everything displayed
http://i.imgur.com/3BvCotu.png

CPU Temperature in °C
http://i.imgur.com/OYVjMut.png

Core Voltage
http://i.imgur.com/N8CqLBx.png

SDRAM Core Voltage
http://i.imgur.com/oTazZRE.png

SDRAM I/O Voltage
http://i.imgur.com/QRA9gJ2.png

SDRAM PHY Voltage
http://i.imgur.com/b7fKbv9.png


Installation:

1. Connect your Raspberry Pi to power and let it boot up.

2. Login via SSH or a direct connection over a monitor with keyboard as root.

3. Installation:


wget http://kokakukidotai.cf/stuff/cpuvinf; chmod +x cpuvinf; mv cpuvinf /usr/bin/cpuvinf
or


wget http://apps.singul4rity.com/cpuvinf; chmod +x cpuvinf; mv cpuvinf /usr/bin/cpuvinf
Usage:

All you have to do is login as any user and issue the command "cpuvinf" with a parameter to run the script. If the command is issued without a parameter it will display all information at once.


cpuvinf parametername
Parameter list:


cpu - Displays current CPU temperature in °C
core - Displays core voltage in V
sd - Displays SD core voltage in V
io - Displays SD I/O voltage in V
phy - Displays SD PHY voltage in V
License:

  • You may use this script freely.
  • You may share this script as often as you want and where you want.
  • You may not modify the script without my permission.
  • You may not remove the copyright and credit information.

Credits:


Changelog:

v0.1:
- Initial release

v0.2
- Parameter support for specific output added
- If no parameter is specified everything will be displayed
- volt=1.20V changed to plain and simple 1.20V on output

Original topic: https://freevps.us/thread-12976.html
 
Last edited by a moderator:

fixidixi

Active Member
not cool man. if you want to contribute, than please share it here instead of backlinking to another forum!
 

Kokaku Kidotai

New Member
As you wish.

The topic has been modified and includes everything you need to know about the tool.

It may not be updated as frequently as it will be updated on FreeVPS Directory & Discussion.
 

drmike

100% Tier-1 Gogent
Hey it works, but oddly I have the same value output as the sample screen... time to push the Pi and see what happens...
 

Kokaku Kidotai

New Member
Script updated to v0.3 but I can't edit my first post.

Well, so I guess this won't be updated unless I would make a new topic for every version.
 

drmike

100% Tier-1 Gogent
Script updated to v0.3 but I can't edit my first post.

Well, so I guess this won't be updated unless I would make a new topic for every version.
Post the updates in-line.. living thread.   

I'll ask Mann to give you edit permission for your thread.

What are the new features / updates?
 

Kokaku Kidotai

New Member
v0.3
- Parameters are now Linux/Unix styled (e.g: cpuvinf -cpu instead of cpuvinf cpu)
- If/else pyramid replaced with case (thanks to Google for the great shell scripting sites)
- CPU temperature also shown in Fahrenheit now

Parameter list:

-cpu - Displays current CPU temperature in °C and °F
-core - Displays core voltage in V
-sd - Displays SDRAM core voltage in V
-io - Displays SDRAM I/O voltage in V
-phy - Displays SDRAM PHY voltage in V

OlDfkcB.png

LsTblxp.png
 
Top
amuck-landowner