WebAPI Plugin for Organizrv2
Ok, so let's figure this out if we could. I've looked over the forums and the general consensus is that the WebGUI add plugin doesn't and won't work. Meh, whatever. But to manually add it:
Download WebAPI-0.4.0-py3.7.egg (or one of the variants)
Place in (assuming SpaceInvader One's setup guide) appdata/binhex-delugevpn/plugins/
Restart the Connection Manager/Daemon
However, these instructions don't seem to work for at least myself, but also a bunch of folks in this thread.
binhex/arch-delugevpn (no version specified, updated today)
Python 3.9.2 (default, Feb 20 2021, 18:40:11)
I've tried eggs:
deluge_webapi-0.4.0-py3.6.egg from https://pypi.org/project/deluge-webapi/
WebAPI-0.4.0-py3.6.egg from https://github.com/idlesign/deluge-webapi/tree/master/dist
WebAPI-0.4.0-py3.7.egg from https://github.com/idlesign/deluge-webapi/tree/master/dist
WebAPI-0.3.2-py2.7.egg from https://github.com/idlesign/deluge-webapi/tree/master/dist
WebAPI-0.3.1-py2.7.egg from https://github.com/idlesign/deluge-webapi/tree/master/dist
None of these seem to work by loading or by dropping them into the directory and restarting the docker. Manually expanding the egg files and adding the folders to the plugins/ dir also doesn't seem to do anything.
Most places also remind us to update binhex-delugevpn/core.conf to include the Plugin:
Note "WebAPI" added to enabled_plugins
Some posts have mentioned restarting the Daemon to initialize the plugin, however, 1) wouldn't it no longer be activated after a docker restart?, and 2) Don't know about anyone else, but if I select the Daemon in Connection Manager and hit "Stop Daemon" I get an error message window that just says "An error Occurred" so... womp womp.
Meanwhile, back at Google...
My old buddies at OpenMediaVault (it was good at the time, but I'm soooooo glad I made the switch omg) are also struggling with adding plugins to deluge. I found a few posts that outline getting AutoRemovePlus-0.6.2-py3.7.egg to work, so I followed those (more or less the same as above, adding the egg to the plugins dir) to make sure it wasn't just the WebAPI egg itself. Sadly, no joy. I know it's a few years old now but SpaceInvader One's plugin vid also doesn't help with this.
dev.deluge-torrent.org appears to have gone offline while I was typing this, so that's not ideal. But if anyone has an idea of how to enable plugins I'd appreciate some pointers.
If nothing else, perhaps I could request @binhex include the WebAPI plugin in the build? Given the number of requests it seems like it might be a well received addition ¯\_(ツ)_/¯
---------------------------------------- WORKING! ----------------------------------------
Right, welp, got it working though good, old fashioned, luck. There's a github support thread here: https://github.com/idlesign/deluge-webapi/issues/27 that got me going on the right path.
Basically, you need to download the plugin linked here: https://github.com/idlesign/deluge-webapi/files/4458994/WebAPI-0.4.0-py3.8.zip
And then rename the file to "WebAPI-0.3.9-py3.9.egg" then copy it into your config/appdata/binhex-delugevpn/plugins/ directory. Also expand it as if it were a zip file, the folder should be named "WebAPI-0.3.9-py3.9" by the expanding software. I don't know if it's the egg, the folder, or both that deluge wants to see, but I also don't care cause it's working.
You do need to add "WebAPI" to the binhex-delugevpn/core.conf as seen above. Make sure to mind your commas! Now reboot the docker and, hopefully, you'll see WebAPI available in Settings > Plugins and can activate it. Once activated it will have a settings item in the left list, click on that and check Enable CORS. Now go back over to Organizrv2 and in the Deluge Home settings enter the [ip]:[port] of your deluge instance using the password that you use for the webUI (as best as I can tell this doesn't work if you don't have a pw set).
Hope this helps folks in the future