Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU temperature, fan speeds, and voltage #121

Merged
merged 1 commit into from
Mar 2, 2016
Merged

CPU temperature, fan speeds, and voltage #121

merged 1 commit into from
Mar 2, 2016

Conversation

dbwiddis
Copy link
Member

OS X and Linux CPU temperature and fan speeds for #119

@dbwiddis dbwiddis mentioned this pull request Feb 29, 2016

private JsonBuilderFactory jsonFactory = Json.createBuilderFactory(null);

private static final String HWMON = "/sys/class/hwmon/hwmon0/";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The final number after hwmon indexes different sensors. hwmon0 may be temp and hwmon1 may be fans, or they may be in a different order. This needs rewriting to account for temp__input and fan__input being in any potential hwmon* path.

@dblock
Copy link
Collaborator

dblock commented Feb 29, 2016

Hope to see some of this CoreFoundation stuff in JNA proper sometime ;)

@dbwiddis
Copy link
Member Author

Maybe sometime. There's a difference between "write what you need" and "write the entire library and develop test cases for it" :)

@dbwiddis dbwiddis changed the title CPU temperature and fan speeds for Mac/Linux CPU temperature, fan speeds, and voltage for Mac/Linux Feb 29, 2016
@dbwiddis dbwiddis changed the title CPU temperature, fan speeds, and voltage for Mac/Linux CPU temperature, fan speeds, and voltage Mar 1, 2016
dbwiddis added a commit that referenced this pull request Mar 2, 2016
CPU temperature, fan speeds, and voltage
@dbwiddis dbwiddis merged commit 9759c06 into oshi:master Mar 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants