-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Add OMV integration / widget #1879
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall nice.
You need to incorporate translation in basically every file though.
Send me a message if you need help for the strings that have variables in them.
We try to not use one specific app name to designate 1 widget as that widget could be subject to update and further integration with other apps. As such it would be nice to rename the widget to something more common.
const formatUptime = (uptime: number) => { | ||
const days = Math.floor(uptime / 60 / 60 / 24); | ||
const remainingHours = Math.floor((uptime % (days * 24 * 60 * 60)) / 60 / 60); | ||
return `${days} days & ${remainingHours} hours`; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract to a function in the helpers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move this function outside the widgets to the tools. We have files with these kind of functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall very good changes.
Thanks for all the hard work it's really coming together nicely.
{t('cpu.utilization')}: {info.cpuUtilization.toFixed(2)}% | ||
</Text> | ||
<Text fz="lg" tt="uppercase" fw={700} c="dimmed"> | ||
{fahrenheit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an already existing function in the Weather widget you could use, "getPerferedUnit".
It works with your current parameters.
Not important though, just in case.
If you do end up using it, you would need to extract it to "tools" and modify the weather widget too so don't worry too much about it.
Hi @Tagaishi , I think you were right from the beginning, it is necessary to create a widget that will display data directly from the operating system and not from a certain integration |
Actually the idea that somenoperating system offer more monitoring through their API could be something interesting to pursue. We just have to find a way to make it fit the template. |
The last commit includes all comments fix. |
@hillaliy Is the PR good to go now ? I think we can start resolving the conflict to merge it |
I think you can merge |
69e5c86
to
cb41834
Compare
cb41834
to
1a5efb4
Compare
@hillaliy where are you seeing the cputemp rpc? i don't see it as part of the rpc supported by omv was getting errors when testing on my omv instance |
You need to install CPU temp from OMV plugins. |
that makes sense. i'm running it as a vm so no actual temp data |
…caf77d7 by renovate (#19304) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/ajnart/homarr](https://togithub.com/ajnart/homarr) | patch | `0.15.0` -> `0.15.2` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>ajnart/homarr (ghcr.io/ajnart/homarr)</summary> ### [`v0.15.2`](https://togithub.com/ajnart/homarr/releases/tag/v0.15.2) [Compare Source](https://togithub.com/ajnart/homarr/compare/v0.15.1...v0.15.2) > \[!NOTE]\ > We've been working actively on working torwards version 1.0 which will include many improvements to performance, security and the overall look & feel of Homarr. It will greatly overhaul the technical architecture of Homarr. This work is done by volunteers. Please consider supporting our work via donations at https://opencollective.com/homarr #### v0.15.2: Hotfix, OMV 7 support - Fixed an issue with the image where it would notify you to upgrade to `0.15.1`, even though you were running `0.15.1` - Added support for OMV 7 - Updated Crowdin translations #### What's Changed - chore: increase version by [@​manuel-rw](https://togithub.com/manuel-rw) in [https://github.com/ajnart/homarr/pull/1960](https://togithub.com/ajnart/homarr/pull/1960) - feat: OMV 7 support by [@​hillaliy](https://togithub.com/hillaliy) in [https://github.com/ajnart/homarr/pull/1959](https://togithub.com/ajnart/homarr/pull/1959) - feat: Apply translation automation from select option to multi-select… by [@​Tagaishi](https://togithub.com/Tagaishi) in [https://github.com/ajnart/homarr/pull/1963](https://togithub.com/ajnart/homarr/pull/1963) - chore: new Crowdin updates by [@​ajnart](https://togithub.com/ajnart) in [https://github.com/ajnart/homarr/pull/1949](https://togithub.com/ajnart/homarr/pull/1949) - core: increase version to 0.15.2 by [@​manuel-rw](https://togithub.com/manuel-rw) in [https://github.com/ajnart/homarr/pull/1967](https://togithub.com/ajnart/homarr/pull/1967) **Full Changelog**: ajnart/homarr@v0.15.1...v0.15.2 ### [`v0.15.1`](https://togithub.com/ajnart/homarr/releases/tag/v0.15.1) [Compare Source](https://togithub.com/ajnart/homarr/compare/v0.15.0...v0.15.1) > \[!NOTE]\ > We've been working actively on working torwards version 1.0 which will include many improvements to performance, security and the overall look & feel of Homarr. It will greatly overhaul the technical architecture of Homarr. This work is done by volunteers. Please consider supporting our work via donations at https://opencollective.com/homarr #### Version 0.15.1: Fixes wih SSO, OMV integration and weekly weather forecast ##### SSO fixes & improvements - Added environment variable `AUTH_OIDC_SCOPE_OVERWRITE` to override the OIDC scopes - Fixed redirection for OIDC logins - Added the environment variable `AUTH_LDAP_SEARCH_SCOPE` to modify the LDAP search scope between `base`, `one` or `sub`. - Added debug information on the login page when authentication providers are set incorrectly: ![310673082-a376bd01-e6bf-449b-93e8-f050da3fdef8](https://togithub.com/ajnart/homarr/assets/30572287/41c844b0-ce8b-43e4-80f8-526b20f2684b) ##### OMV widget [@​hillaliy](https://togithub.com/hillaliy) has contributed a new system health widget that integrates with https://www.openmediavault.org/ ![image](https://togithub.com/ajnart/homarr/assets/30572287/13ea31ef-85f3-401c-a2e6-ca89783cf3ce) ##### Weekly forecast The weather widget can now display a weekly forecast: ![image](https://togithub.com/ajnart/homarr/assets/30572287/14fab53a-2caa-49be-8591-6f8b7afb9fb7) ##### Lithuanian and Estonian languange support We have added Lithuanian and Estonian to Homarr. As always, our community can translate Homarr into these languages: https://crowdin.com/project/homarr ##### Improved torrent tile performance & ordering Thanks to our contributors, the torrent widget now uses virtualization to lower the required work on the client when rendering the list of torrents. This results in more fluid scrolling and resizing of the widget: https://github.com/ajnart/homarr/assets/162878798/8a21eec2-2f6e-4b0b-8653-7cd730d7d697 Ordering columns is also now possible: ![](https://togithub.com/ajnart/homarr/assets/26098587/78e9636e-9ac5-44fe-aafc-d4df341ecf9b) #### What's Changed - feat: add environment variable to overwrite oidc scopes by [@​Meierschlumpf](https://togithub.com/Meierschlumpf) in [https://github.com/ajnart/homarr/pull/1913](https://togithub.com/ajnart/homarr/pull/1913) - fix: redirect OIDC by [@​Meierschlumpf](https://togithub.com/Meierschlumpf) in [https://github.com/ajnart/homarr/pull/1911](https://togithub.com/ajnart/homarr/pull/1911) - fix: set maximum size for indexer manager to 12 by [@​Tagaishi](https://togithub.com/Tagaishi) in [https://github.com/ajnart/homarr/pull/1912](https://togithub.com/ajnart/homarr/pull/1912) - feat: add OMV integration / widget by [@​hillaliy](https://togithub.com/hillaliy) in [https://github.com/ajnart/homarr/pull/1879](https://togithub.com/ajnart/homarr/pull/1879) - feat: add ldap search scope by [@​Meierschlumpf](https://togithub.com/Meierschlumpf) in [https://github.com/ajnart/homarr/pull/1948](https://togithub.com/ajnart/homarr/pull/1948) - feat: AUTH_PROVIDER log when incorrect and show error in login page by [@​Tagaishi](https://togithub.com/Tagaishi) in [https://github.com/ajnart/homarr/pull/1943](https://togithub.com/ajnart/homarr/pull/1943) - feat: add Lithuanian support by [@​ajnart](https://togithub.com/ajnart) in [https://github.com/ajnart/homarr/pull/1935](https://togithub.com/ajnart/homarr/pull/1935) - feat: Mention Emby on Jellyfin integration by [@​Tagaishi](https://togithub.com/Tagaishi) in [https://github.com/ajnart/homarr/pull/1917](https://togithub.com/ajnart/homarr/pull/1917) - feat: add weekly forecast to weather widget by [@​hillaliy](https://togithub.com/hillaliy) in [https://github.com/ajnart/homarr/pull/1932](https://togithub.com/ajnart/homarr/pull/1932) - feat: add Estonian language by [@​ajnart](https://togithub.com/ajnart) in [https://github.com/ajnart/homarr/pull/1931](https://togithub.com/ajnart/homarr/pull/1931) - chore: new Crowdin updates by [@​ajnart](https://togithub.com/ajnart) in [https://github.com/ajnart/homarr/pull/1890](https://togithub.com/ajnart/homarr/pull/1890) - fix: death links in readme by [@​Meierschlumpf](https://togithub.com/Meierschlumpf) in [https://github.com/ajnart/homarr/pull/1953](https://togithub.com/ajnart/homarr/pull/1953) - feat: Improve TorrentTile rendering performance by [@​diederbert](https://togithub.com/diederbert) in [https://github.com/ajnart/homarr/pull/1951](https://togithub.com/ajnart/homarr/pull/1951) - fix: death app links by [@​Meierschlumpf](https://togithub.com/Meierschlumpf) in [https://github.com/ajnart/homarr/pull/1955](https://togithub.com/ajnart/homarr/pull/1955) - feat: add column ordering in torrent widget by [@​hillaliy](https://togithub.com/hillaliy) in [https://github.com/ajnart/homarr/pull/1952](https://togithub.com/ajnart/homarr/pull/1952) #### New Contributors - [@​diederbert](https://togithub.com/diederbert) made their first contribution in [https://github.com/ajnart/homarr/pull/1951](https://togithub.com/ajnart/homarr/pull/1951) **Full Changelog**: ajnart/homarr@v0.15.0...v0.15.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNDkuMyIsInVwZGF0ZWRJblZlciI6IjM3LjI0OS4zIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
Category
Feature
Screenshot (if applicable)