We have created a plugin that works well if we manually install it via scp. However, when we try and upload it via the ezlogic UI, we get an error “An error occurred while add plugin”. I downloaded the Wake on LAN plugin, and tried to upload that. That uploads correctly. But I cannot install the Wake on LAN plugin on my controller. I get “An error occurred while installing”. The default Node test plugin also fails to install.
Has anyone gotten either uploading or installing to work? Or is this just a “not yet ready” feature. If you have gotten it to work, any ideas on why it isn’t working for us?
Previously, if you could perform this action of uploading the plugin from ezlogic, now since the last 3 updates it has not allowed you to upload it again.
Could you tell me how you did to upload it by scp? We also have a plugin that works fine but has not allowed us to upload it.
We can upload the plugin manually if you have a local connection to the controller. Just like ssh, you can scp to root@IPAddress of the controller, and upload the plugin code directly to the controller, not using the UI. This is fine for development, but not for deployment.
I don’t understand, we have never had a successful upload of our plugin to the UI. What do you mean by not allowed to upload again? Are you trying to update the plugin?
I get the same thing. Even after defining a prefix, and putting it in the config.json file, I still get the error on upload. Is anyone able to upload a plugin at this time?
Only administrators can install and activate plugins on a site. If you are the owner of the website, then you need to ask your developer to make sure that you have administrator permissions.
I am trying to upload my plugin to my account via the mios UI, as described in the instructions. I have no idea what you are talking about when you write about administrator privileges for the website.
It is still not working for me. I was previously able to get the Wake on LAN plugin to upload, but it no longer does. I even added the prefix too the WoL plugin’s config.json file as shown above, and it will still not upload.
I tried the ezlo_protocols plugin also. It failed to upload.
What am I missing? Any suggestions? Does the prefix need to be in the tar file name or something?
@richK it should not be called prefix, give it any name to add it in the litsa of the prefix section, and then put it in all the files,
1-config.json for example : “id”: “security.mqutt” and in the part that says “setitemvaluecommand”: “HUB: security.mqutt…” , “setsettingvaluecommand”: “HUB: security.mqutt…”
2-interface.json for example: “script”: “HUB: security.mqutt…”,
3-scripts example: loadfile(“HUB:security.mqutt…”)
try that way
Verified that my prefix was still in the mios Plugin Settings.
Added the prefix to the ezlo_wol/config.json file as shown above. Added the prefix to all “HUB:ezlo_wol” as: “HUB:prefix.ezlo_wol” calls.
Created an updated ezlo_wol.tar.gz file.
tar -zcvf ezlo_wol.tar.gz ezlo_wol/
Tried to upload the ezlo_wol.tar.gz file (Verify that “MY PRIVATE PLUGINS” is selected. Click the “UPLOAD NEW PLUGIN” button, select new ezlo_wol.tar.gz file, click “UPLOAD TO MY ACCOUNT”).
Result: “An error occurred while add plugin”.