Giter Club home page Giter Club logo

Comments (6)

bcyran avatar bcyran commented on June 20, 2024 1

@quorn23 Fixed in 19b515c
@jackra1n Fixed in e3d3dff

from fancy-motd.

paradox-sp avatar paradox-sp commented on June 20, 2024

Fixed this in my fork https://github.com/paradox-sp/fancy-motd

from fancy-motd.

bcyran avatar bcyran commented on June 20, 2024

Unfortunately, your version does not work correctly on my machine, whereas mine does.

Your version:
2023-11-15_19:41:50

My version:
2023-11-15_19:41:38

For reference, this is my sensors version:

❯ sensors -v
sensors version 3.6.0+git with libsensors version 3.6.0+git

And this is relevant sensors output on my machine:

Core 0:        +40.0°C  (high = +100.0°C, crit = +100.0°C)
Core 4:        +41.0°C  (high = +100.0°C, crit = +100.0°C)
Core 8:        +38.0°C  (high = +100.0°C, crit = +100.0°C)
Core 12:       +41.0°C  (high = +100.0°C, crit = +100.0°C)
Core 16:       +38.0°C  (high = +100.0°C, crit = +100.0°C)
Core 20:       +40.0°C  (high = +100.0°C, crit = +100.0°C)
Core 24:       +38.0°C  (high = +100.0°C, crit = +100.0°C)
Core 25:       +38.0°C  (high = +100.0°C, crit = +100.0°C)
Core 26:       +38.0°C  (high = +100.0°C, crit = +100.0°C)
Core 27:       +38.0°C  (high = +100.0°C, crit = +100.0°C)
Core 28:       +43.0°C  (high = +100.0°C, crit = +100.0°C)
Core 29:       +43.0°C  (high = +100.0°C, crit = +100.0°C)
Core 30:       +43.0°C  (high = +100.0°C, crit = +100.0°C)
Core 31:       +43.0°C  (high = +100.0°C, crit = +100.0°C)

It's probably a matter of differing output between sensors versions. It would be probably possible to figure out a code to handle both of them. It would be helpful if you posted your version and how the output looks on your machine.

Maybe I'll look into it in a spare time, but I don't promise anything. PRs always welcome 😉

from fancy-motd.

quorn23 avatar quorn23 commented on June 20, 2024

Mine didn't work either.
Debian box.
sensors version 3.6.0 with libsensors version 3.6.0

If i try the sensors grep line on the cli i get an issue with the symbols not showing up, running as motd the temp isn't showing up at all.

Tabby_AL4JtfbPuX

I fixed it with:
cores="$(sensors | grep Core | awk '{printf "%s ", $3} {printf "%s %s %s\n", $6, $9, $12}' | tr -d '+°,' | sed 's/)//')"

Tabby_wVHaAp4aJl

If this warrants a PR let me know and i'll do one :)

from fancy-motd.

jackra1n avatar jackra1n commented on June 20, 2024

I'm having the same issue

from fancy-motd.

jackra1n avatar jackra1n commented on June 20, 2024

in my case i had to do: cores="$(sensors | grep Tctl | awk '{printf "%s ", $2}' | tr -d '+°,' | sed 's/)//')"

from fancy-motd.

Related Issues (8)

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.