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

Provide an option to create QRcodes for objects of other plugins #82

Open
tpx-mk opened this issue Jul 17, 2024 · 4 comments
Open

Provide an option to create QRcodes for objects of other plugins #82

tpx-mk opened this issue Jul 17, 2024 · 4 comments

Comments

@tpx-mk
Copy link

tpx-mk commented Jul 17, 2024

I'd like to have an option to create QRcodes for e.g. assets (of the netbox-inventory plugin) or some other custom objects/object types provided by other plugins.

@cruse1977
Copy link
Member

Hi, I don't this is feasible outside of core NetBox objects, as we cannot enforce dependencies on other plugins being installed.

@LHBL2003
Copy link
Contributor

@tpx-mk: You mean this plugin, right? https://github.com/ArnesSI/netbox-inventory

I've known about the inventory plugin for a while, but I didn't realise the added value. That's why we hadn't installed it in the production system. Because many things would also be possible via the devices. Today I took another look at the plugin because it's getting more and more complex for us :D

The plugin is actually useful, but yes, an inventory label is missing.

To your delight, I have just managed to integrate the plugin. But I still have to work it out next week so that it fits this pull request: #84

image

@cruse1977: I was able to write it without VSCode debug. But since I still had a bug in #84, I would never have found the problem if I hadn't written this pull request #80 to debug it with Brakpoints ;)

@LHBL2003
Copy link
Contributor

LHBL2003 commented Aug 16, 2024

Integration into all objects is another matter. I think it might be possible, but I'll have to ask the community. But once the inventory plugin is built in, the next step shouldn't be complicated if you know how :D

@LHBL2003
Copy link
Contributor

For posterity :D This version currently supports the version shown above.
https://github.com/netbox-community/netbox-qrcode/tree/0f610ac8a51110f5fa297c98517924745ea321b6

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

No branches or pull requests

3 participants