CPUVInf - Raspberry Pi CPU Temperature & Voltage Reader

Discussion in 'Coding, Scripting & Programming' started by Kokaku Kidotai, Mar 17, 2014.

  1. Kokaku Kidotai

    Kokaku Kidotai New Member

    16
    4
    Feb 21, 2014
    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: Mar 17, 2014
    fixidixi, splitice and drmike like this.
  2. fixidixi

    fixidixi Active Member

    307
    71
    May 17, 2013
    not cool man. if you want to contribute, than please share it here instead of backlinking to another forum!
     
  3. Kokaku Kidotai

    Kokaku Kidotai New Member

    16
    4
    Feb 21, 2014
    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.
     
    fixidixi likes this.
  4. drmike

    drmike 100% Tier-1 Gogent

    8,573
    2,717
    May 13, 2013
    Hey it works, but oddly I have the same value output as the sample screen... time to push the Pi and see what happens...
     
  5. splitice

    splitice Just a little bit crazy... Verified Provider

    550
    252
    Jun 16, 2013
    Very interesting, playing with this now :)
     
  6. fixidixi

    fixidixi Active Member

    307
    71
    May 17, 2013
    Thanks for sharing it here: its a nice project I'll test it :)
     
  7. Kokaku Kidotai

    Kokaku Kidotai New Member

    16
    4
    Feb 21, 2014
    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.
     
  8. fixidixi

    fixidixi Active Member

    307
    71
    May 17, 2013
    well we should ask @MannDude about that ^^
     
  9. drmike

    drmike 100% Tier-1 Gogent

    8,573
    2,717
    May 13, 2013
    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?
     
  10. Kokaku Kidotai

    Kokaku Kidotai New Member

    16
    4
    Feb 21, 2014
    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