Everything posted by PhAzE
-
How does the plugin system work? Documentation Added - WIP
Lol, even my spelling mistakes "Check is program is running to get extra information"
-
How does the plugin system work? Documentation Added - WIP
It's in /usr/local/emhttp/plugins/sabnzbd It can be either a php file with the same name as the .page file or you can combine them together in a sabnzbd.page file. Yeah, i've already got that page but its /usr/local/emhttp/plugins/Sabnzbd (capital) does that make any difference?
-
How does the plugin system work? Documentation Added - WIP
Hey, so I've had some good success updating my plugins (working on just SAB for now) but the last piece of the puzzle I'm missing is under the PLUGINS tab, after a plugin is installed you can click on the icon and it sakes you to a blank page. Where is that page located? I want it so when you click the icon it takes you to the plugin gui but i'm not sure where that page is supposed to be located.
-
How does the plugin system work? Documentation Added - WIP
Are you using a viewer/editor that understands Linux end-of-lines? If using Windows, open it in wordpad instead.
-
How does the plugin system work? Documentation Added - WIP
Yea the current repo tends to go down once a week at least for maintenance Thanks for the input
-
How does the plugin system work? Documentation Added - WIP
Do you mean in /boot/packages? I debated things like this too. Like should you remove /boot/config/plugins/plg_folder? Its too easy to accidentally hit the remove plugin link. If your talking a few MB then I say just leave it. Let the user delete those if they need flash drive space that bad. I do have it remove the old plg tar when updating. Then it gits the new tar. The way I look at it is you should not need internet to start your server. If you installed the plg from the webgui then you had internet and it installed all you needed then. That's why if you use method 2 for a plg then the tar is there on your flash ready to install. No network needed. You can remove the network check from your plg and a lot of other unnecessary steps. Look at my webvirtmgr.plg it's just a python app. It started off with your headphones plg as a template so I could use what you added to infuencers version. I'll have a look at that. Yeah the issue is that, lets take the Media Browser plugin i'm working on, it has like 20 dependencies thanks to libgdiplus, so are you saying I should include all of those dependency files in a tar.gz file and host it with the pluigin files? From one perspective, doing that means a much larger file (the tar.gz) but from the other it means no downloading on reboot if a dependency txz file is missing. But if I have a plugin that uses java, every time the user updates the plugin they will technically be re-downloading that java install file as part of the tar.gz file for the application. If multiple plugins use java, and the same version at that, then you get multiple copies of that install stored on the USB in each applications tar.gz file taking up more space. Utilizing the packages folder let apps have access to the install files and share them without duplication of the files. This also poses a problem for some of the apps that clone from GIT on startup. I'm not sure how is best to handle those when a server has no network.
-
How does the plugin system work? Documentation Added - WIP
Yea but the problem still remains that if someone installs two of my plugins that use java, then uninstalled one of them, should each plugin remove their dependencies? If so, removing one plugin will erase the java install file which means on next reboot it needs to be downloaded again for the remaining plugin and it's a fairy hefty file size.
-
How does the plugin system work? Documentation Added - WIP
Thanks! The installdir and configdir are the default locations where the apps are installed, not the plugin install location. I forgot I changed that to displayname to test (doh). As for the packages, they are shared throughout a lot of my plugins, and deleting it with one plugin will make them unavailable to another plugin. For example, the python package is used by 3 or 4 plugins and the git package is shared by at least 6. I'm not sure how to handle that situation yet. Thanks for finding the problem so fast!
-
How does the plugin system work? Documentation Added - WIP
I can't seem to get my icon or description from the README.md to show on the plugin manager page. Is anyone able to have a look at this plugin to see what I'm doing wrong? Oddly enough, I had the icon working at one point, but now it just doesn't want to. sabnzbd.64bit.plg