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

Printer paper tray status and error states #9859

Merged
merged 6 commits into from Mar 7, 2019
Merged

Printer paper tray status and error states #9859

merged 6 commits into from Mar 7, 2019

Conversation

sjtarik
Copy link
Contributor

@sjtarik sjtarik commented Feb 21, 2019

DO NOT DELETE THIS TEXT

Please note

Please read this information carefully. You can run ./scripts/pre-commit.php to check your code before submitting.

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.

@murrant
Copy link
Member

murrant commented Feb 22, 2019

Looks pretty good overall @sjtarik

Can we try to add test data for these?

@murrant murrant added Feature Device 🖥️ New or added device support Needs Tests 🦄 https://docs.librenms.org/Developing/os/Test-Units/ labels Feb 22, 2019
@label-actions
Copy link

label-actions bot commented Feb 22, 2019

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

d_echo($tray_oids);
foreach ($tray_oids as $index => $data) {
$last_index = substr($index, strrpos($index, '.') + 1);
$type = 'jetpapertray';
Copy link
Member

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)

@murrant
Copy link
Member

murrant commented Mar 2, 2019

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.

@murrant
Copy link
Member

murrant commented Mar 5, 2019

I modified this to capture type data and display it a bit nicer in the webui:

image

@murrant murrant removed the Needs Tests 🦄 https://docs.librenms.org/Developing/os/Test-Units/ label Mar 5, 2019
@sjtarik
Copy link
Contributor Author

sjtarik commented Mar 5, 2019

that looks great @murrant. printer support needed some love and now it gets a lot of it :) great progress.

@murrant murrant changed the title adding paper tray status and error states Printer paper tray status and error states Mar 6, 2019
@murrant murrant merged commit e3e3de1 into librenms:master Mar 7, 2019
@murrant murrant removed the Device 🖥️ New or added device support label Apr 1, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants