-
Notifications
You must be signed in to change notification settings - Fork 644
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
sysutils/nut: Added Nut widget #4166
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: James Turnbull <[email protected]>
Signed-off-by: James Turnbull <[email protected]>
Signed-off-by: James Turnbull <[email protected]>
Signed-off-by: James Turnbull <[email protected]>
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.
Hey, I have looked at the code and I tried to give feedback. Some of the feedback is optional.
I hope it helps you.
Just as this is your first contribution, this is my first code review, so I hope I addressed most things correctly here.
Thank you for submitting this widget. :)
2. Addressed native ajax call, added early return with unconfigured message 3. Remove help text 4. Added check for data changes 5. Translate statuses 6. Added keys translation
Signed-off-by: James Turnbull <[email protected]>
@Monviech Thanks for your feedback. I'm not primarily a FE person, so it's useful! One issue since replacing the |
Can you give me the json output of Also how long does the response take, longer than a second? Cause when its really slow the action that gets the status might need to be cached. |
In the Service itself, the Diagnostics data takes 1-2 seconds to return. |
Maybe try to set a cache_ttl here as linked in my prior post. Maybe 30s and see if it gets better. Unsure though.
|
Any updates on when this will be merged to production? Thanks |
I haven't had a chance to look at this again. I'll try to take a look this w/e. |
Signed-off-by: James Turnbull <[email protected]>
@Monviech @fichtner @mimugmail This should now be ready for another review. I refactored it to be more like the other UPS plugin and that resolved the issues. |
Signed-off-by: James Turnbull <[email protected]>
And I noticed someone else wrote another plugin. shrugs Choose whichever suits you. |
@mimugmail , @jamtur01 - How do i use this in my opnsense? |
It would be nice if this calculated the estimated load in watts |
Signed-off-by: James Turnbull <[email protected]>
Sure. Done. |
This is an (opinionated) widget for the Nut UPS plugin.
This is my first contribution, so I am happy to adjust or get any feedback.