Coder Social home page Coder Social logo

brorbw / amd-cpu-data Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 5 KB

CLI for AMDRyzenCPUPowerManagement that reads wattage, temperature and frequencies on macOS

Swift 100.00%
amd amd-processor hackintosh systemmonitor temprature virtualsmc amd-hackintosh cli cpu

amd-cpu-data's Introduction

amd-cpu-data

A very small application to talk to the "AMDRyzenCPUPowerManagement" kext for getting CPU wattage, temperature and frequency. Is more or less a copy of some of the code from SMCAMDProcessor

The data will be outputtet as JSON

{
  "power": 42.80278396606445,
  "temperature": 50.66667175292969,
  "max-frequencie": 4199.59033203125,
  "mean-frequencie": 4188.42919921875
}

Run (from source):

git clone https://github.com/brorbw/amd-cpu-data
cd amd-cpu-data
swift run

Build and install:

git clone https://github.com/brorbw/amd-cpu-data
cd amd-cpu-data
swift build -c release --arch x86_64
ln -s $(pwd)/.build/release/amd-cpu-data /usr/local/bin/amd-cpu-data
# or much more ugly 
export PATH=$PATH:$(pwd)/.build/release/

Usage:

$ amd-cpu-data
{"max-frequencie":4187.861328125,"power":34.066860198974609,"temperature":46.000007629394531,"mean-frequencie":4146.97216796875}
$ amd-cpu-data | jq
{
  "max-frequencie": 4187.861328125,
  "power": 34.06686019897461,
  "temperature": 46.00000762939453,
  "mean-frequencie": 4146.97216796875
}

amd-cpu-data's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.