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
Printer paper tray status and error states #9859
Conversation
Looks pretty good overall @sjtarik Can we try to add test data for these? |
Please add test data so we can ensure your change is not broken in the future. Read the docs to find out how: https://docs.librenms.org/Developing/os/Test-Units |
includes/discovery/toner.inc.php
Outdated
d_echo($tray_oids); | ||
foreach ($tray_oids as $index => $data) { | ||
$last_index = substr($index, strrpos($index, '.') + 1); | ||
$type = 'jetpapertray'; |
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.
Can probably drop jet here and just go papertray (jetdirect above is for legacy reasons)
Polling code looks nice, but I think it might be nice to have separate boxes for them in the webui. You could split them out using the type field. |
that looks great @murrant. printer support needed some love and now it gets a lot of it :) great progress. |
DO NOT DELETE THIS TEXT
Please note
Testers
If you would like to test this pull request then please run:
./scripts/github-apply <pr_id>
, i.e./scripts/github-apply 5926
After you are done testing, you can remove the changes with
./scripts/github-remove
. If there are schema changes, you can ask on discord how to revert.