Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Temperatures don't show up. #77

Open
iliyan61 opened this issue Apr 29, 2020 · 5 comments
Open

Temperatures don't show up. #77

iliyan61 opened this issue Apr 29, 2020 · 5 comments

Comments

@iliyan61
Copy link

Using this on a 5.1 Mac Pro over SSH and the temps don't show up but they show up for a Mac mini over SSH

@Zarathustra2
Copy link
Contributor

Could you maybe try the following:

In line 68 of src/widgets/temp.rs could you change it to:

+ let mut sys = System::new_all();
+ sys.refresh_all();
- let sys = System::new_all();

@Zarathustra2
Copy link
Contributor

Otherwise it could be an issue with the following library: sysinfo as this library is used to get the temperature on mac os.

@Zarathustra2
Copy link
Contributor

Could you please run the following on your mac pro @iliyan61 :

// main.rs

use sysinfo::{ComponentExt, System, SystemExt};

fn main() {
    let mut sys = System::new_all();
    sys.refresh_all();
    let sensor_data = sys.get_components();

    println!("Components: {}", sensor_data.len());

    for component in sensor_data {
        println!("{}: {}", component.get_label().to_string(), component.get_temperature());
    }
}
# Cargo.toml
[dependencies]
sysinfo = "0.14.1"

@iliyan61
Copy link
Author

iliyan61 commented May 3, 2020

I can't find this directory. I installed thru hombrew but using ls I couldn't find a src folder under it what's the directory I need to access?

@Zarathustra2
Copy link
Contributor

Homebrew only installs the binary, so you cannot find the directory.

If you clone the repo, you would be able to edit it, but I guess without knowledge of rust this is kinda hard :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants