casperklein / homeassistant-addons

Home Assistant Add-on Repository
23 stars 3 forks source link

Netbox plugins #6

Closed akalagov closed 1 year ago

akalagov commented 2 years ago

Add-on name Netbox

Describe the feature you'd like Ability to install plugins

Additional context How do you feel about adding the ability to install plugins to the Netbox addon?

casperklein commented 2 years ago

Good idea, however I don't know a clever way to do so yet 😞

akalagov commented 2 years ago

From what I understand, the easiest way is to put the configuration.py and requirements.txt files in /config/netbox/... and copy them to /opt/netbox/... when loading the add-on.

casperklein commented 1 year ago

I've added plugin support for netbox. You can test it, by using this repo and installing netbox-dev from there.

You have to create the directory /config/netbox and those two files: configuration.py and requirements.txt.

For example:

/config/netbox/configuration.py:

PLUGINS = ['netbox_dns','netbox_bgp','netbox_ipcalculator','netbox_qrcode']

/config/netbox/requirements.txt:

netbox-dns
netbox-bgp
netbox-ipcalculator
netbox-qrcode

Let me know, if that works for you.

akalagov commented 1 year ago

I checked - the plugins work. Thank you for your work! When do you plan to merge with the main branch?

casperklein commented 1 year ago

When the next netbox version gets released.

casperklein commented 1 year ago

Done 🎉

casperklein commented 7 months ago

@akalagov With the latest release, the location for custom configuration has changed.