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

Tweak GlCpuTemp widget to support other sensor units #1157

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

luispabon
Copy link
Contributor

@luispabon luispabon commented Apr 3, 2023

luispabon Medium luispabon /sensors → Lissy93/dashy Commits: 1 | Files Changed: 1 | Additions: 42 Label Unchecked Tasks Powered by Pull Request Badge

Thank you for contributing to Dashy! So that your PR can be handled effectively, please populate the following fields (delete sections that are not applicable)

Category:
Bugfix

Overview
The current code assumes all sensors report temperature, when in fact glances' sensor plugin also reports rpm (eg fan speeds) and percentages (eg batteries).

Before:
image

After:
image

Changes:

  • Add support for percentages
  • Add support for rpm

Note: this widget should really be called something like GlSensors, but I haven't been able to easily find a way of renaming it without breaking people's existing configs and workflows.

*Issue Number
n/a

New Vars (if applicable)
n/a

Screenshot (if applicable)
n/a

Code Quality Checklist (Please complete)

  • All changes are backwards compatible
  • All lint checks and tests are passing
  • There are no (new) build warnings or errors
  • (If a new config option is added) Attribute is outlined in the schema and documented
  • (If a new dependency is added) Package is essential, and has been checked out for security or performance
  • Bumps version, if new feature added

The current code assumes all sensors report temperature, when in fact glances' sensor plugin also reports rpm (eg fan speeds) and percentages (eg batteries).

Changes:

 * Add support for percentages
 * Add support for rpm

Note: this widget should really be called something like `GlSensors`, but I haven't been able to easily find a way of renaming it without breaking people's existing configs and workflows.
@luispabon luispabon requested a review from Lissy93 as a code owner April 3, 2023 16:08
@netlify
Copy link

netlify bot commented Apr 3, 2023

Deploy Preview for dashy-dev ready!

Name Link
🔨 Latest commit df5ada9
🔍 Latest deploy log https://app.netlify.com/sites/dashy-dev/deploys/642af9ea53a18b0008a55dca
😎 Deploy Preview https://deploy-preview-1157--dashy-dev.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@viezly
Copy link

viezly bot commented Apr 3, 2023

Changes preview:

Legend:

👀 Review pull request on Viezly

Copy link
Owner

@Lissy93 Lissy93 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @luispabon :)

@Lissy93 Lissy93 merged commit c8653e5 into Lissy93:master Apr 7, 2023
@luispabon luispabon deleted the sensors branch April 11, 2023 17:29
@luispabon
Copy link
Contributor Author

Thank you @Lissy93

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